diff options
Diffstat (limited to 'build/creating_data/create_nginx_image/01create-image.sh')
-rwxr-xr-x | build/creating_data/create_nginx_image/01create-image.sh | 6 |
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" |