docker-puzzles

Crates.iodocker-puzzles
lib.rsdocker-puzzles
version0.1.3
sourcesrc
created_at2018-11-28 13:39:22.090373
updated_at2018-12-06 22:48:00.554916
descriptionDocker Puzzles is a CLI tool for putting together Dockerfiles from pieces.
homepagehttps://github.com/kobalazs/docker-puzzles
repositoryhttps://github.com/kobalazs/docker-puzzles
max_upload_size
id99070
size12,206
Balázs Kovács (kobalazs)

documentation

https://github.com/kobalazs/docker-puzzles/blob/master/README.md

README

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'
Commit count: 29

cargo fmt