Skip to content

Commit

Permalink
Merge pull request #1038 from original-brownbear/1037
Browse files Browse the repository at this point in the history
#1037 fixed ruby depdendencies
  • Loading branch information
Yegor Bugayenko committed Mar 4, 2016
2 parents 1ac243a + 582d124 commit c610cb5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 35 deletions.
6 changes: 1 addition & 5 deletions .rultor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ install: |-
sudo apt-get install bsdmainutils
sudo gem install --no-rdoc --no-ri pdd
sudo gem install --no-rdoc --no-ri est
bundle install
bundle update
bundle show jekyll
jekyll --version
architect:
- original-brownbear
- yegor256
Expand Down Expand Up @@ -78,4 +74,4 @@ release:
mvn clean site-deploy -Prultor -Psite --errors --settings ../settings.xml --batch-mode || echo 'site-deploy failed'
commanders:
- original-brownbear
- yegor256
- yegor256
18 changes: 8 additions & 10 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#
# Just run "bundle"
#
source 'https://rubygems.org'
ruby '2.2.4'
gem 'jekyll', '2.4.0'
gem 'sass'
gem 'jekyll-sass'
gem 'sass', '3.4.21'
gem 'jekyll-sass', '1.2.2'
gem 'jekyll-plantuml', '1.0.2'
gem 'jekyll-press'
gem 'jgd', '1.3'
gem 'nokogiri'
gem 'mail'
gem 'uuidtools'
gem 'liquid'
gem 'redcarpet'
gem 'nokogiri', '1.6.7.2'
gem 'mail', '2.6.3'
gem 'uuidtools', '2.1.5'
gem 'liquid', '2.6.3'
gem 'redcarpet', '3.3.4'
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@
<configuration>
<executable>bundle</executable>
<arguments>
<argument>install</argument>
<argument>update</argument>
</arguments>
</configuration>
</execution>
Expand Down
25 changes: 6 additions & 19 deletions src/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,12 @@ RUN apt-get install -y ssh && \
chmod 0755 /var/run/sshd

# Ruby
RUN apt-get install -y libmagic-dev zlib1g-dev
RUN apt-get update && apt-get install -y libmagic-dev=1:5.14-2ubuntu3.3 \
zlib1g-dev=1:1.2.8.dfsg-1ubuntu1
RUN apt-add-repository ppa:brightbox/ruby-ng
RUN apt-get update
RUN apt-get install -y ruby2.2 ruby2.2-dev
RUN gem update && gem install nokogiri && gem install bundler

# Ruby via RVM
#RUN apt-add-repository -y ppa:rael-gc/rvm
#RUN apt-get update
#RUN sudo apt-get install -y rvm
#RUN /bin/bash -l -c "rvm install ruby"
#RUN /bin/bash -l -c "gem update"
#RUN /bin/bash -l -c "gem install nokogiri"
#RUN /bin/bash -l -c "gem install bundler"
#RUN echo 'source /usr/share/rvm/scripts/rvm' >> /etc/bash.bashrc
RUN apt-get update && apt-get install -y ruby2.2=2.2.4-1bbox1~trusty1 \
ruby2.2-dev=2.2.4-1bbox1~trusty1
RUN gem update && gem install nokogiri:1.6.7.2 && gem install bundler:1.11.2

# PHP
RUN apt-get install -y php5 php5-dev php-pear
Expand Down Expand Up @@ -124,7 +115,7 @@ RUN wget --quiet "http://mirror.dkd.de/apache/maven/maven-3/${MAVEN_VERSION}/bin
update-alternatives --install /usr/bin/mvn mvn "${M2_HOME}/bin/mvn" 1 && \
update-alternatives --config mvn

RUN gem install jekyll
RUN gem install jekyll:2.4.0

ENV MAVEN_OPTS "-Xms512m -Xmx2g"
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
Expand All @@ -135,10 +126,6 @@ RUN cd rultor && \
cd .. && \
rm -rf rultor

# One more time, right before the end
RUN apt-get update -y
RUN apt-get upgrade -qq -y

# Clean up
RUN rm -rf /tmp/*
RUN rm -rf /root/.ssh

0 comments on commit c610cb5

Please sign in to comment.