Files
spark/tools/docker_shell.bat
T

19 lines
597 B
Batchfile

@setlocal
@set linuxhome=%homedrive%%homepath%\linux_home
set target=%1
if "%target%"=="" set target=gcc_debug
if not exist %linuxhome% (
mkdir %linuxhome%
mkdir %linuxhome%\config
mkdir %linuxhome%\.bts\conf
)
@cd %~dp0\..
docker run --rm -i ^
-p 8000:8000 -p 8001:8001 -p 2000:22 %* ^
--security-opt seccomp=unconfined ^
-v %linuxhome%:/root/ ^
-v %cd%:/bts ^
-h %COMPUTERNAME%_spark ^
-t bluetradingsystems/linux_docker ^
/bin/bash -c "/usr/sbin/sshd -D & (cd ~/config && python -m SimpleHTTPServer >/dev/null 2>/dev/null) & cd /bts/build/%target%/; /bin/bash"