Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
506433fe
Commit
506433fe
authored
Mar 14, 2017
by
Oceans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix daemon.json
parent
cc90face
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
vcs.xml
.idea/vcs.xml
+6
-0
docker_engine.sh
drip-deployer/docker_engine.sh
+1
-1
docker_swarm.py
drip-deployer/docker_swarm.py
+1
-1
No files found.
.idea/vcs.xml
0 → 100644
View file @
506433fe
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$"
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
drip-deployer/docker_engine.sh
View file @
506433fe
...
@@ -7,5 +7,5 @@ sudo apt-key fingerprint 0EBFCD88
...
@@ -7,5 +7,5 @@ sudo apt-key fingerprint 0EBFCD88
sudo
add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(
lsb_release
-cs
)
stable"
sudo
add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(
lsb_release
-cs
)
stable"
sudo
apt-get update
sudo
apt-get update
sudo
apt-get
-y
install
docker-ce
sudo
apt-get
-y
install
docker-ce
sudo echo
"
DOCKER_OPTS="
--insecure-registry
=
129.7.98.3:5000
""
>>
/etc/default/docker
sudo echo
"
{
\"
insecure-registries
\"
:[
\"
129.7.98.3:5000
\"
] }"
>
/etc/docker/daemon.json
sudo
service docker restart
sudo
service docker restart
drip-deployer/docker_swarm.py
View file @
506433fe
...
@@ -27,7 +27,7 @@ def install_manager(vm):
...
@@ -27,7 +27,7 @@ def install_manager(vm):
ssh
.
connect
(
vm
.
ip
,
username
=
vm
.
user
,
key_filename
=
vm
.
key
)
ssh
.
connect
(
vm
.
ip
,
username
=
vm
.
user
,
key_filename
=
vm
.
key
)
stdin
,
stdout
,
stderr
=
ssh
.
exec_command
(
"sudo docker swarm leave --force"
)
stdin
,
stdout
,
stderr
=
ssh
.
exec_command
(
"sudo docker swarm leave --force"
)
stdout
.
read
()
stdout
.
read
()
stdin
,
stdout
,
stderr
=
ssh
.
exec_command
(
"sudo docker swarm init --advertise-addr
eth0"
)
stdin
,
stdout
,
stderr
=
ssh
.
exec_command
(
"sudo docker swarm init --advertise-addr
%
s"
%
(
vm
.
ip
)
)
retstr
=
stdout
.
readlines
()
retstr
=
stdout
.
readlines
()
print
"
%
s: ========= Swarm Manager Installed ========="
%
(
vm
.
ip
)
print
"
%
s: ========= Swarm Manager Installed ========="
%
(
vm
.
ip
)
except
Exception
as
e
:
except
Exception
as
e
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment