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

batches: improve handling of non-root steps #886

Merged
merged 2 commits into from
Nov 18, 2022
Merged

Conversation

LawnGnome
Copy link
Contributor

@LawnGnome LawnGnome commented Nov 18, 2022

This changes the default for src batch exec (used by SSBC) to run all step containers as root, and adds a flag to src batch apply and src batch preview to optionally do the same thing.

Fixes sourcegraph/sourcegraph#41836.

Test plan

Tested with client and server side batch changes and a batch spec that outputs id into a file, with a container image that does not run as root by default (specifically, haproxy:alpine).

This changes the default for `src batch exec` (used by SSBC) to run all
step containers as root, and adds a flag to `src batch apply` and `src
batch preview` to optionally do the same thing.

Fixes #41836.
@LawnGnome LawnGnome marked this pull request as ready for review November 18, 2022 00:09
@LawnGnome LawnGnome requested a review from a team November 18, 2022 00:09
@LawnGnome LawnGnome merged commit c9902bf into main Nov 18, 2022
@LawnGnome LawnGnome deleted the aharvey/run-as-root branch November 18, 2022 00:27
scjohns pushed a commit that referenced this pull request Apr 24, 2023
This changes the default for `src batch exec` (used by SSBC) to run all
step containers as root, and adds a flag to `src batch apply` and `src
batch preview` to optionally do the same thing.

Fixes sourcegraph/sourcegraph#41836.
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.

batches: Work with docker images with custom UID
2 participants