You've already forked OpenUxAS-SoI
mirror of
https://github.com/AdaCore/OpenUxAS-SoI.git
synced 2026-02-12 13:04:49 -08:00
17 lines
574 B
Python
17 lines
574 B
Python
#! /usr/bin/env python3
|
|
|
|
import os
|
|
from subprocess import call
|
|
|
|
hostOpenUxAS_Dir = '{0}/..'.format(os.getcwd())
|
|
|
|
print("\n##### START removing source files #####\n")
|
|
cmd = ('docker run --rm -d ' +
|
|
'--name uxas_build -w="/UxASDev/OpenUxAS" ' +
|
|
'--mount type=bind,source={0}/..,target="/UxASDev" '.format(hostOpenUxAS_Dir) +
|
|
'--mount source=UxAS_Build_Vol,target="/tmp_build" ' +
|
|
'uxas/uxas-build:x86_64 ' +
|
|
'rm -rf /tmp_build/3rd /tmp_build/resources /tmp_build/src /tmp_build/tests /tmp_build/UxAS-afrl_internal'
|
|
)
|
|
call(cmd,shell=True)
|