Skip to content

Commit

Permalink
Add v3 support of Docker Compose
Browse files Browse the repository at this point in the history
This does a major refactor on the compose.go functions as well as brings
in a new era of v3 support to Kompose.

Similar to how we utilize libcompose, we utilize docker/cli's "stack
deploy" code which has a built-in v3 parser. We convert the parsed
structure to our own and then convert it to Kubernetes/OpenShift
artifacts.
  • Loading branch information
cdrage committed May 19, 2017
1 parent 5b8733c commit 170b203
Show file tree
Hide file tree
Showing 2 changed files with 316 additions and 16 deletions.
1 change: 1 addition & 0 deletions pkg/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ func Convert(opt kobject.ConvertOptions) {
komposeObject := kobject.KomposeObject{
ServiceConfigs: make(map[string]kobject.ServiceConfig),
}

komposeObject, err = l.LoadFile(opt.InputFiles)
if err != nil {
log.Fatalf(err.Error())
Expand Down
Loading

0 comments on commit 170b203

Please sign in to comment.