File tree 3 files changed +19
-4
lines changed
3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 6
6
* .swp
7
7
bundles
8
8
.gopath
9
+ .idea
Original file line number Diff line number Diff line change @@ -13,8 +13,11 @@ package main
13
13
import (
14
14
" log"
15
15
16
+ " golang.org/x/net/context"
17
+
16
18
" github.com/docker/libcompose/docker"
17
19
" github.com/docker/libcompose/project"
20
+ " github.com/docker/libcompose/project/options"
18
21
)
19
22
20
23
func main () {
@@ -23,13 +26,17 @@ func main() {
23
26
ComposeFiles: []string {" docker-compose.yml" },
24
27
ProjectName: " my-compose" ,
25
28
},
26
- })
29
+ }, nil )
27
30
28
31
if err != nil {
29
32
log.Fatal (err)
30
33
}
31
34
32
- project.Up ()
35
+ err = project.Up (context.Background (), options.Up {})
36
+
37
+ if err != nil {
38
+ log.Fatal (err)
39
+ }
33
40
}
34
41
```
35
42
Original file line number Diff line number Diff line change @@ -3,8 +3,11 @@ package main
3
3
import (
4
4
"log"
5
5
6
+ "golang.org/x/net/context"
7
+
6
8
"github.com/docker/libcompose/docker"
7
9
"github.com/docker/libcompose/project"
10
+ "github.com/docker/libcompose/project/options"
8
11
)
9
12
10
13
func main () {
@@ -13,11 +16,15 @@ func main() {
13
16
ComposeFiles : []string {"docker-compose.yml" },
14
17
ProjectName : "yeah-compose" ,
15
18
},
16
- })
19
+ }, nil )
17
20
18
21
if err != nil {
19
22
log .Fatal (err )
20
23
}
21
24
22
- project .Up ()
25
+ err = project .Up (context .Background (), options.Up {})
26
+
27
+ if err != nil {
28
+ log .Fatal (err )
29
+ }
23
30
}
You can’t perform that action at this time.
0 commit comments