Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

upgrade gems version #14

Merged
merged 1 commit into from
Aug 13, 2019
Merged

Conversation

aiwantaozi
Copy link
Contributor

Problem:
current elasticsearch gems has warning log for elasticsearch 7.x

Solution:
upgrade fluentd, elasticsearch etc gems version

Issue:
rancher/rancher#20450
rancher/rancher#20509

@kinolaev
Copy link

kinolaev commented Aug 5, 2019

Hello @aiwantaozi! I found that Gemfile.lock is actually not used because only Gemfile copied to container.

COPY Gemfile /Gemfile

Is it bug or feature?)

@@ -38,10 +39,6 @@ RUN BUILD_DEPS="make ruby-dev build-essential autoconf automake libtool libsnapp
libjemalloc1 \
ruby \
&& echo 'gem: --no-document' >> /etc/gemrc \
&& gem install --file Gemfile \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this removed? Without this command you will get /run.sh: 23: exec: /usr/local/bin/fluentd: not found when running container.

&& gem install --file Gemfile \
&& apt-get purge -y --auto-remove \
-o APT::AutoRemove::RecommendsImportant=false \
$BUILD_DEPS \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, this is also must be preserved to make image smaller.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, we need it, will update pr and remove WIP after fully test

@aiwantaozi aiwantaozi changed the title upgrade gems version [WIP]upgrade gems version Aug 5, 2019
@aiwantaozi aiwantaozi force-pushed the enhance-upgrade branch 3 times, most recently from 05550f4 to 9ea77ef Compare August 7, 2019 06:07
Problem:
current elasticsearch gems has warning log for elasticsearch 7.x

Solution:
upgrade fluentd, elasticsearch etc gems version

Issue:
rancher/rancher#20450
rancher/rancher#20509
@aiwantaozi aiwantaozi changed the title [WIP]upgrade gems version upgrade gems version Aug 12, 2019
@orangedeng
Copy link

orangedeng commented Aug 13, 2019

Should we add bundle install to our ci? Then we can keep our gem updated.

@orangedeng
Copy link

LGTM

Copy link

@cjellick cjellick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cjellick cjellick merged commit 79d91ca into rancher:master Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants