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:
21
vendor/github.com/docker/libcompose/README.md
generated
vendored
21
vendor/github.com/docker/libcompose/README.md
generated
vendored
@@ -1,7 +1,7 @@
|
||||
# libcompose
|
||||
|
||||
[](https://godoc.org/github.com/docker/libcompose)
|
||||
[](https://jenkins.dockerproject.org/view/Libcompose/job/Libcompose%20Master/)
|
||||
[](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.
|
||||
|
||||
|
Reference in New Issue
Block a user