From c8c702e921388a397bfd5a7923908c19cc6d7139 Mon Sep 17 00:00:00 2001 From: Spencer Flagg Date: Tue, 5 Oct 2021 16:31:55 +0200 Subject: [PATCH] changed .sh to prune images, added echos; --- fl-run.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fl-run.sh b/fl-run.sh index 35d6ffa..d179f47 100644 --- a/fl-run.sh +++ b/fl-run.sh @@ -1,9 +1,16 @@ +echo "*** Removing Code Directory ***" rm -r /usr/src/flylocal-web +echo "*** Making Code Directory ***" mkdir -p /usr/src/flylocal-web cd /usr/src +echo "*** Getting Code from Gitea ***" git clone --depth 1 https://gitea.flylocal.us/spencer/flylocal-web.git cd flylocal-web +echo "*** Killing Docker Containers ***" sudo docker kill $(docker ps -q) -sudo docker system prune -a +echo "*** Pruning Old Docker Images ***" +sudo docker image prune +echo "*** Building New Docker Image ***" sudo docker build -t flylocal-web . +echo "*** Running Docker Image ***" sudo docker run -it -p 3000:3000 flylocal-web \ No newline at end of file