/soulrinha

Minha participação na Rinha de compiladores (ou interpretadores) criado e mediado por @aripiprazole & @algebraic-sofia

Primary LanguageC++GNU Affero General Public License v3.0AGPL-3.0

Rinha de Compiladores (C++)

Logo

My participation in the 'Rinha de Compiladores (ou interpretadores)' created and mediated by @aripiprazole & @algebraic-sofia.

Tech Stack

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

Run from source (Docker Compose)

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

Run from source

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

Authors

@mr-soulfox

License

AGPL v3.0