#docker #puzzle #compose #Dockerfile

bin+lib docker-puzzles

Docker Puzzles is a CLI tool for putting together Dockerfiles from pieces

2 releases

0.1.1 Nov 28, 2018
0.1.0 Nov 28, 2018

#7 in #puzzle

Download history 11/week @ 2018-11-28

3 downloads per month

CC-BY-NC-SA-4.0

11KB
239 lines

docker-puzzles

Build Status

Docker Puzzles is a CLI tool for putting together Dockerfiles from pieces.

Installation

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)

Usage

Run docker-puzzles with a parameter of the parent directory of your Puzzles.yml and Puzzlefiles. All Puzzles.yml files in the directory will be usef to generate Dockerfiles next to each Puzzlefile, recursively.

Examples

Puzzles.yml

echos:
    RUN echo 'a' \
        && echo 'b'

Puzzlefile

FROM ubuntu:trusty
PUZZLE echos

Run Docker Puzzles

$ docker-puzzles path/to/my/project/directory

Dockerfile generated

FROM ubuntu:trusty
RUN echo 'a' \
    && echo 'b'

Dependencies

~2.5MB
~45K SLoC