1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

Bump libcompose and its dependencies

This commit is contained in:
Josh Curl
2016-05-23 17:22:40 -07:00
parent c18cd26e78
commit 50de80d09a
1109 changed files with 35052 additions and 125685 deletions

View File

@@ -1,7 +1,7 @@
# libcompose
[![GoDoc](https://godoc.org/github.com/docker/libcompose?status.png)](https://godoc.org/github.com/docker/libcompose)
[![Jenkins Build Status](https://jenkins.dockerproject.org/view/Libcompose/job/Libcompose%20Master/badge/icon)](https://jenkins.dockerproject.org/view/Libcompose/job/Libcompose%20Master/)
[![Build Status](https://jenkins.dockerproject.org/job/docker/job/libcompose/branch/master/badge/icon)](https://jenkins.dockerproject.org/job/docker/job/libcompose/branch/master/)
A Go library for Docker Compose. It does everything the command-line tool does, but from within Go -- read Compose files, start them, scale them, etc.
@@ -13,23 +13,30 @@ package main
import (
"log"
"golang.org/x/net/context"
"github.com/docker/libcompose/docker"
"github.com/docker/libcompose/project"
"github.com/docker/libcompose/project/options"
)
func main() {
project, err := docker.NewProject(&docker.Context{
Context: project.Context{
ComposeFile: "docker-compose.yml",
ProjectName: "my-compose",
ComposeFiles: []string{"docker-compose.yml"},
ProjectName: "my-compose",
},
})
}, nil)
if err != nil {
log.Fatal(err)
}
project.Up()
err = project.Up(context.Background(), options.Up{})
if err != nil {
log.Fatal(err)
}
}
```
@@ -67,8 +74,8 @@ libcompose-cli_linux-386* libcompose-cli_windows-386.exe*
### Building with `go`
- You need `go` v1.5
- You need to set export `GO15VENDOREXPERIMENT=1` environment variable
- You need `go` v1.5 or greater
- If you are not using `go` v1.6, you need to set export `GO15VENDOREXPERIMENT=1` environment variable
- If your working copy is not in your `GOPATH`, you need to set it
accordingly.