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

fix: UBI9 image build [CIT-518] #1353

Merged
merged 2 commits into from
Aug 23, 2023
Merged

Conversation

jonnyowenpowell
Copy link
Contributor

@jonnyowenpowell jonnyowenpowell commented Aug 21, 2023

  • Tests written and linted ℹ︎
  • Documentation written ℹ︎
  • Commit history is tidy ℹ︎

What this does

This PR improves the installation and verification of dependencies in the UBI9 image build.

Dependency installation via package managers or builds from source have been replaced by binary downloads. Binaries are downloaded with curls -f (--fail) set, and hashes of the downloaded files are checked before continuing the build. A notable exception is gcloud, the Google Cloud CLI, which continues to be installed via their provided script. Python 3 is no longer explicitly installed, and instead we allow gcloud to install its bundled version of Python.

The application is now built using the ubi8/nodejs-16 base image, to align more closely with the production container's base image. Due to the age of Node.js 16, a UBI9 base image is not available. When this project updates to use Node.js 18, we can build using the ubi9/nodejs-18 image, achieving complete alignment with the production container's base image.

Platforms are explicitly set to linux/amd64 for both build stages, to ensure that developer's machine architecture does not affect the image being built.

Notes for the reviewer

This resolves a couple of issues:

  • Skopeo failing to find the shared library libdevmapper
  • Failed downloads of binaries resulting in failure messages from the remote being naively saved as executable binaries

@jonnyowenpowell jonnyowenpowell force-pushed the fix/ubi9-image-build branch 2 times, most recently from 837debf to 9a2d7da Compare August 21, 2023 15:19
@jonnyowenpowell jonnyowenpowell marked this pull request as ready for review August 22, 2023 08:44
@jonnyowenpowell jonnyowenpowell requested a review from a team as a code owner August 22, 2023 08:44
@jonnyowenpowell jonnyowenpowell force-pushed the fix/ubi9-image-build branch 8 times, most recently from e2eb7e5 to b48dcc7 Compare August 22, 2023 09:43
@jonnyowenpowell jonnyowenpowell changed the title fix: UBI9 image build [WIP] fix: UBI9 image build Aug 23, 2023
@jonnyowenpowell jonnyowenpowell merged commit 4798cbd into staging Aug 23, 2023
1 check passed
@jonnyowenpowell jonnyowenpowell deleted the fix/ubi9-image-build branch August 23, 2023 10:56
@team-container-integration
Copy link
Collaborator

🎉 This PR is included in version 2.4.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@iuliams iuliams changed the title fix: UBI9 image build fix: UBI9 image build [CIT-518] Aug 23, 2023
iuliams added a commit that referenced this pull request Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants