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 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' diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..49b2deb --- /dev/null +++ b/update.sh @@ -0,0 +1,16 @@ +#!/bin/sh +set -x +sudo docker-compose down +sudo docker-compose build +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 +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