Skip to content

Instantly share code, notes, and snippets.

@jokeyrhyme
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jokeyrhyme/86eeda82e8e55b3ebc4e to your computer and use it in GitHub Desktop.
Save jokeyrhyme/86eeda82e8e55b3ebc4e to your computer and use it in GitHub Desktop.
Docker + Jekyll via BitTorrent Sync, with boot2docker
docker run -d -p ::3000/udp -p ::8888 --name btsync -v /mnt/blog jokeyrhyme/btsync
docker ps
  • note the port mapped to btsync:8888
  • if not using boot2docker, you should specify -p 127.0.0.1::8888 for security
boot2docker ip
  • note the VM's IP address

  • if not using boot2docker, just use 127.0.0.1 instead

  • navigate web browser to VM, btsync port

  • "Add Folder" and setup /mnt/blog with full-access key for blog project directory in host btsync

docker run -t -i -P --name jekyll --volumes-from btsync -w /mnt/blog jokeyrhyme/github-pages
docker ps
  • leave out the -t -i if you don't want to see when files are updated

  • note the port mapped to jekyll:4000

  • navigate web browser to VM, jekyll port

@jokeyrhyme
Copy link
Author

Main issues:

  • relies on external infrastructure to function (i.e. BitTorrent Sync) (?? is this accurate ??)
  • takes 10 seconds or more for changes to be propagated from outer host to Jekyll container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment