Skip to content

underdark456/proj1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proj1

Install things

Docker on source and target host

wget -O - https://get.docker.com | bash -

Install make on source

sudo apt install make

Add user to docker groups on both hosts

sudo adduser user docker

Gen keys

ssh-keygen
ssh-copy-id user@remote-ip-addr

Pull docker image

docker pull nginx:1.17

Copy files on docker host

Operation

Working dir /home/user/proj1

  1. make sync - download bugs.html and appropriate languages
  2. make build - build docker image with nginx (using Dockerfile which is perform copy bugs.html to image) and save it as tar.
  3. 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

Releases

No releases published

Packages

No packages published