Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Fix Docker perm issue on Linux
Browse files Browse the repository at this point in the history
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
  • Loading branch information
janisz committed Aug 19, 2020
1 parent ea6a40e commit 4b2de17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ else
define inDocker
docker run \
-e GOFLAGS \
-e GO111MODULE \
-e GOFLAGS -e GO111MODULE -e HOME=/tmp \
-u $(shell id -u):$(shell id -g) \
-v $(CURRENT_DIR):$(PKG_DIR) \
-w $(PKG_DIR) \
--rm \
Expand Down

0 comments on commit 4b2de17

Please sign in to comment.