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

Add a CI job to build our container images #282

Merged
merged 10 commits into from
Dec 21, 2023
Merged

Conversation

ian-noaa
Copy link
Contributor

@ian-noaa ian-noaa commented Dec 20, 2023

Add a CI job to build the container images for ingest and import.

Notable changes include:

  • Container image builds for multiple architectures (amd64 and x86_64)
  • Image caching for the ingest image - the eccodes layer was taking 23 of the 33 minutes to build. Note that it may make more sense to build the eccodes layer as its own image instead of caching to avoid security issues.
  • Add security scanning
  • Removed vulnerable binaries from the repo (promql and cbtools) and installed cbtools in the container image
  • Allowed failing scans for the import image to succeed. Couchbase needs to update their cbtools binaries to resolve those vulnerabilities.

@ian-noaa ian-noaa self-assigned this Dec 20, 2023
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Couchbase needs to update their cbtools package before we can resolve
the vulnerabilities Trivy has found.
Shift the cbtools from being included in the repo to being installed in
the container. Update the import-docs.sh script to use the cbtools that
exist on the PATH.
Copy link
Contributor

@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.

i think this is fine

@ian-noaa ian-noaa merged commit 1d9a76e into main Dec 21, 2023
5 checks passed
@ian-noaa ian-noaa deleted the build-container-in-ci branch December 21, 2023 18:00
@ian-noaa ian-noaa linked an issue Dec 21, 2023 that may be closed by this pull request
4 tasks
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.

Set Up GitHub Actions
2 participants