Skip to content
/ finial Public

A tool to convert a docker-compose.yml document into docker.compose-ng pillar data

License

Notifications You must be signed in to change notification settings

cdarwin/finial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

finial

A tool to convert docker-compose.yml into salt stack pillar data intended for docker.compose-ng.

Design

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

Docker Build Image

Use the included Dockerfile to create a go build image

$ docker build -t finial:build .

Fetch Dependencies

$ 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

Build finial

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

About

A tool to convert a docker-compose.yml document into docker.compose-ng pillar data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages