The backend is contained in a docker-compose instance with three images: the database, django application, and docker instance. The third image is responsible for running code in an isolated environment.
Currently, the only code transpilation that is supported is F# to JS. This is done through the Fable docker image, which is managed by git-subrepo, a less confusing alternative to git-submodules.
-
Install docker and docker-compose
-
Create a root
.env
file by copying.env.example
-
Build the image
docker build .
-
Run Docker Compose process
docker-compose up
-
In a different window, load some data
bash scripts/load-initial.sh
docker-compose up -d
bash scripts/run-django-script [COMMAND]
docker-compose run docker sh
THEN
docker --host docker [COMMAND]