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
b2f7fa27
Commit
b2f7fa27
authored
Jul 12, 2017
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scale for swarm works
parent
82555249
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
1 deletion
+0
-1
docker_compose.pyc
drip-deployer/docker_compose.pyc
+0
-0
docker_service.py
drip-deployer/docker_service.py
+0
-1
docker_service.pyc
drip-deployer/docker_service.pyc
+0
-0
No files found.
drip-deployer/docker_compose.pyc
View file @
b2f7fa27
No preview for this file type
drip-deployer/docker_service.py
View file @
b2f7fa27
...
@@ -28,7 +28,6 @@ def scale_service(vm, application_name, service_name, service_num):
...
@@ -28,7 +28,6 @@ def scale_service(vm, application_name, service_name, service_num):
ssh
=
paramiko
.
SSHClient
()
ssh
=
paramiko
.
SSHClient
()
ssh
.
set_missing_host_key_policy
(
paramiko
.
AutoAddPolicy
())
ssh
.
set_missing_host_key_policy
(
paramiko
.
AutoAddPolicy
())
ssh
.
connect
(
vm
.
ip
,
username
=
vm
.
user
,
key_filename
=
vm
.
key
)
ssh
.
connect
(
vm
.
ip
,
username
=
vm
.
user
,
key_filename
=
vm
.
key
)
print
"sudo docker service scale
%
s_
%
s=
%
s"
%
(
application_name
,
service_name
,
service_num
)
stdin
,
stdout
,
stderr
=
ssh
.
exec_command
(
"sudo docker service scale
%
s_
%
s=
%
s"
%
(
application_name
,
service_name
,
service_num
))
stdin
,
stdout
,
stderr
=
ssh
.
exec_command
(
"sudo docker service scale
%
s_
%
s=
%
s"
%
(
application_name
,
service_name
,
service_num
))
stdout
.
read
()
stdout
.
read
()
print
"
%
s: ======= Service Scaling Finished ========="
%
(
vm
.
ip
)
print
"
%
s: ======= Service Scaling Finished ========="
%
(
vm
.
ip
)
...
...
drip-deployer/docker_service.pyc
View file @
b2f7fa27
No preview for this file type
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