1
0
James Ketrenos dbe268a2e6 Moved base OS image from osgc-ubuntu to internally cached ubuntu
Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
2019-09-23 19:31:39 -07:00

43 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
# Bring in the variables from SOLUTION file
#
export $(grep -v '^#' SOLUTION | xargs -d '\n')
export $(grep -v '^#' MANIFEST | xargs -d '\n')
docker build . -t ${CONTAINER}:agama-${AGAMA_VERSION} || {
cat << EOM
Building docker image failed.
EOM
exit $?
}
docker tag ${CONTAINER}:agama-${AGAMA_VERSION} ${CONTAINER}
cat << EOM
If the build looks good, you should commit the changes
to Dockerfile and tag it as agama-${AGAMA_VERSION}
git commit -s -a -m "Build of agama-${AGAMA_VERSION}"
git tag -f agama-${AGAMA_VERSION}
To push to Harbor:
docker tag ${CONTAINER}:agama-${AGAMA_VERSION} amr-registry.caas.intel.com/vtt-osgc/solutions/${CONTAINER}:agama-${AGAMA_VERSION}
docker push amr-registry.caas.intel.com/vtt-osgc/solutions/${CONTAINER}:agama-${AGAMA_VERSION}
If this is a build others might want, roll the 'devel' tag to it:
docker tag ${CONTAINER}:agama-${AGAMA_VERSION} amr-registry.caas.intel.com/vtt-osgc/solutions/${CONTAINER}:devel
docker push amr-registry.caas.intel.com/vtt-osgc/solutions/${CONTAINER}:devel
If this is a good build, then roll the 'latest' tag to it.
docker tag ${CONTAINER}:agama-${AGAMA_VERSION} amr-registry.caas.intel.com/vtt-osgc/solutions/${CONTAINER}:latest
docker push amr-registry.caas.intel.com/vtt-osgc/solutions/${CONTAINER}:latest
EOM