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
08d1a21c
Commit
08d1a21c
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#57
Set user and group id dynamically and mount password files into container
parent
c8386791
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run/scripts/start
+4
-1
4 additions, 1 deletion
run/scripts/start
with
4 additions
and
1 deletion
run/scripts/start
+
4
−
1
View file @
08d1a21c
...
...
@@ -37,7 +37,7 @@ function startContainer {
else
docker run
--name
${
COMPOSE_PROJECT_NAME
}
_l3d
-dt
\
--hostname
${
COMPOSE_PROJECT_NAME
}
-l3d
\
--user
1000
\
--user
$(
id
-u
)
:
$(
id
-g
)
\
--env
L3DSHELL
=
${
L3DSHELL
}
\
--env
COMPOSE_PROJECT_NAME
=
${
COMPOSE_PROJECT_NAME
}
\
--env
COMPOSER_DOWNGRADE
=
${
COMPOSER_DOWNGRADE
}
\
...
...
@@ -45,6 +45,9 @@ function startContainer {
--env
SSH_AUTH_SOCK
=
${
SSHAUTHSOCK
}
\
--volume
/var/run/docker.sock:/var/run/docker.sock
\
--volume
${
WORKDIR
}
:/drupal
\
--volume
/etc/group:/etc/group:ro
\
--volume
/etc/passwd:/etc/passwd:ro
\
--volume
/etc/shadow:/etc/shadow:ro
\
--volume
${
SSHAUTH
}
:
${
SSHAUTHSOCK
}
\
--volume
${
HOMEDIR
}
/.traefik:/root/.traefik
\
--volume
${
HOMEDIR
}
/.gitconfig:/root/.gitconfig
\
...
...
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