Docker Puzzles is a CLI tool for putting together Dockerfiles from pieces.
For now, use Cargo to install Docker Puzzles:
$ cargo install docker-puzzles
(To install Cargo, follow instructions at https://www.rust-lang.org/en-US/install.html)
Run docker-puzzles
with a parameter of the parent directory of your Puzzles.yml
and Puzzlefile
s. All Puzzles.yml
files in the directory will be usef to generate
Dockerfile
s next to each Puzzlefile
, recursively.
echos:
RUN echo 'a' \
&& echo 'b'
FROM ubuntu:trusty
PUZZLE echos
$ docker-puzzles path/to/my/project/directory
FROM ubuntu:trusty
RUN echo 'a' \
&& echo 'b'