From c7aa6016ce3d6a7f306a0227b692cf2b5d86d02d Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sat, 6 Mar 2021 21:35:25 +0700 Subject: [PATCH] Updated readme and change run mode --- scripts/build.sh | 2 ++ scripts/run.sh | 4 ++++ 2 files changed, 6 insertions(+) mode change 100644 => 100755 scripts/run.sh diff --git a/scripts/build.sh b/scripts/build.sh index a920fa8..4f135d3 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -5,6 +5,8 @@ REGISTRY=registry.kh.cubetiqs.com IMAGE=highcharts-export-server CONTAINER=${REGISTRY}/${IMAGE}:${TAG} +echo "Building container image with ${CONTAINER}" docker build -t ${CONTAINER} . +echo "Publishing the container image to ${REGISTRY}" docker push ${CONTAINER} \ No newline at end of file diff --git a/scripts/run.sh b/scripts/run.sh old mode 100644 new mode 100755 index fd2e0b5..70d0b3b --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1,3 +1,7 @@ #!/bin/bash +echo "Stop and remove container..." +docker rm -f highcharts-export-server + +echo "Run the container..." docker run -d --name highcharts-export-server -p 8080:8080 registry.kh.cubetiqs.com/highcharts-export-server \ No newline at end of file