2022-05-14 19:56:46 +03:00
|
|
|
#!/bin/sh
|
|
|
|
echo "Welcome!"
|
|
|
|
|
2022-12-28 18:01:14 +02:00
|
|
|
version="1.4.6"
|
|
|
|
oldver="1.4.5"
|
2022-05-14 19:56:46 +03:00
|
|
|
|
|
|
|
echo "Pull docker image reverse-proxy-frontend:$version from registry."
|
2022-06-25 02:21:40 +03:00
|
|
|
docker pull alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:$version
|
2022-05-14 19:56:46 +03:00
|
|
|
|
|
|
|
echo "Stop old container."
|
|
|
|
docker stop reverse-proxy-frontend && docker rm reverse-proxy-frontend
|
|
|
|
|
|
|
|
echo "Run new container."
|
2022-05-14 21:06:25 +03:00
|
|
|
docker run -d --name reverse-proxy-frontend --restart=always -p 5005:80 alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:$version
|
2022-05-14 19:56:46 +03:00
|
|
|
|
|
|
|
echo "Remove old image reverse-proxy-frontend:$oldver."
|
|
|
|
docker rmi alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:$oldver
|
|
|
|
|
|
|
|
echo "Get container logs:"
|
|
|
|
docker logs reverse-proxy-frontend
|
|
|
|
|
|
|
|
echo "DONE!"
|