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

Uses assemblies in docker images and enables arm64+amd64 platforms #163

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mattjohnson
Copy link
Contributor

@mattjohnson mattjohnson commented Nov 21, 2024

Changes included in this PR:

  • Support both linux/amd64 and linux/arm64 architectures
  • Update base images to use ubi-minimal
  • Use assemblies that contain embedded JDK instead of using openjdk base image (includes too many unnecessary packages)
  • Sets up docker trust for manifest list tags
  • Builds all architectures on branch jobs

Overall docker image size is reduced by about 300MB.

export PATH=${env.PATH}:${env.WORKSPACE}/go/bin:${env.WORKSPACE}/bin
export GOPATH=${env.WORKSPACE}
go install -tags pkcs11 github.com/theupdateframework/notary/cmd/notary@latest
notary --help
Copy link
Contributor

Choose a reason for hiding this comment

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

notary --help - Is this line needed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not strictly needed. I liked it because it helped me debug locally to know it was installed and setup correctly.

export PATH=${env.PATH}:${env.WORKSPACE}/go/bin:${env.WORKSPACE}/bin
export GOPATH=${env.WORKSPACE}
go install -tags pkcs11 github.com/theupdateframework/notary/cmd/notary@latest
notary --help
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above - is this line needed here?

Copy link
Contributor

@eduard-tita eduard-tita left a comment

Choose a reason for hiding this comment

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

+0.5 Nothing stands out to me as wrong, but I cannot say I fully understand all the details.

Especially the notarization approach is new to me, so I cannot tell by just looking at the PR if it works or not, or if anything is missing.

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