Repository navigation
[build] Bazel build for su-exec - #15204
Conversation
|
Hi @arkodg, welcome and thank you for your contribution. We will try to review your Pull Request as quickly as possible. In the meantime, please take a look at the contribution guidelines if you have not done so already. |
|
@arkodg can you complete the dependency checklist in https://github.com/envoyproxy/envoy/blob/main/DEPENDENCY_POLICY.md#new-external-dependencies? Thanks. |
|
@arkodg as pointed out to me by @alyssawilk this isn't actually a new dep, it's already in the Docker image. I'm not sure what advantage we gain by building it under Bazel though, since its only relevance is for use inside the Docker image? |
|
@htuch The flakiness comes from wget in the Dockerfile which executed multiple times in multiarch build and not cached. So this address that by building and caching it with Bazel. |
There was a problem hiding this comment.
dont we want to continue using the apk version for the alpine build ?
There was a problem hiding this comment.
my bad, I forgot to add
ADD ${TARGETPLATFORM}/build_release/su-exec /usr/local/bin/
to this file to keep things consistent, let me do that right away
There was a problem hiding this comment.
or do you prefer that I just let this be the way it was ?
There was a problem hiding this comment.
personally - i think better the way it was.
we only added it in the other container image because it wasnt available in the distro
There was a problem hiding this comment.
sg, will revert this portion
moderation
left a comment
There was a problem hiding this comment.
Question re: bumping alpine image version to resolve CVE
htuch
left a comment
There was a problem hiding this comment.
I'm still a little uncomfortable adding general tooling into repository_locations.bzl. Can we split this into some other file and still build under Bazel? If we keep it where it is, at the very least please add a detailed comment explaining that this is not a part of the Envoy binary or tests, but is just used as part of our Docker image builds.
|
@htuch sure will add comments stating why the bazel rules were added for su-exec |
|
I don't see anything cleaner than what you have right now. SG. |
|
@arkodg can you fix format? |
|
see a bunch of failures |
|
@arkodg I reran the tests and still failing, can you merge main? |
|
hit another unrelated issue which I don't see on my local Mac machine @lizan is this a known issue w multi-arch/buildx ? |
|
@arkodg i think its a flake - you also need to merge main to get rid of some other ci issues (better merge and push rather than rebase and force push once there are reviewers) |
Relates to envoyproxy#14454 Signed-off-by: Arko Dasgupta <[email protected]>
|
thanks @phlax, rebased to main, squashed and pushed |
|
/lgtm deps |
Hit this multiarch build issue on a seperate PR envoyproxy#15204 (comment) Fixes envoyproxy#14971 Most likely relates to docker/buildx#542 https://github.com/docker/buildx#building-multi-platform-images recommends running `docker run --privileged --rm tonistiigi/binfmt --install all` before setting up `buildx` Signed-off-by: Arko Dasgupta <[email protected]>
Hit this multiarch build issue on a seperate PR #15204 (comment) Fixes #14971 Most likely relates to docker/buildx#542 https://github.com/docker/buildx#building-multi-platform-images recommends running `docker run --privileged --rm tonistiigi/binfmt --install all` before setting up `buildx` Signed-off-by: Arko Dasgupta <[email protected]>
Hit this multiarch build issue on a seperate PR envoyproxy#15204 (comment) Fixes envoyproxy#14971 Most likely relates to docker/buildx#542 https://github.com/docker/buildx#building-multi-platform-images recommends running `docker run --privileged --rm tonistiigi/binfmt --install all` before setting up `buildx` Signed-off-by: Arko Dasgupta <[email protected]> Signed-off-by: Auni Ahsan <[email protected]>
) While testing Salvo with Envoy v1.19.0, the docker image failed to build. Closer examination showed it failed due to the addition of su-exec as a dependency in this [Envoy PR](envoyproxy/envoy#15204). This change updates the build process to execute the appropriate target and stage the su-exec binary for the docker image generation. Signed-off-by: abaptiste <[email protected]>
Hit this multiarch build issue on a seperate PR envoyproxy/envoy#15204 (comment) Fixes envoyproxy/envoy#14971 Most likely relates to docker/buildx#542 https://github.com/docker/buildx#building-multi-platform-images recommends running `docker run --privileged --rm tonistiigi/binfmt --install all` before setting up `buildx` Signed-off-by: Arko Dasgupta <[email protected]>
Relates to #14454
Signed-off-by: Arko Dasgupta [email protected]
Risk Level: Medium
Testing: Manual + CI