2022-10-12 09:02:27 -04:00
|
|
|
docker部署代码
|
|
|
|
|
|
|
|
`sudo docker load -i usvisartrackapi-0.0.2-snapshot.tar`
|
|
|
|
|
|
|
|
`sudo docker stop usvisartrackapi`
|
|
|
|
|
|
|
|
`sudo docker rm usvisartrackapi`
|
|
|
|
|
|
|
|
`sudo docker run -p 8383:8282 --restart=unless-stopped -e APP_DATABASE_HOST="54.39.157.60" -e APP_DATABASE_PORT="3306" -e APP_DATABASE_NAME="usvisatrack" -e APP_DATABASE_USERNAME="root" -e APP_DATABASE_PASSWORD="ETNN0sqc1qMbgQaeGKWL" --name usvisartrackapi -d usvisartrackapi:0.0.2-snapshot`
|
2022-10-13 19:27:39 -04:00
|
|
|
|
|
|
|
docker tag usvisartrackapi:0.0.2-snapshot 54.39.157.60:86/library/usvisartrackapi:0.0.2-snapshot
|
|
|
|
|
2022-10-17 19:16:10 -04:00
|
|
|
docker push 54.39.157.60:8092/library/usvisartrackapi:0.0.2-snapshot
|
|
|
|
|
|
|
|
docker tag usvisartrackapi:0.0.2-snapshot pubuser/usvisartrackapi:0.0.2-snapshot
|
|
|
|
|
|
|
|
docker tag usvisartrackapi:0.0.2-snapshot admin/usvisartrackapi:0.0.2-snapshot
|
|
|
|
|
|
|
|
docker push pubuser/usvisartrackapi:0.0.2-snapshot
|
|
|
|
|
|
|
|
docker tag usvisartrackapi:0.0.2-snapshot 54.39.157.60:8092/library/usvisartrackapi:0.0.2-snapshot
|
2022-11-05 23:40:48 -04:00
|
|
|
|
|
|
|
docker compose 发布脚本
|
|
|
|
|
|
|
|
docker compose pull
|
|
|
|
docker compose up -d --remove-orphans
|
|
|
|
docker image prune -f
|
|
|
|
|
|
|
|
docker logs --tail=100 gitlab-runner -f
|
|
|
|
|
|
|
|
docker logs --tail=100 usvisatrackapi -f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|