Hacking-Lab Challenge Generator
This generator uses yo to generate new Hacking-Lab Challenge Docker containers.
Installation and Usage
- Run
npm install -g generator-hl-challenge
to install the generator - Create an empty directory:
git init my-awesome-challenge && cd my-awesome-challenge
- Run the generator and answer all questions:
yo hl-challenge
- Read the
README.md
file in your new challenge for customization and build instructions
Please leave feedback if you run into any problems.
Development
To test locally, run npm link
in this directory (requires sudo).
Adding support for a new image
To add support for a new base image, you will have to:
- Add it to the base images in
index.js
- Add
generators/app/templates/{image}.md
with the customization instructions - Add
generators/app/templates/{image}/*
with a tiny sample application (optional, don't add root/ to the path)