1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-01 03:55:44 +00:00

--no-rdoc and --no-ri cannot be passed to gem install or bundle install in ruby 2.6

This commit is contained in:
2019-04-19 11:19:11 -04:00
parent 07eb7c84e2
commit 1dfceda422
3 changed files with 7 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/bash -e #!/bin/bash -e
project_dir="$(dirname $( dirname $(readlink -f ${BASH_SOURCE[0]})))" project_dir="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/.."
docker build -f ${project_dir}/deploy/rails-prod-Dockerfile -t wrestlingdevtests ${project_dir}/. docker build -f ${project_dir}/deploy/rails-prod-Dockerfile -t wrestlingdevtests ${project_dir}/.
docker run -it wrestlingdevtests bash /rails/bin/run-all-tests.sh docker run -it wrestlingdevtests bash /rails/bin/run-all-tests.sh

View File

@@ -16,10 +16,11 @@ RUN echo "America/New_York" > /etc/timezone \
&& rm /etc/localtime \ && rm /etc/localtime \
&& ln -s /usr/share/zoneinfo/America/New_York /etc/localtime && ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
RUN gem install --no-rdoc --no-ri bundler RUN echo 'gem: --no-rdoc --no-ri' > /root/.gemrc
RUN gem install bundler
ADD Gemfile* /tmp/ ADD Gemfile* /tmp/
WORKDIR /tmp WORKDIR /tmp
RUN bundle install --without production RUN bundle install --jobs 4 --without production
RUN mkdir /rails RUN mkdir /rails
WORKDIR /rails WORKDIR /rails

View File

@@ -24,13 +24,14 @@ RUN apt-get -qq update \
/tmp/* \ /tmp/* \
/var/tmp/* /var/tmp/*
RUN gem install --no-rdoc --no-ri bundler RUN echo 'gem: --no-rdoc --no-ri' > /root/.gemrc
RUN gem install bundler
#Cache gems so they don't install on every code change #Cache gems so they don't install on every code change
RUN rm -rf /rails && mkdir /rails RUN rm -rf /rails && mkdir /rails
WORKDIR /rails WORKDIR /rails
COPY Gemfile Gemfile COPY Gemfile Gemfile
COPY Gemfile.lock Gemfile.lock COPY Gemfile.lock Gemfile.lock
RUN bundle install RUN bundle install --jobs 4
# Copy site into place. # Copy site into place.
ADD . /rails/ ADD . /rails/