wget -O - https://get.docker.com | bash -
sudo apt install make
sudo adduser user docker
ssh-keygen ssh-copy-id user@remote-ip-addr
docker pull nginx:1.17
Working dir /home/user/proj1
- make sync - download bugs.html and appropriate languages
- make build - build docker image with nginx (using Dockerfile which is perform copy bugs.html to image) and save it as tar.
- make deploy - copy docker image to target server, kill all running containters by executing remote script, import and run updated image
Script start.sh execute by cron every Saturday at 3:45 Logs located in /home/user/proj1/logs