My participation in the 'Rinha de Compiladores (ou interpretadores)' created and mediated by @aripiprazole & @algebraic-sofia.
C++ | CMake | Docker
Run from image (pkg)
Use to run container.
Note: replace the <mount_point> with the path to directory with the files (.rinha or .json).
docker run --mount type=bind,source="<mount_point>",target=/var/rinha -d --name soulrinha-compiler ghcr.io/mr-soulfox/soulrinha:latest
Use to run container with only 2 CPUs and 2GiB memory ram.
Note: replace the <mount_point> with the path to directory with the files (.rinha or .json).
docker run --cpus=2 -m 2048m --mount type=bind,source="<mount_point>",target=/var/rinha -d --name soulrinha-compiler rinha/soulrinha:latest
Clone repository and enter in directory.
git clone https://github.com/mr-soulfox/soulrinha && cd soulrinha
Place the files you want to run (.rinha or .json) in var/rinha folder, and up container.
docker-compose up
Clone repository and enter in directory.
git clone https://github.com/mr-soulfox/soulrinha && cd soulrinha
Place the files you want to run (.rinha or .json) in var/rinha folder, and run the start.sh script to initialize.
bash ./start.sh