From adc30f216ac0c0cbddab355271fda07b63036bf8 Mon Sep 17 00:00:00 2001 From: Torben Haack Date: Thu, 10 Oct 2024 07:06:35 +0200 Subject: [PATCH] update deployment scripts --- .../reservation-platform/docker/build_image.sh | 14 +++++++------- .../docker/deploy_container.sh | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/reservation-platform/docker/build_image.sh b/packages/reservation-platform/docker/build_image.sh index d5361d3..d4af9e4 100755 --- a/packages/reservation-platform/docker/build_image.sh +++ b/packages/reservation-platform/docker/build_image.sh @@ -4,8 +4,8 @@ IMAGE_NAME="myp-rp" IMAGE_TAG="latest" -# Specify the output file name -OUTPUT_FILE="myp-rp_latest.tar.xz" +# Specify the output file name (changed extension to .tar) +OUTPUT_FILE="myp-rp_latest.tar" # Build the Docker image from Containerfile echo "Building Docker image from Containerfile..." @@ -19,15 +19,15 @@ fi echo "Docker image built successfully" -# Save the Docker image and compress it with xz -echo "Saving and compressing the Docker image..." -docker save ${IMAGE_NAME}:${IMAGE_TAG} | xz -z -T0 > $PWD/docker/${OUTPUT_FILE} +# Save the Docker image without compression +echo "Saving the Docker image..." +docker save ${IMAGE_NAME}:${IMAGE_TAG} > $PWD/docker/${OUTPUT_FILE} # Check if the save operation was successful if [ $? -eq 0 ]; then - echo "Image successfully saved and compressed to ${OUTPUT_FILE}" + echo "Image successfully saved to ${OUTPUT_FILE}" else - echo "Error occurred while saving and compressing the image" + echo "Error occurred while saving the image" exit 1 fi diff --git a/packages/reservation-platform/docker/deploy_container.sh b/packages/reservation-platform/docker/deploy_container.sh index 117d34b..622be46 100755 --- a/packages/reservation-platform/docker/deploy_container.sh +++ b/packages/reservation-platform/docker/deploy_container.sh @@ -4,8 +4,8 @@ IMAGE_NAME="myp-rp" IMAGE_TAG="latest" -# Specify the input file name -INPUT_FILE="myp-rp_latest.tar.xz" +# Specify the input file name (changed extension to .tar) +INPUT_FILE="myp-rp_latest.tar" # Path to the docker directory DOCKER_DIR="$PWD/docker"