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
0b632384
Commit
0b632384
authored
3 years ago
by
Jürgen Haas
Browse files
Options
Downloads
Patches
Plain Diff
composer/plugin/docker4drupal#48
Adjust scripts for new traefik networking
parent
1369f18a
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/delete
+2
-7
2 additions, 7 deletions
run/scripts/delete
run/scripts/list
+1
-1
1 addition, 1 deletion
run/scripts/list
with
3 additions
and
8 deletions
run/scripts/delete
+
2
−
7
View file @
0b632384
...
...
@@ -15,18 +15,13 @@ function removecontainer() {
}
function
removenetwork
()
{
ID
=
$(
docker network
ls
-q
-f
name
=
traefik_
${
PROJECT
}
)
ID
=
$(
docker network
ls
-q
-f
name
=
${
PROJECT
}
_default
)
if
[[
!
-n
${
ID
}
]]
;
then
echo
"No network to be removed."
return
fi
echo
"Deleting network ..."
cd
${
HOME
}
/.traefik
||
return
if
[[
-f
"docker-compose.yml"
]]
;
then
sed
-i
-e
"/-
${
PROJECT
}
$/
d"
docker-compose.yml
sed
-i
-e
"/^
${
PROJECT
}
:
$/
{N;d;}"
docker-compose.yml
NETWORKS
=
"
${
NETWORKS
}
traefik_
${
PROJECT
}
"
fi
docker network
rm
${
PROJECT
}
_default
}
function
rebuildtraefik
()
{
...
...
This diff is collapsed.
Click to expand it.
run/scripts/list
+
1
−
1
View file @
0b632384
...
...
@@ -18,7 +18,7 @@ function listprojects() {
function
listnetworks
()
{
echo
""
docker network
ls
-q
-f
name
=
^traefik_
>
/tmp/l3d.lst
docker network
ls
-q
-f
name
=
_default
$
>
/tmp/l3d.lst
IDS
=
$(
cat
/tmp/l3d.lst
)
if
[[
!
-n
${
IDS
}
]]
;
then
echo
"No active L3D networks found."
...
...
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