Public Repository

Last pushed: 2 years ago
Short Description
This is Gollum, the git based wiki in a docker container.
Full Description

This image was created using the instructions found here.

Here is a summary of the steps:

  • create a directory for your wiki
  • cd into that directory
  • initialize a git repository
  • create Dockerfile
  • build dockerfile
  • run container from the new image
  • access new wiki at IP:4567 (where IP is either localhost or the ip of your virtual machine)

Prepare a directory for your wiki

mkdir gollum
cd gollum
git init

Now create the dockerfile

Save the following in a file named Dockerfile in the directory you just created:

FROM ruby
RUN apt-get -y update && apt-get -y install libicu-dev
RUN gem install gollum
RUN gem install redcarpet org-ruby 
VOLUME /wiki
WORKDIR /wiki
CMD ["gollum", "--port", "80"]
EXPOSE 80

Now build the image

While still in the directory you just created (and in which you saved your Dockerfile), run the following command:

docker build -t gollum .

Run the new image

After the image is built, run it:

docker run -v `pwd`:/wiki -p 4567:80 gollum

Access your new wiki at http://localhost:4567 or http://ip:4567 (where ip is the ip of your virtual machine - often 192.168.99.100).

Docker Pull Command
Owner
doloop

Comments (0)