Adds Dockerfile used to build supporting image
Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/0f3fd548 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/0f3fd548 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/0f3fd548 Branch: refs/heads/master Commit: 0f3fd54845cd3ac10e595c940e84cbb756a469dc Parents: bd0bd05 Author: Lukasz Lenart <lukasz.len...@gmail.com> Authored: Fri Feb 5 20:35:43 2016 +0100 Committer: Lukasz Lenart <lukasz.len...@gmail.com> Committed: Fri Feb 5 20:35:43 2016 +0100 ---------------------------------------------------------------------- docker/Dockerfile | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts-site/blob/0f3fd548/docker/Dockerfile ---------------------------------------------------------------------- diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..9b4ec36 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,54 @@ +FROM debian +MAINTAINER Lukasz Lenart <lukaszlen...@apache.org> +LABEL Description="This image is used to support building Apache Struts main website" +RUN \ + apt-get update && \ + apt-get install -y \ + vim \ + bzip2 \ + gcc \ + git-core \ + make \ + libssl-dev \ + libreadline-dev \ + zlib1g-dev \ + node \ + sudo \ + curl && \ + + addgroup --system --gid 1000 jekyll && \ + adduser --system --ingroup jekyll --uid 1000 --home /home/jekyll --disabled-password jekyll && \ + mkdir -p /srv/jekyll && \ + chown jekyll:jekyll /srv/jekyll && \ + echo "jekyll ALL=NOPASSWD:ALL" >> /etc/sudoers +USER jekyll +RUN \ + cd && \ + + git clone git://github.com/sstephenson/rbenv.git .rbenv && \ + echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile && \ + echo 'eval "$(rbenv init -)"' >> ~/.profile && \ + . ~/.profile && \ + + git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build && \ + echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.profile && \ + . ~/.profile && \ + + git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash && \ + + rbenv install 2.2.3 && \ + rbenv global 2.2.3 && \ + ruby -v && \ + echo "gem: --no-ri --no-rdoc" > ~/.gemrc && \ + + gem clean && gem install bundler --no-document && \ + + sudo rm -rf /usr/lib/ruby/gems/*/cache/*.gem +WORKDIR /srv/jekyll +EXPOSE 4000 +ENV HOME /home/jekyll +ENV HOSTNAME struts-jekyll +ENV PATH ${PATH}:${HOME}/.rbenv/plugins/ruby-build/bin +ENV PATH ${PATH}:${HOME}/.rbenv/bin +ENV PATH ${PATH}:${HOME}/.rbenv/shims +CMD ["bundle", "install"] \ No newline at end of file