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 Docker perm issue on Linux #347

Merged
merged 1 commit into from
Sep 4, 2019
Merged

Fix Docker perm issue on Linux #347

merged 1 commit into from
Sep 4, 2019

Conversation

bamarni
Copy link
Contributor

@bamarni bamarni commented Sep 3, 2019

When running make using Docker (NO_DOCKER is not exported), the
make plugin command then fails on Linux because of a permission issue.
The binary is owned by root thus the plugin ZIP cannot be created.

This changes the Docker command to run as the current user, it also sets
the HOME directory to /tmp as /root wouldn't be writable but is
still needed for Go cache files.

When running `make` using Docker (`NO_DOCKER` is not exported), the
`make plugin` command then fails on Linux because of a permission issue.
The binary is owned by root thus the plugin ZIP cannot be created.

This changes the Docker command to run as the current user, it also sets
the HOME directory to `/tmp` as `/root` wouldn't be writable but is
still needed for Go cache files.
@bamarni bamarni merged commit a5162d4 into 1.14-patch.x Sep 4, 2019
@bamarni bamarni deleted the perm-issue-linux branch September 4, 2019 12:45
janisz added a commit to janisz/dcos-cli that referenced this pull request Aug 19, 2020
This changes the Docker command to run as the current user, it also sets
the HOME directory to /tmp as /root wouldn't be writable but is
still needed for Go cache files.

Refs: dcos/dcos-core-cli#347
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.

4 participants