Docker Puzzles is a CLI tool for putting together Dockerfiles from pieces.
For now, use Cargo to install Docker Puzzles: cargo install docker-puzzles
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
.
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'