Skip to content
Snippets Groups Projects
Commit 5a8de692 authored by jurgenhaas's avatar jurgenhaas
Browse files

Use group id 1 on Mac

parent 6efad191
No related branches found
No related tags found
1 merge request!1Feature/macos
......@@ -40,6 +40,7 @@ function startContainer {
--hostname ${COMPOSE_PROJECT_NAME}-l3d
--user ${USERID}:${GROUPID}
--group-add ${GROUPIDS// / --group-add }
--env L3DVERSION=${L3DVERSION} \
--env L3DSHELL=${L3DSHELL}
--env COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}
--env COMPOSER_DOWNGRADE=${COMPOSER_DOWNGRADE}
......
......@@ -19,7 +19,7 @@ case "${L3DHOSTOS}" in
SCRIPTPATH="$(dirname "$(greadlink -f "$0")")"
L3DDOCKERHOST="$(dirname "$(greadlink -f "/var/run/docker.sock")")/docker.sock"
fi
GROUPID=$(cut -d: -f3 < <(getent group docker))
GROUPID=1
# Write a fake passwd file which will later be mounted into containers.
echo "${USERNAME}:x:${USERID}:${GROUPID}:${USERNAME},,,:/home/${USERNAME}:${L3DSHELL}" >${HOME}/.passwd
# This variable is used to access the ssh agent on MacOS.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment