A tool to convert docker-compose.yml
into salt stack pillar data intended for
docker.compose-ng
.
The tool accepts a filename option, -f <filename>
of a valid
docker-compose.yml
document and a filename option -o <output>
to be used as
pillar data to the docker.compose-ng
salt stack formula.
$ finial -f docker-compose.yml -o compose.sls
Use the included Dockerfile to create a go build image
$ docker build -t finial:build .
$ mkdir -p ~/workspace/go_src
$ docker run --rm -v "$PWD":/usr/src/finial -v ~/workspace/go_src:/go/src -w /usr/src/finial finial:build go get gopkg.in/yaml.v2
I develop and test on OS X but I obviously build in a Linux container
$ docker run --rm -v "$PWD":/usr/src/finial -v ~/workspace/go_src:/go/src -w /usr/src/finial -e GOOS=darwin -e GOARCH=amd64 finial:build go build -v -o finial-darwin-amd64