Skip to content

Instantly share code, notes, and snippets.

@yoshimov
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save yoshimov/9244428 to your computer and use it in GitHub Desktop.

Select an option

Save yoshimov/9244428 to your computer and use it in GitHub Desktop.
Dockerfile for multibyte enabled Gollum
# Docker file for multibyte enabled Gollum 2.7.0
#
# To build new image:
#
# > sudo docker build -t gollum-server:2.7.0 .
#
# To run the image:
#
# > git init /home/hoge
# > cd /home/hoge
# > git config core.quotepath false
# > touch config.rb
# > sudo docker run -d -p 80:4567 -v /home/hoge:/wiki gollum-server:2.7.0
FROM ubuntu:13.10
RUN apt-get update
RUN apt-get install -y git ruby2.0 ruby2.0-dev build-essential make libicu-dev screen wget
RUN gem install gollum -v 2.7.0
RUN wget https://gist.githubusercontent.com/yoshimov/9243326/raw/gollum-multibyte.diff -O /tmp/gollum-multibyte.diff
RUN patch -p1 -i /tmp/gollum-multibyte.diff -d /var/lib/gems/2.0.0/gems/gollum-2.7.0
RUN wget https://gist.githubusercontent.com/yoshimov/9243351/raw/gollum-lib-multibyte.diff -O /tmp/gollum-lib-multibyte.diff
RUN patch -p1 -i /tmp/gollum-lib-multibyte.diff -d /var/lib/gems/2.0.0/gems/gollum-lib-2.0.0
RUN wget https://gist.githubusercontent.com/yoshimov/7113140/raw/grit-multibyte.diff -O /tmp/grit-multibyte.diff
RUN patch -p1 -i /tmp/grit-multibyte.diff -d /var/lib/gems/2.0.0/gems/gitlab-grit-2.6.0
VOLUME ["/wiki"]
EXPOSE 4567
CMD [ "gollum", "/wiki", "--show-all", "--allow-uploads", "--config", "/wiki/config.rb" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment