1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # stefan.k.berg@ericsson.com
4 # jonas.bjurel@ericsson.com
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
11 CONTEXT1 := opnfv.org/ubuntu:12.04
12 CONTEXT2 := opnfv.org/ubuntu-builder:12.04
16 all: create-docker-ubuntu populate-docker-ubuntu
17 ./runcontext ${CONTEXT2} make test
19 .PHONY: create-docker-ubuntu
21 /usr/bin/docker run --rm -i -t ${CONTEXT1} date || \
22 sudo mkimage/mkimage.sh -t opnfv.org/ubuntu:12.04 debootstrap --include=ubuntu-minimal --components=main,universe precise
24 .PHONY: populate-docker-ubuntu
25 populate-docker-ubuntu:
26 /usr/bin/docker build --rm=true -t opnfv.org/ubuntu-builder:12.04 ubuntu-builder
27 /usr/bin/docker tag -f opnfv.org/ubuntu-builder:12.04 opnfv.org/ubuntu-builder