Commit d09a60ab authored by 金凯强's avatar 金凯强 🎨

数据卷修复

parent 6f1bd086
...@@ -43,7 +43,7 @@ class InstallService(HSBaseUCService): ...@@ -43,7 +43,7 @@ class InstallService(HSBaseUCService):
os.system("sudo chmod 777 /etc/gitlab-runner/config.toml") os.system("sudo chmod 777 /etc/gitlab-runner/config.toml")
with open('/etc/gitlab-runner/config.toml', 'rw') as f: with open('/etc/gitlab-runner/config.toml', 'rw') as f:
s = f.read() s = f.read()
a = s.replace(' volumes = ["/cache"]', a = s.replace('volumes = ["/cache"]',
'volumes = ["/var/run/docker.sock:/var/run/docker.sock","/etc/profile.d/huansi.sh:/etc/profile.d/huansi.sh" ,"/cache","/huansi/gitlab-runner/builds:/builds/hs"]') 'volumes = ["/var/run/docker.sock:/var/run/docker.sock","/etc/profile.d/huansi.sh:/etc/profile.d/huansi.sh" ,"/cache","/huansi/gitlab-runner/builds:/builds/hs"]')
f.write(a) f.write(a)
......
...@@ -5,3 +5,4 @@ ...@@ -5,3 +5,4 @@
/huansi/gitlab-runner/builds/:/huansi_app/static_file/builds/ /huansi/gitlab-runner/builds/:/huansi_app/static_file/builds/
/data/upgrade_tools_data/:/huansi_app/static_file/temp/ /data/upgrade_tools_data/:/huansi_app/static_file/temp/
/data/upgrade/:/data/upgrade /data/upgrade/:/data/upgrade
/etc/gitlab-runner/:/etc/gitlab-runner/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment