Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LakeDropsDrupalDev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
LakeDropsDrupalDev
Commits
d6024c64
Commit
d6024c64
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#57
Pass through UID and GID from host
parent
9936908b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
run/scripts/start
+1
-1
1 addition, 1 deletion
run/scripts/start
setup/scripts/l3d
+4
-0
4 additions, 0 deletions
setup/scripts/l3d
with
5 additions
and
1 deletion
run/scripts/start
+
1
−
1
View file @
d6024c64
...
...
@@ -37,7 +37,7 @@ function startContainer {
else
docker run
--name
${
COMPOSE_PROJECT_NAME
}
_l3d
-dt
\
--hostname
${
COMPOSE_PROJECT_NAME
}
-l3d
\
--user
$
(
id
-u
)
:
$(
id
-g
)
\
--user
$
{
USERID
}
:
${
GROUPID
}
\
--env
L3DSHELL
=
${
L3DSHELL
}
\
--env
COMPOSE_PROJECT_NAME
=
${
COMPOSE_PROJECT_NAME
}
\
--env
COMPOSER_DOWNGRADE
=
${
COMPOSER_DOWNGRADE
}
\
...
...
This diff is collapsed.
Click to expand it.
setup/scripts/l3d
+
4
−
0
View file @
d6024c64
...
...
@@ -49,7 +49,11 @@ fi
if
[[
-f
".env"
]]
;
then
export
$(
cat
.env | xargs
)
>
/dev/null 2>&1
fi
export
USERID
=
$(
id
-u
)
export
GROUPID
=
$(
id
-g
)
docker
exec
-it
\
--env
USERID
=
${
USERID
}
\
--env
GROUPID
=
${
GROUPID
}
\
--env
HOMEDIR
=
${
HOME
}
\
--env
L3DSHELL
=
${
L3DSHELL
}
\
--env
WORKDIR
=
${
PWD
}
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment