summaryrefslogtreecommitdiffstats
path: root/build/creating_data/create_nginx_image
diff options
context:
space:
mode:
authoreronkeo <ronan.keogh@est.tech>2019-03-20 15:00:20 +0000
committereronkeo <ronan.keogh@est.tech>2019-03-20 15:00:20 +0000
commitf842b36613c91f86dd371b590e048e5c4e510f34 (patch)
tree317daabccb46b72333d4d0dbb5623243a2000668 /build/creating_data/create_nginx_image
parentdbc6a7202dc89264a2857e12c625fb2328584a1e (diff)
update for missing nginx tarfile
This update adds an entry to the docker_images lists file to ensure it is saved as a tar file and available for processing in the "Prepare infra related images to infra folder" section. Change-Id: I293144daa96b3c579443a2e76a407ea04821dce7 Issue-ID: OOM-1738 Signed-off-by: eronkeo <ronan.keogh@est.tech>
Diffstat (limited to 'build/creating_data/create_nginx_image')
-rwxr-xr-xbuild/creating_data/create_nginx_image/01create-image.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/creating_data/create_nginx_image/01create-image.sh b/build/creating_data/create_nginx_image/01create-image.sh
index 86d96cf2..aa62e40a 100755
--- a/build/creating_data/create_nginx_image/01create-image.sh
+++ b/build/creating_data/create_nginx_image/01create-image.sh
@@ -18,7 +18,13 @@
#
# COPYRIGHT NOTICE ENDS HERE
+IMG_DIR="${1}"
+
+if [[ ! -e $IMG_DIR ]]; then
+ mkdir -p "${IMG_DIR}"
+fi
script_dir="$(dirname ${BASH_SOURCE[0]})"
cd "$script_dir"
docker build -t own_nginx .
+docker -l error save -o "$IMG_DIR/own_nginx_latest.tar" "own_nginx:latest"