Merge pull request 'Add 'update.sh'' (#1) from esmailelbob/Docker:main into main

Reviewed-on: https://codeberg.org/Hyperpipe/Docker/pulls/1
This commit is contained in:
Shiny Nematoda
2022-08-06 16:17:24 +02:00
3 changed files with 30 additions and 0 deletions
+13
View File
@@ -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
```
+1
View File
@@ -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'
+16
View File
@@ -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!"