Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
3bc485cd
Commit
3bc485cd
authored
5 years ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Add some output
parent
d63b5ec2
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
dind_swarm_setup.sh
+5
-2
5 additions, 2 deletions
dind_swarm_setup.sh
with
5 additions
and
2 deletions
dind_swarm_setup.sh
+
5
−
2
View file @
3bc485cd
...
...
@@ -8,8 +8,10 @@ if [ -z ${SWARM_MANAGER_IP} ]; then
SWARM_MANAGER_IP
=
$(
ip route get 1 |
awk
'{print $(NF-2);exit}'
)
fi
echo
"Leave possible swarm..."
echo
"Leave possible swarm
and down all services
..."
docker swarm leave
--force
>
/dev/null 2>&1
docker-compose
--file
dind_swarm.yml down
>
/dev/null 2>&1
echo
"Start storage container"
docker-compose
--file
dind_swarm.yml up
--detach
storage
...
...
@@ -26,8 +28,9 @@ sleep 5
echo
"Init Docker swarm..."
docker swarm init
--advertise-addr
${
SWARM_MANAGER_IP
}
>
/dev/null 2>&1
echo
"
Join
workers to swarm..."
echo
"
Add
workers to swarm..."
SWARM_WORKER_TOKEN
=
$(
docker swarm join-token
-q
worker
)
for
i
in
$(
seq
1
${
SWARM_WORKER_NUMBER
}
)
;
do
echo
"[opaque_worker_
${
i
}
]"
docker-compose
--file
dind_swarm.yml
exec
--index
=
${
i
}
worker docker swarm
join
--token
${
SWARM_WORKER_TOKEN
}
${
SWARM_MANAGER_IP
}
:2377
done
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