StudSec / pwncrates

A CTF framework with a focus on educational benefit.
https://ctf.studsec.nl
GNU General Public License v3.0
4 stars 8 forks source link

Integrate Instancer #48

Closed ThijsRay closed 4 months ago

ThijsRay commented 4 months ago

To run this, make sure you have the following files

It will add two buttons to each challenge with the docker_name in its README, refering to the service name in the docker-compose.yml file of the challenges repo. Challenges without that line will be ignored.

Challenges that use the instancer should not hardcode host ports (e.g. '8600:3000') because then the deployment can fail if the port is already bound to something. Only specifying the internal port (3000) will allow Docker to choose the host port.

It is also recommended to define https://docs.docker.com/compose/compose-file/deploy/#resources for each challenge to limit the amount of resources that can be used by each instance.

image

delta6862 commented 4 months ago

Thanks a lot for the contribution!

Ended up removing the instancer as a submodule as (in my view) it makes more sense as a seperate component than as part of pwncrates. Plus it makes the code more modular overall (any instancer can be used as long as it adheres to the API spec)