Docker-based remote code runner.
Step 1: Install dependencies
Step 2: Build internal docker images
docker/images/ folder provides the Dockerfile of the programming language runtime environment that Elaina supports.
docker build command to build the images before you start running the Elaina. This operation only needs to be performed once.
docker build . -t elaina-<lang>:latest
Step 3: Start the Elaina server
Put the docker-compose.yml file in your working directory.
APP_CONTAINER_PATH in docker-compose.yml!!
APP_URLYour backend service host, used to set the allow origins header in HTTP CORS header.
APP_PASSWORDThe password used to log in the manager panel.
APP_CONTAINER_PATHThe path where the containers’ volumes are placed in your host, make sure the Docker has the correct permission to access.
The following command will create a PostgreSQL database as well as the Elaina server.
docker-compose up -d
Step 4: Have fun!
http://:8080/m/ to login to the manager panel.