.gitlab-ci.yml updated v65

This commit is contained in:
Ivan Nikolaev-Axenov 2024-06-05 12:32:13 +03:00
parent 6758836c70
commit 0842a4bddb
2 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ services:
- NET_ADMIN
ports:
- 8006:8006
- 2222:22
- 2233:22
stop_grace_period: 2m
volumes:
- ./mounted:/storage

View file

@ -16,15 +16,15 @@ def run_docker(folder_name):
os.chdir(QEMU_ALPINE_DIR)
subprocess.call('docker compose up -d', shell=True)
time.sleep(3)
subprocess.call('scp -P 2222 -r ../clearing-docker-compose root@localhost:/root/clr_test', shell=True)
subprocess.call('ssh root@localhost -p 2222', shell=True)
subprocess.call('scp -P 2233 -r ../clearing-docker-compose root@localhost:/root/clr_test', shell=True)
subprocess.call('ssh root@localhost -p 2233', shell=True)
subprocess.call('cd clr_test', shell=True)
subprocess.call('docker compose pull', shell=True)
subprocess.call('docker compose build', shell=True)
subprocess.call('date --set "2020-01-01 00:00:00"', shell=True)
subprocess.call('docker compose up', 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.chdir("..")