Use Docker to Setup an Environment for Octopress2

Docker image for running Octopress 2

Since this blog is made from Octopress 2 and it seems that Octopress has ended it’s development after version 3.

In order to keep using it, it’s better to create an development environment that I can keep on running it in the future.

The DockerFile for setting this environment is located here.

The Docker image is located in Docker Hub: https://hub.docker.com/r/benedictchan/octopress2/.

Running the environment

To simply use this Docker image, you can just mount your Octopress repository’s source branch to the container’s app folder:

docker run -ti --rm -p 4000:4000 -v {source_path}:/app benedictchan/octopress2

Create new post

rake new_post["title"]

Generate the blog

rake generate

Preview the blog

rake preview

Publish the blog

rake deploy