.gitlab-ci.yml updated v65
This commit is contained in:
parent
6758836c70
commit
0842a4bddb
2 changed files with 4 additions and 4 deletions
|
|
@ -11,7 +11,7 @@ services:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
ports:
|
ports:
|
||||||
- 8006:8006
|
- 8006:8006
|
||||||
- 2222:22
|
- 2233:22
|
||||||
stop_grace_period: 2m
|
stop_grace_period: 2m
|
||||||
volumes:
|
volumes:
|
||||||
- ./mounted:/storage
|
- ./mounted:/storage
|
||||||
|
|
@ -16,15 +16,15 @@ def run_docker(folder_name):
|
||||||
os.chdir(QEMU_ALPINE_DIR)
|
os.chdir(QEMU_ALPINE_DIR)
|
||||||
subprocess.call('docker compose up -d', shell=True)
|
subprocess.call('docker compose up -d', shell=True)
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
subprocess.call('scp -P 2222 -r ../clearing-docker-compose root@localhost:/root/clr_test', shell=True)
|
subprocess.call('scp -P 2233 -r ../clearing-docker-compose root@localhost:/root/clr_test', shell=True)
|
||||||
subprocess.call('ssh root@localhost -p 2222', shell=True)
|
subprocess.call('ssh root@localhost -p 2233', shell=True)
|
||||||
subprocess.call('cd clr_test', shell=True)
|
subprocess.call('cd clr_test', shell=True)
|
||||||
subprocess.call('docker compose pull', shell=True)
|
subprocess.call('docker compose pull', shell=True)
|
||||||
subprocess.call('docker compose build', shell=True)
|
subprocess.call('docker compose build', shell=True)
|
||||||
subprocess.call('date --set "2020-01-01 00:00:00"', shell=True)
|
subprocess.call('date --set "2020-01-01 00:00:00"', shell=True)
|
||||||
subprocess.call('docker compose up', shell=True)
|
subprocess.call('docker compose up', shell=True)
|
||||||
subprocess.call('exit', shell=True)
|
subprocess.call('exit', shell=True)
|
||||||
subprocess.call("scp -P 2222 -r root@localhost:/root/clr_test/mnt/testFiles {RESULT_FILES_DIR}", shell=True)
|
subprocess.call("scp -P 2233 -r root@localhost:/root/clr_test/mnt/testFiles {RESULT_FILES_DIR}", shell=True)
|
||||||
os.remove(f"{QEMU_ALPINE_DIR}/mounted/data.qcow2")
|
os.remove(f"{QEMU_ALPINE_DIR}/mounted/data.qcow2")
|
||||||
os.chdir("..")
|
os.chdir("..")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue