Closed ThijsRay closed 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)
To run this, make sure you have the following files
data/instancer/config.toml
, the configuration for the instancerdata/instancer/keys/key
, the private key (without password) that can be used to login into the nodes that run itIt 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.