Skip to content

[Salvo] Add su-exec docker image dependency to Salvo build process - #121

Merged
mum4k merged 2 commits into
envoyproxy:mainfrom
abaptiste:su_exec_docker_image_dependency
Aug 17, 2021
Merged

mum4k merged 2 commits into
envoyproxy:mainfrom
abaptiste:su_exec_docker_image_dependency

Conversation

@abaptiste

@abaptiste abaptiste commented Aug 16, 2021 •

Copy link
Copy Markdown
Contributor

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.

This change updates the build process to execute the appropriate target and stage the su-exec binary for the docker image generation.

cc @mum4k

@abaptiste

Copy link
Copy Markdown
Contributor Author

Coverage stats per CI:

Overall coverage rate:
  lines......: 97.9% (4722 of 4824 lines)
  functions..: no data found
HTML coverage report generated, view by running:
  (cd coverage/html && python3 -m http.server)
~/project

CircleCI received exit code 0

@abaptiste abaptiste changed the title Su exec docker image dependency [Salvo] Add su-exec docker image dependency to Salvo build process Aug 16, 2021
os.mkdir(dest_path, dir_mode)

cmd = "cp -fv "
cmd += "bazel-bin/external/com_github_ncopa_suexec/su-exec "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure it really matters here .. but it is possible to query the location of the bazel-bin directory via

bazel info bazel-bin

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The bazel-bin symlink is in the immediate directory where the docker image construction is happening. I don't think we'd gain much by using the link target that's returned by bazel info bazel-bin.

Good to know that this is available and will keep it in mind. Thanks!

@mum4k mum4k left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you Alvin.

@mum4k
mum4k merged commit 3b2e1b8 into envoyproxy:main Aug 17, 2021
@abaptiste

Copy link
Copy Markdown
Contributor Author

Thank you for the merge @mum4k

@abaptiste
abaptiste deleted the su_exec_docker_image_dependency branch August 17, 2021 19:16
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