2022-01-18 19:09:29 +02:00
|
|
|
#!/bin/sh
|
|
|
|
echo "Welcome!"
|
|
|
|
|
2022-05-14 20:59:41 +03:00
|
|
|
version="1.1.0"
|
|
|
|
oldver="1.0.1"
|
2022-01-18 19:09:29 +02:00
|
|
|
|
|
|
|
echo "Pull docker image network-resurrector-frontend:$version from registry."
|
|
|
|
docker pull alpine-nexus:8500/network-resurrector/network-resurrector-frontend:$version
|
|
|
|
|
|
|
|
echo "Stop old container."
|
|
|
|
docker stop network-resurrector-frontend && docker rm network-resurrector-frontend
|
|
|
|
|
|
|
|
echo "Run new container."
|
2022-05-09 03:46:23 +03:00
|
|
|
docker run -d --name network-resurrector-frontend --restart=always -p 5009:80 alpine-nexus:8500/network-resurrector/network-resurrector-frontend:$version
|
2022-01-18 19:09:29 +02:00
|
|
|
|
|
|
|
echo "Remove old image network-resurrector-frontend:$oldver."
|
2022-05-09 03:46:23 +03:00
|
|
|
docker rmi alpine-nexus:8500/network-resurrector/network-resurrector-frontend:$oldver
|
2022-01-18 19:09:29 +02:00
|
|
|
|
|
|
|
echo "Get container logs:"
|
|
|
|
docker logs network-resurrector-frontend
|
|
|
|
|
|
|
|
echo "DONE!"
|