From 0629219a6b307fdbc90ae0e7f3f670de1f7deeda Mon Sep 17 00:00:00 2001 From: esmailelbob Date: Wed, 3 Aug 2022 19:04:23 +0200 Subject: [PATCH 1/7] Add 'update.sh' --- update.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 update.sh diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..13ff08a --- /dev/null +++ b/update.sh @@ -0,0 +1,11 @@ +sudo docker-compose down +cd Hyperpipe +git pull +cd .. +cd hyperpipe-backend +git pull +cd .. +sudo docker-compose up -d +echo "Do not forget to clear old docker data!" +echo "feel free to run: sudo docker system prune -a; sudo docker volume prune ; sudo docker network prune; sudo docker image prune" +echo "but beaware any not running images will get deleted so make sure to run all needed docker containers before run this command!" \ No newline at end of file From d356799e40fbf76367d90d3a132fb218ad3434e6 Mon Sep 17 00:00:00 2001 From: esmailelbob Date: Wed, 3 Aug 2022 19:06:37 +0200 Subject: [PATCH 2/7] Update 'gen.sh' --- gen.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/gen.sh b/gen.sh index 26b75e8..54c5581 100644 --- a/gen.sh +++ b/gen.sh @@ -1,3 +1,4 @@ +#!/bin/sh printf "\nEnter hostname for Proxy (Same as the one used for Piped): " && read -r proxy printf '\nFetching List of Hostnames for Backends (Hyperpipe) \n\n' From 5bbe9285dcb9d988f2cbedc23b1174abff26d5ee Mon Sep 17 00:00:00 2001 From: esmailelbob Date: Wed, 3 Aug 2022 19:06:50 +0200 Subject: [PATCH 3/7] Update 'update.sh' --- update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/update.sh b/update.sh index 13ff08a..79f9161 100644 --- a/update.sh +++ b/update.sh @@ -1,3 +1,4 @@ +#!/bin/sh sudo docker-compose down cd Hyperpipe git pull From 692145b4650e389dbcb0d02de963f9148f39d777 Mon Sep 17 00:00:00 2001 From: esmailelbob Date: Sat, 6 Aug 2022 13:33:27 +0200 Subject: [PATCH 4/7] Update 'update.sh' --- update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/update.sh b/update.sh index 79f9161..da0bd26 100644 --- a/update.sh +++ b/update.sh @@ -1,5 +1,6 @@ #!/bin/sh sudo docker-compose down +sudo docker-compose build cd Hyperpipe git pull cd .. From 06afc04db54228e3ee0290befb857f2dfb1b1e3c Mon Sep 17 00:00:00 2001 From: esmailelbob Date: Sat, 6 Aug 2022 15:35:03 +0200 Subject: [PATCH 5/7] Update 'update.sh' --- update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index da0bd26..cb49c8e 100644 --- a/update.sh +++ b/update.sh @@ -1,10 +1,12 @@ #!/bin/sh sudo docker-compose down sudo docker-compose build -cd Hyperpipe +cd Hyperpipe +rm -rf docker-compose.yml git pull cd .. cd hyperpipe-backend +rm -rf docker-compose.yml git pull cd .. sudo docker-compose up -d From 110002f5a6f4bc34fca7e229b9a336b144a6ed00 Mon Sep 17 00:00:00 2001 From: esmailelbob Date: Sat, 6 Aug 2022 15:36:55 +0200 Subject: [PATCH 6/7] Update 'README.md' --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 425f56e..b29cb41 100644 --- a/README.md +++ b/README.md @@ -34,4 +34,17 @@ $ docker-compose build Start the container ```sh $ docker-compose up +``` + +## Step 4 - update + +Just run the update script +```sh +./update.sh +``` + +## Step 5 -- clean +You can use this to clean old files but be aware that all docker images that are down will get removed too so if you self host other stuff than hyperpipe, make sure to run all images (incl databases) then run the command down +```sh +sudo docker system prune -a; sudo docker volume prune ; sudo docker network prune; sudo docker image prune ``` \ No newline at end of file From b2d30d3bfd7251bf1f4162985450baa1197f9204 Mon Sep 17 00:00:00 2001 From: esmailelbob Date: Sat, 6 Aug 2022 16:16:19 +0200 Subject: [PATCH 7/7] Update 'update.sh' --- update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/update.sh b/update.sh index cb49c8e..49b2deb 100644 --- a/update.sh +++ b/update.sh @@ -1,4 +1,5 @@ #!/bin/sh +set -x sudo docker-compose down sudo docker-compose build cd Hyperpipe