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 ##############################################################################
12 BUILDTAG := loving_daniel
14 # Edit this to match the GENESIS / OPNFV in your environment
15 export OPNFV_PUPPET := $(BUILD_BASE)/../../common/puppet-opnfv
20 @mkdir -p puppet/modules/opnfv/odl_docker
23 @cp -Rvp ${OPNFV_PUPPET}/manifests/templates/dockerfile tmp/.
24 @docker build -t ${BUILDTAG} tmp/dockerfile/.
25 @docker save ${BUILDTAG} > puppet/modules/opnfv/odl_docker/odl_docker_image.tar
26 @wget ${DOCKER_REPO}/${DOCKER_TAG} -O puppet/modules/opnfv/odl_docker/docker-latest
27 @echo "OPFNV_PUPPET is: ${OPNFV_PUPPET}"
28 @cp -Rvp ${OPNFV_PUPPET}/manifests/templates/dockerfile/container_scripts puppet/modules/opnfv
39 @rm -rf puppet/modules/opnfv/odl_docker/odl_docker_image.tar
40 @rm -rf puppet/modules/opnfv/odl_docker/docker-latest
42 .PHONY: validate-cache
44 @echo "No cache validation schema available for $(shell pwd)"
45 @echo "Continuing ..."
49 # Fetch PP from OPNFV Common
50 @cp -Rvp ${OPNFV_PUPPET}/manifests/odl_docker.pp ${PUPPET_DEST}
51 @cp -Rvp puppet/modules/* $(PUPPET_DEST)