Skip to content

vgarvardt/itskrig.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itskrig.com

Blog of Vladimir Garvardt built on top of rKlotz

Deploy on Ubuntu 17.04

  1. Install docker-ce
  2. Pull latest blog docker image - docker pull vgarvardt/itskrig.com
  3. Install runit - sudo apt-get install runit runit-systemd
  4. Add new service to runit to run teh blog:
sudo -i
# create service dir
mkdir -p /etc/sv/rklotz/log
# create logs dir
mkdir -p /var/log/rklotz
# create logs config
echo "# rotate if log file size > s<size> bytes" > /var/log/rklotz/config
echo "s52428800" >> /var/log/rklotz/config
echo "# keep at most n<num> log files" >> /var/log/rklotz/config
echo "n10" >> /var/log/rklotz/config
# create service run script
echo "#!/bin/sh" > /etc/sv/rklotz/run
echo "exec 2>&1 && docker ps -q | xargs docker kill; docker run -p 80:8080 -p 443:8443 vgarvardt/itskrig.com" >> /etc/sv/rklotz/run
chmod a+x echo "#!/bin/sh" > /etc/sv/rklotz/run
# create service log run script
echo "#!/bin/sh" > /etc/sv/rklotz/log/run
echo "exec svlogd /var/log/rklotz" >> /etc/sv/rklotz/log/run
chmod a+x /etc/sv/rklotz/log/run
# make service active
cd /etc/service
ln -s /etc/sv/rklotz rklotz

Update to run the latest version

  1. Pull the latest image - docker pull vgarvardt/itskrig.com
  2. Kill existing running docker image (runit will run the new one) - docker ps -qf "ancestor=vgarvardt/itskrig.com" | xargs docker kill

About

itskrig.com contents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published