From 4c1086869e5bae3b11ea047d570c2f0bb2320031 Mon Sep 17 00:00:00 2001 From: Thiago Duarte Areias Date: Mon, 17 Dec 2018 23:42:15 +0000 Subject: [PATCH 1/2] Fixes /dev/fuse permissions inside docker when host is running MacOS --- docker/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index c893b72..6b668b1 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -26,4 +26,9 @@ if [ $CACHED_UID != $RUN_UID ] || [ $RUN_GID != $CACHED_GID ]; then chown $RUN_UID:$RUN_GID -R $CARGO_HOME $RUSTUP_HOME fi +# fixes issue in docker for mac where fuse permissions are restricted to root:root +# https://github.com/theferrit32/data-commons-workspace/issues/5 +# https://github.com/heliumdatacommons/data-commons-workspace/commit/f96624c8a55f5ded5ac60f4f54182a59be92e66d +if [ -f /dev/fuse ]; then sudo chmod 666 /dev/fuse; fi + exec gosu $USER_NAME "$@" From d8dae1dfd735e9b09bb33f4cc125945c6f801fd2 Mon Sep 17 00:00:00 2001 From: Thiago Duarte Areias Date: Thu, 20 Jun 2019 07:47:09 +0000 Subject: [PATCH 2/2] Removes the need to sudo since the script is already running as sudo --- docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 6b668b1..2cea4ee 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -29,6 +29,6 @@ fi # fixes issue in docker for mac where fuse permissions are restricted to root:root # https://github.com/theferrit32/data-commons-workspace/issues/5 # https://github.com/heliumdatacommons/data-commons-workspace/commit/f96624c8a55f5ded5ac60f4f54182a59be92e66d -if [ -f /dev/fuse ]; then sudo chmod 666 /dev/fuse; fi +if [ -f /dev/fuse ]; then chmod 666 /dev/fuse; fi exec gosu $USER_NAME "$@"