Last active
August 29, 2015 14:01
-
-
Save ixixi/543e5668f57466f1c08b to your computer and use it in GitHub Desktop.
norikra dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM base | |
| MAINTAINER ixixizko-at-gmail.com | |
| # Install packages for building ruby,jruby | |
| RUN apt-get update | |
| RUN apt-get install -y --force-yes build-essential curl git | |
| RUN apt-get install -y --force-yes zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev | |
| RUN apt-get install -y openjdk-7-jre-headless | |
| RUN apt-get clean | |
| ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64 | |
| # Install rbenv and ruby-build | |
| RUN git clone https://github.com/sstephenson/rbenv.git /root/.rbenv | |
| RUN git clone https://github.com/sstephenson/ruby-build.git /root/.rbenv/plugins/ruby-build | |
| RUN ./root/.rbenv/plugins/ruby-build/install.sh | |
| ENV PATH /root/.rbenv/bin:$PATH | |
| RUN echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh | |
| RUN echo 'eval "$(rbenv init -)"' >> .bashrc | |
| ENV CONFIGURE_OPTS --disable-install-doc | |
| # Install rubies | |
| RUN rbenv install 2.1.2 | |
| RUN rbenv install jruby-1.7.9 | |
| # Install norikra | |
| RUN bash -l -c 'rbenv global jruby-1.7.9 ; gem install norikra' | |
| RUN bash -l -c 'rbenv shell 2.1.2; gem install norikra-client' | |
| RUN mkdir -p /var/log/norikra | |
| # set up locale | |
| RUN locale-gen ja_JP.UTF-8 | |
| RUN update-locale LANG=ja_JP.UTF-8 | |
| ENV LC_ALL ja_JP.UTF-8 | |
| ENV LANG ja_JP.UTF-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment