Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install ruby from source #2429

Merged
merged 4 commits into from
Oct 19, 2021
Merged

Conversation

kkimurak
Copy link
Contributor

@kkimurak kkimurak commented Oct 9, 2021

GitLab 14.3.0 requires ruby> = 2.7.4. This image uses the ruby package of ppa since commit 125814d (migrated to brightbox/ruby-ng since d4ae3c4), but it hasn't been updated for 40 weeks after updating ruby2.7 to 2.7.2.
I think this is one of the reasons behind the delay in the release of this image.

With this patch, this image will install ruby by building from source instead of apt.

update: Also, ruby will be updated to 2.7.4 from 2.7.2 in this PR.

This is alternative way of #2428 to prepare GitLab 14.3.0. I have also tested this patch with 14.2.3, 14.2.4 and 14.3.0 (I simply updated ruby to 2.7.4 when I test 14.3.0).

assets/build/install.sh Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
`bundler 2.1.4` is default gem of ruby >= 2.7.1 and installed during ruby installation
so we don't need to install it explicitly.
@sachilles
Copy link
Collaborator

Hi,

I'll merge your PR later in the evening. Sorry for the delay.

I think that defining a variable for the source of the Ruby tarball makes sense.
Copy link
Collaborator

@sachilles sachilles left a comment

Choose a reason for hiding this comment

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

LGTM

@sachilles sachilles merged commit 1d6fa31 into sameersbn:master Oct 19, 2021
@kkimurak
Copy link
Contributor Author

Thanks. I can create pull request for 14.3.0 just now

@kkimurak kkimurak deleted the install-ruby-from-source branch October 19, 2021 19:16
kkimurak added a commit to kkimurak/docker-gitlab that referenced this pull request Dec 9, 2021
followup of Merge pull request sameersbn#2429
image size : 2.83GB / 14.4.1 is 2.69GB
I will try to make smaller ..
kkimurak added a commit to kkimurak/docker-gitlab that referenced this pull request Dec 10, 2021
followup of Merge pull request sameersbn#2429
image size : 2.83GB / 14.4.1 is 2.69GB
I will try to make smaller ..
kkimurak added a commit to kkimurak/docker-gitlab that referenced this pull request Dec 24, 2021
followup of Merge pull request sameersbn#2429
image size : 2.83GB / 14.4.1 is 2.69GB
I will try to make smaller ..
kkimurak added a commit to kkimurak/docker-gitlab that referenced this pull request Jan 4, 2022
followup of Merge pull request sameersbn#2429
image size : 2.83GB / 14.4.1 is 2.69GB
I will try to make smaller ..
kkimurak added a commit to kkimurak/docker-gitlab that referenced this pull request Jan 11, 2022
followup of Merge pull request sameersbn#2429
image size : 2.83GB / 14.4.1 is 2.69GB
I will try to make smaller ..
kkimurak pushed a commit to kkimurak/docker-gitlab that referenced this pull request Jan 23, 2023
for caching

We have started installing ruby from source at first (5266396)

then migrated to official ubuntu ppa (125814d)

and then brightbox/ruby-ng repo
(d4ae3c4),

finally back to source installation (sameersbn#2429).

In work sameersbn#2429 the installation process is written in install.sh,
but, at the beginning, that were in Dockerfile.
kkimurak pushed a commit to kkimurak/docker-gitlab that referenced this pull request Feb 3, 2023
for caching

We have started installing ruby from source at first (5266396)

then migrated to official ubuntu ppa (125814d)

and then brightbox/ruby-ng repo
(d4ae3c4),

finally back to source installation (sameersbn#2429).

In work sameersbn#2429 the installation process is written in install.sh,
but, at the beginning, that were in Dockerfile.
kkimurak pushed a commit to kkimurak/docker-gitlab that referenced this pull request Feb 7, 2023
for caching

We have started installing ruby from source at first (5266396)

then migrated to official ubuntu ppa (125814d)

and then brightbox/ruby-ng repo
(d4ae3c4),

finally back to source installation (sameersbn#2429).

In work sameersbn#2429 the installation process is written in install.sh,
but, at the beginning, that were in Dockerfile.
kkimurak added a commit to kkimurak/docker-gitlab that referenced this pull request Feb 7, 2023
for caching

We have started installing ruby from source at first (5266396)

then migrated to official ubuntu ppa (125814d)

and then brightbox/ruby-ng repo
(d4ae3c4),

finally back to source installation (sameersbn#2429).

In work sameersbn#2429 the installation process is written in install.sh,
but, at the beginning, that were in Dockerfile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants