Skip to content

Commit

Permalink
Docker ruby gem no doc tweak
Browse files Browse the repository at this point in the history
Optimization tweak for ruby gems no doc while gems installation using
 "--no-document" . Also removal of depricated "--no-ri" and "--no-rdoc" in docker
  environment help to reduce size and time in building and pulling

 More detail can be found at
 https://guides.rubygems.org/command-reference/#installupdate-options-2

 Signed-off-by: Pratik raj <rajpratik71@gmail.com>
  • Loading branch information
Rajpratik71 committed Aug 14, 2020
1 parent 3368159 commit 238ba42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/docker/linux-apt-c-glib.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ RUN luarocks install lgi
# ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpsk4jveay Check the logs for full command output.
RUN (python3 -m pip install meson || \
python3 -m pip install --no-use-pep517 meson) && \
gem install bundler
gem install --no-document bundler

COPY c_glib/Gemfile /arrow/c_glib/
RUN bundle install --gemfile /arrow/c_glib/Gemfile
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/linux-apt-docs.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ RUN pip install \
sphinx_rtd_theme

COPY c_glib/Gemfile /arrow/c_glib/
RUN gem install bundler && \
RUN gem install --no-document bundler && \
bundle install --gemfile /arrow/c_glib/Gemfile

COPY ci/scripts/r_deps.sh /arrow/ci/scripts/
Expand Down
2 changes: 1 addition & 1 deletion dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ test_glib() {
export GI_TYPELIB_PATH=$ARROW_HOME/lib/girepository-1.0:$GI_TYPELIB_PATH

if ! bundle --version; then
gem install bundler
gem install --no-document bundler
fi

bundle install --path vendor/bundle
Expand Down

0 comments on commit 238ba42

Please sign in to comment.