forked from 0xOzgur/QuilibriumTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdateDocker.sh
32 lines (26 loc) · 1.05 KB
/
updateDocker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# Step 0: Welcome
echo "This script is made with ❤️ by 0xOzgur.eth"
echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v1.4.18!"
echo "⏳Processing..."
sleep 10 # Add a 10-second delay
# Stop the ceremonyclient service
service ceremonyclient stop
# Step 1:Download Binary
echo "⏳ Downloading New Release v1.4.18"
cd ~/ceremonyclient
git pull
git checkout release
# Step 7:Build Docker Container
echo "⏳Building Ceremonyclient Container"
sleep 2 # Add a 2-second delay
docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium -t quilibrium:1.4.18 .
# Step 8:Run Ceremonyclient Container
echo "✅Running Ceremonyclient Container"
sleep 2 # Add a 2-second delay
docker compose -f docker/docker-compose.yml up -d
# Step 9:Logs Ceremonyclient Container
echo "🎉Welcome to Quilibrium Ceremonyclient"
echo "⏳Please let it flow node logs at least 5 minutes then you can press CTRL + C to exit the logs."
sleep 5 # Add a 5-second delay
docker compose -f docker/docker-compose.yml logs -f -n, --tail 100