A safe program compiler & executor base on Docker.
-
Prepare environment and build C++ part:
On Linux (Not test):
- Run commands:
sudo apt-get install g++ docker sudo docker -H 127.0.0.1:2375 -d & cd SOURCE_CODE_PATH/src/main/cpp sudo ./test.sh mv sandbox SOURCE_CODE_PATH/docker
On Windows 10 Pro, Enterprise or Education, build >= 10586:
- Download and install Docker for Windows.
- Enable "Expose daemon on tcp://localhost:2375 without TLS" in setting of Docker.
- Download and install Cygwin.
- Install Pending packages, and package
gcc-core
,gcc-g++
. - Run commands in Cygwin:
cd SOURCE_CODE_PATH/src/main/cpp g++ --static -pthread -o sandbox sandbox.cpp mv sandbox SOURCE_CODE_PATH/docker
-
Download newest RELEASE. (If no release, see Build)
-
Execute file.
- Build C++ part. (See Usage / Prepare environment and build C++ part)
- Build / Execute Java / Scala part. (
ray.eldath.avalon.executive.main.MainServer
)