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

WEB-6755: Gem updates #238

Merged
merged 9 commits into from
Jan 9, 2024
Merged

WEB-6755: Gem updates #238

merged 9 commits into from
Jan 9, 2024

Conversation

sammyd
Copy link
Contributor

@sammyd sammyd commented Jan 9, 2024

Attempting to upgrade to ruby 3.3, but it doesn't work on aarch64 yet

Upgraded gems tho, and attempted to make a multi-stage build Dockerfile. Please check this cos I'm not 100% of what I'm doing.

Not 100% I've got it right, but if I have, it's a size reduction from 600MB to 200MB, on the one image where the size does actually matter :)

@sammyd sammyd requested a review from KapilSachdev January 9, 2024 03:05
.ruby-version Outdated
@@ -1 +1 @@
3.2.0
3.3.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be better to keep it at 3.2 to be consistent with Dockerfile

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh my mistake—I attempted to get to 3.3 and had to rollback. Forgot to do here—thanks!

.rubocop.yml Outdated
@@ -1,5 +1,5 @@
AllCops:
TargetRubyVersion: 3.2
TargetRubyVersion: 3.3
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be better to keep it at 3.2 to be consistent with Dockerfile

@@ -55,20 +55,6 @@ def slides
snapshotter.generate
end


Copy link
Contributor

Choose a reason for hiding this comment

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

I think this works?
I guess I had reviewed the module text/video content UI using it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it should work...

Copy link
Contributor

@KapilSachdev KapilSachdev left a comment

Choose a reason for hiding this comment

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

Looks good to me.

ENV RUBY_ENV=${RUBY_ENV}

ARG RUNTIME_PACKAGES="imagemagick git tzdata"
ARG TEST_AND_DEV_PACKAGES="bash build-base libsodium-dev"
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we don't need libsodium-dev here as we are already copying libsodium from builder below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure whether it might also need header files or something else that might be part of the package when building a new version of the gem? Since this was only for test and development I thought it could probably stay in.

@sammyd sammyd merged commit e4566d9 into development Jan 9, 2024
1 check passed
@sammyd sammyd deleted the WEB-6755 branch January 9, 2024 08:16
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.

2 participants