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

fix(action): Set recommended environment variables #75

Merged
merged 1 commit into from
Jul 4, 2022
Merged

Conversation

Kurt-von-Laven
Copy link
Contributor

@Kurt-von-Laven Kurt-von-Laven commented Jul 4, 2022

The rootless Docker installation script suggests setting XDG_RUNTIME_DIR to ~/.docker/run when it isn't already set. Doing so prevents flakiness caused by the fact that some runners set XDG_RUNTIME_DIR to /run/user/1001 but don't have ~/.docker/run, while some don't set it but do have ~/.docker/run. Also follow the script's suggestion of prepending ~/bin to the PATH. Disregard the suggestion to set DOCKER_HOST to unix://$XDG_RUNTIME_DIR/docker.sock since we already achieve the same effect by setting the context to rootless.

The rootless Docker installation script suggests setting XDG_RUNTIME_DIR
to ~/.docker/run when it isn't already set. Doing so prevents flakiness
caused by the fact that some runners set XDG_RUNTIME_DIR to
/run/user/1001 but don't have ~/.docker/run, while some don't set it but
do have ~/.docker/run. Also follow the script's suggestion of prepending
~/bin to the PATH. Disregard the suggestion to set DOCKER_HOST to
unix://$XDG_RUNTIME_DIR/docker.sock since we already achieve the same
effect by setting the context to rootless.
Copy link
Contributor

@mwarres mwarres left a comment

Choose a reason for hiding this comment

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

LGTM

@Kurt-von-Laven Kurt-von-Laven merged commit 4979612 into main Jul 4, 2022
@Kurt-von-Laven Kurt-von-Laven deleted the action branch July 4, 2022 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants