Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
deploy
Project
Project
Details
Activity
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Script
deploy
Commits
608c975e
Commit
608c975e
authored
Feb 24, 2020
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我晕
parent
09376283
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
install_runner.py
install_runner.py
+2
-3
No files found.
install_runner.py
View file @
608c975e
...
@@ -28,10 +28,9 @@ def install_runner(HSCUSCODE=None):
...
@@ -28,10 +28,9 @@ def install_runner(HSCUSCODE=None):
with
open
(
'/etc/gitlab-runner/config.toml'
,
'w'
)
as
f
:
with
open
(
'/etc/gitlab-runner/config.toml'
,
'w'
)
as
f
:
f
.
write
(
a
)
f
.
write
(
a
)
s1
=
os
.
system
(
"sudo docker stop gitlab-runner && docker rm gitlab-runner"
)
os
.
system
(
"sudo docker stop gitlab-runner && docker rm gitlab-runner"
)
assert
s1
==
0
,
"移除gitlab-runner失败"
s2
=
os
.
system
(
"sudo docker run -
-rm -
d --name gitlab-runner --restart always
\
s2
=
os
.
system
(
"sudo docker run -d --name gitlab-runner --restart always
\
-v /etc/gitlab-runner:/etc/gitlab-runner
\
-v /etc/gitlab-runner:/etc/gitlab-runner
\
-v /var/run/docker.sock:/var/run/docker.sock
\
-v /var/run/docker.sock:/var/run/docker.sock
\
-v /etc/profile.d/huansi.sh:/etc/profile.d/huansi.sh
\
-v /etc/profile.d/huansi.sh:/etc/profile.d/huansi.sh
\
...
...
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