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

Adding a platform-dependant executable to a Jib image #4336

Open
lesteenman opened this issue Nov 13, 2024 · 0 comments
Open

Adding a platform-dependant executable to a Jib image #4336

lesteenman opened this issue Nov 13, 2024 · 0 comments

Comments

@lesteenman
Copy link

We have a multiplatform Jib build (linux/arm64 and linux/amd64), to which we need to add an executable (the AWS ecr-credentials-helper for Docker, to be precise). However, there does not seem to be a way to do this; Adding files can only be done generically.

What I've considered:

  • Use extraDirectories: this only allows selecting files and setting their permissions.
  • Write my own extension: the ContainerBuildPlan you can modify contains both platforms. There does not seem to be a way to modify the container build plan of individual containers - only the generic plan.
  • Create a custom base image which already includes this executable: still considering, but this would involve another step when we want to update the underlying JRE image by updating and publishing our own new base image.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants