summaryrefslogtreecommitdiff
path: root/imagebuild/coreos/docker_build.bash
diff options
context:
space:
mode:
Diffstat (limited to 'imagebuild/coreos/docker_build.bash')
-rwxr-xr-ximagebuild/coreos/docker_build.bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/imagebuild/coreos/docker_build.bash b/imagebuild/coreos/docker_build.bash
index f3c74769..fbc2ade3 100755
--- a/imagebuild/coreos/docker_build.bash
+++ b/imagebuild/coreos/docker_build.bash
@@ -7,6 +7,7 @@
set -e
OUTPUT_FILE="oem/container.tar.gz"
+IPA_ROOT=$(readlink -f $(dirname $0)/../../)
# If there's already a container.tar.gz, don't overwrite it -- instead, bail
if [[ -e "${OUTPUT_FILE}" ]]; then
@@ -15,7 +16,11 @@ if [[ -e "${OUTPUT_FILE}" ]]; then
fi
# Build the docker image
-cd ../../
+# Everything from ${IPA_ROOT} will be available under /tmp/ironic-python-agent in Docker
+cd ${IPA_ROOT}
+
+imagebuild/common/generate_upper_constraints.sh ${IPA_ROOT}/upper-constraints.txt
+
docker build -t oemdocker .
cd -