Skip to content

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.

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