mirror of
https://codeberg.org/Hyperpipe/Docker
synced 2024-12-06 19:16:44 +01:00
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:
@@ -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,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'
|
||||
|
||||
@@ -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!"
|
||||
Reference in New Issue
Block a user