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
dd758f7e
Commit
dd758f7e
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Remove container after exit and ask for project name at the beginning
parent
d8231b17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
l3d
+5
-1
5 additions, 1 deletion
l3d
with
5 additions
and
1 deletion
l3d
+
5
−
1
View file @
dd758f7e
...
...
@@ -14,9 +14,13 @@ if [[ "${PHP_VERSION}" == "" ]]; then
done
echo
"PHP_VERSION=
${
PHP_VERSION
}
"
>>
.env
fi
if
[[
"
${
COMPOSE_PROJECT_NAME
}
"
==
""
]]
;
then
read
-p
"Name your project (used as subdomain): "
COMPOSE_PROJECT_NAME
echo
"COMPOSE_PROJECT_NAME=
${
COMPOSE_PROJECT_NAME
}
"
>>
.env
fi
if
[[
"
$1
"
==
"-u"
]]
;
then
docker pull registry.lakedrops.com/docker/l3d:php-
${
PHP_VERSION
}
fi
docker run
-it
-v
/var/run/docker.sock:/var/run/docker.sock
-v
${
PWD
}
:/drupal
-v
${
SSH_AUTH_SOCK
}
:/ssh-agent
-v
${
HOME
}
/.traefik:/root/.traefik
-e
SSH_AUTH_SOCK
=
/ssh-agent
-w
/drupal registry.lakedrops.com/docker/l3d:php-
${
PHP_VERSION
}
/usr/bin/fish
docker run
--rm
-it
-v
/var/run/docker.sock:/var/run/docker.sock
-v
${
PWD
}
:/drupal
-v
${
SSH_AUTH_SOCK
}
:/ssh-agent
-v
${
HOME
}
/.traefik:/root/.traefik
-e
SSH_AUTH_SOCK
=
/ssh-agent
-e
COMPOSE_PROJECT_NAME
=
${
COMPOSE_PROJECT_NAME
}
-w
/drupal registry.lakedrops.com/docker/l3d:php-
${
PHP_VERSION
}
/usr/bin/fish
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