build for local server and deployment script
This commit is contained in:
parent
a7a8eed01e
commit
5e52e096a2
3 changed files with 30 additions and 0 deletions
11
deploy.sh
Normal file
11
deploy.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# 1. Build
|
||||
docker build -t webui:local -f pond/Dockerfile .
|
||||
|
||||
# 2. Transfer image
|
||||
docker save webui:local | ssh -i ~/.ssh/id_ed25519 carter@172.16.1.20 docker load
|
||||
|
||||
# 3. SCP compose file
|
||||
scp -i ~/.ssh/id_ed25519 docker-compose.local.yml carter@172.16.1.20:~/
|
||||
|
||||
# 4. Deploy
|
||||
ssh -i ~/.ssh/id_ed25519 carter@172.16.1.20 "docker stack deploy -c docker-compose.local.yml webui"
|
||||
Loading…
Add table
Add a link
Reference in a new issue