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

Reduce container image size #1007

Merged
merged 3 commits into from
Jul 13, 2023
Merged

Conversation

ian-noaa
Copy link
Collaborator

@ian-noaa ian-noaa commented Jul 13, 2023

This PR does two things:

  1. Removes some unused statements in our Dockerfile
  2. Updates the Node Couchbase SDK to v4.2.5

These two changes shrink our container image's size from 1.15 GB to ~740 MB.

These statements increase the size of the image for little benefit.
Debian doesn't let you use pip to update pip - you have to go through
the package manager. Adding g++ & build-essential are only needed
for ARM builds. In practice, we don't need these too much. Meteor is
also looking into making ARM builds available so we wouldn't have to
rebuild.
Versions <4.2.5 were quite large - updating to the latest reduced our
image size substantially.
@ian-noaa ian-noaa self-assigned this Jul 13, 2023
Copy link
Collaborator

@randytpierce randytpierce left a comment

Choose a reason for hiding this comment

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

This seems good.

@ian-noaa ian-noaa merged commit a4d7c2a into development Jul 13, 2023
35 checks passed
@ian-noaa ian-noaa deleted the 1005-container-image-size-increased branch July 13, 2023 21:28
@ian-noaa ian-noaa linked an issue Jul 13, 2023 that may be closed by this pull request
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.

Container image size increased
2 participants