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

Get base images for go builds independent of rules_docker version #136

Merged
merged 3 commits into from
Apr 20, 2023

Conversation

AlejoAsd
Copy link
Contributor

Closes issue #130.

This PR alters the bazel build to use rules_oci to pull go base images using a version that's decoupled for the rules_docker version. This allows for us to update the base image version without having to depend on rules_docker.

The latest version of both the base and static distroless version was used to avoid unexpected breakages.

Note that oci_rules pull supports using the latest tag. The macro that pulls base images can be configured to always pull the latest images and be up to date if we are okay with assuming the potential upstream breakage risks it introduces.

Signed-off-by: Alejo Carballude <alejocarballude@gmail.com>
@AlejoAsd AlejoAsd requested a review from ensonic April 19, 2023 20:11
@AlejoAsd AlejoAsd self-assigned this Apr 19, 2023
Signed-off-by: Alejo Carballude <alejocarballude@gmail.com>
Signed-off-by: Alejo Carballude <alejocarballude@gmail.com>
@AlejoAsd AlejoAsd requested a review from ensonic April 20, 2023 12:37
Copy link
Contributor

@ensonic ensonic left a comment

Choose a reason for hiding this comment

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

Thanks!

@ensonic ensonic merged commit 5ca0511 into main Apr 20, 2023
@ensonic ensonic deleted the bazel_rules_docker_independent_base_images branch April 20, 2023 16:03
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