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

alpha-sdk: add dockerignore #238

Merged
merged 1 commit into from
May 28, 2024

Conversation

webern
Copy link
Contributor

@webern webern commented May 24, 2024

Issue number:

Related #210

Description of changes:

Without this change the per-package directory structure would cause all RPMs to be missing from the Alpha SDK because Bottlerocket's .dockerignore file would ignore them. With this change we create a .dockerignore to be used when building the Alpha SDK.

Testing done:

Built an Alpha SDK and verified that the RPMs were copied to it.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@@ -171,7 +171,7 @@ do
--tag "${tag}" \
--build-arg "SDK=${sdk}" \
--build-arg "HOST_GOARCH=${host_arch}" \
--file "${script_dir}/alpha-sdk.dockerfile" \
Copy link
Member

Choose a reason for hiding this comment

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

I recently broke up the Dockerfile used by buildsys to be:

build.Dockerfile
build.Dockerfile.dockerignore
repack.Dockerfile
repack.Dockerfile.dockerignore

Should this be alpha-sdk.Dockerfile and alpha-sdk.Dockerfile.dockerignore instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean the casing is wrong? Yeah I can make it uppercase.

@webern webern force-pushed the alpha-sdk-dockerignore branch from 9d1657c to a44f478 Compare May 25, 2024 23:03
@webern
Copy link
Contributor Author

webern commented May 25, 2024

@webern webern merged commit 65bd077 into bottlerocket-os:develop May 28, 2024
1 check passed
@webern webern deleted the alpha-sdk-dockerignore branch May 28, 2024 10:36
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.

3 participants