Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 1.39 KB

UPDATE.md

File metadata and controls

69 lines (53 loc) · 1.39 KB

Nostr Live Audio Spaces: Jam Edition Update

Backup important files

mkdir -p ~/jamconfig/{deployment/prometheus,resources}
cp ~/jam/deployment/prometheus/prometheus.yml ~/jamconfig/deployment/prometheus/
cp ~/jam/deployment/turnserver.conf ~/jamconfig/deployment/
cp ~/jam/resources/jam-config.json ~/jamconfig/resources/

Stop and remove existing docker images

cd ~/jam/deployment
docker-compose stop
docker-compose rm -v

Revert the changed files to avoid conflicts

cd ~/jam/deployment
git checkout -- ./prometheus/prometheus.yml
git checkout -- turnserver.conf
cd ~/jam/resources
git checkout -- ./jam-config.json

Pull latest changes

cd ~/jam
git fetch
git pull

Apply configs from backup

cp ~/jamconfig/deployment/prometheus/prometheus.yml ~/jam/deployment/prometheus/
cp ~/jamconfig/deployment/turnserver.conf ~/jam/deployment/
cp ~/jamconfig/resources/jam-config.json ~/jam/resources/

Create Docker Images

cd ~/cornychat/ui
./buildit.sh
cd ~/cornychat/pantry
./buildit.sh
cd ~/cornychat/pantry-sfu
./buildit.sh

If the pantry-sfu image fails, then perform the following to pull the prebuilt image and retag it

docker pull registry.gitlab.com/jam-systems/jam/pantry-sfu:master
docker tag registry.gitlab.com/jam-systems/jam/pantry-sfu:master cornychat/pantry-sfu:stable

Start Docker

cd ~/jam/deployment
docker-compose up -d