Skip to content

Commit 7f403c9

Browse files
committed
init
1 parent 2a046c0 commit 7f403c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+212
-212
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RUN set -e; set -x; \
3939
# Set the default Docker to be run
4040
RUN ln -s /usr/local/bin/docker-${DEFAULT_DOCKER_VERSION} /usr/local/bin/docker
4141

42-
WORKDIR /go/src/github.com/docker/libcompose
42+
WORKDIR /go/src/github.com/xiaobinqt/libcompose
4343

4444
# Compose COMMIT for acceptance test version, update that commit when
4545
# you want to update the acceptance test version to support.
@@ -52,10 +52,10 @@ RUN virtualenv venv && \
5252
-r requirements.txt \
5353
-r requirements-dev.txt
5454

55-
ENV COMPOSE_BINARY /go/src/github.com/docker/libcompose/libcompose-cli
55+
ENV COMPOSE_BINARY /go/src/github.com/xiaobinqt/libcompose/libcompose-cli
5656
ENV USER root
5757

5858
# Wrap all commands in the "docker-in-docker" script to allow nested containers
5959
ENTRYPOINT ["hack/dind"]
6060

61-
COPY . /go/src/github.com/docker/libcompose
61+
COPY . /go/src/github.com/xiaobinqt/libcompose

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LIBCOMPOSE_ENVS := \
1111

1212
# (default to no bind mount if DOCKER_HOST is set)
1313
BIND_DIR := $(if $(DOCKER_HOST),,bundles)
14-
LIBCOMPOSE_MOUNT := $(if $(BIND_DIR),-v "$(CURDIR)/$(BIND_DIR):/go/src/github.com/docker/libcompose/$(BIND_DIR)")
14+
LIBCOMPOSE_MOUNT := $(if $(BIND_DIR),-v "$(CURDIR)/$(BIND_DIR):/go/src/github.com/xiaobinqt/libcompose/$(BIND_DIR)")
1515

1616
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
1717
GIT_BRANCH_CLEAN := $(shell echo $(GIT_BRANCH) | sed -e "s/[^[:alnum:]]/-/g")
@@ -57,7 +57,7 @@ build: bundles
5757
bundles:
5858
mkdir bundles
5959

60-
clean:
60+
clean:
6161
$(DOCKER_RUN_LIBCOMPOSE) ./hack/make.sh clean
6262

6363
help: ## this help

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# libcompose
44

5-
[![GoDoc](https://godoc.org/github.com/docker/libcompose?status.png)](https://godoc.org/github.com/docker/libcompose)
5+
[![GoDoc](https://godoc.org/github.com/xiaobinqt/libcompose?status.png)](https://godoc.org/github.com/xiaobinqt/libcompose)
66
[![Build Status](https://jenkins.dockerproject.org/job/docker/job/libcompose/branch/master/badge/icon)](https://jenkins.dockerproject.org/job/docker/job/libcompose/branch/master/)
77

88
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.
@@ -44,10 +44,10 @@ import (
4444

4545
"golang.org/x/net/context"
4646

47-
"github.com/docker/libcompose/docker"
48-
"github.com/docker/libcompose/docker/ctx"
49-
"github.com/docker/libcompose/project"
50-
"github.com/docker/libcompose/project/options"
47+
"github.com/xiaobinqt/libcompose/docker"
48+
"github.com/xiaobinqt/libcompose/docker/ctx"
49+
"github.com/xiaobinqt/libcompose/project"
50+
"github.com/xiaobinqt/libcompose/project/options"
5151
)
5252

5353
func main() {
@@ -88,13 +88,13 @@ docker build -t "libcompose-dev:refactor-makefile" .
8888
---> Making bundle: binary (in .)
8989
Number of parallel builds: 4
9090

91-
--> darwin/386: github.com/docker/libcompose/cli/main
92-
--> darwin/amd64: github.com/docker/libcompose/cli/main
93-
--> linux/386: github.com/docker/libcompose/cli/main
94-
--> linux/amd64: github.com/docker/libcompose/cli/main
95-
--> linux/arm: github.com/docker/libcompose/cli/main
96-
--> windows/386: github.com/docker/libcompose/cli/main
97-
--> windows/amd64: github.com/docker/libcompose/cli/main
91+
--> darwin/386: github.com/xiaobinqt/libcompose/cli/main
92+
--> darwin/amd64: github.com/xiaobinqt/libcompose/cli/main
93+
--> linux/386: github.com/xiaobinqt/libcompose/cli/main
94+
--> linux/amd64: github.com/xiaobinqt/libcompose/cli/main
95+
--> linux/arm: github.com/xiaobinqt/libcompose/cli/main
96+
--> windows/386: github.com/xiaobinqt/libcompose/cli/main
97+
--> windows/amd64: github.com/xiaobinqt/libcompose/cli/main
9898

9999
$ ls bundles
100100
libcompose-cli_darwin-386* libcompose-cli_linux-amd64* libcompose-cli_windows-amd64.exe*
@@ -147,11 +147,11 @@ docker build -t "libcompose-dev:refactor-makefile" .
147147
#[…]
148148
---> Making bundle: test-unit (in .)
149149
+ go test -cover -coverprofile=cover.out ./docker
150-
ok github.com/docker/libcompose/docker 0.019s coverage: 4.6% of statements
150+
ok github.com/xiaobinqt/libcompose/docker 0.019s coverage: 4.6% of statements
151151
+ go test -cover -coverprofile=cover.out ./project
152-
ok github.com/docker/libcompose/project 0.010s coverage: 8.4% of statements
152+
ok github.com/xiaobinqt/libcompose/project 0.010s coverage: 8.4% of statements
153153
+ go test -cover -coverprofile=cover.out ./version
154-
ok github.com/docker/libcompose/version 0.002s coverage: 0.0% of statements
154+
ok github.com/xiaobinqt/libcompose/version 0.002s coverage: 0.0% of statements
155155

156156
Test success
157157
```
@@ -163,6 +163,6 @@ The project is still being kickstarted... But it does a lot. Please try it out
163163

164164
## Contributing
165165

166-
Want to hack on libcompose? [Docker's contributions guidelines](https://github.com/docker/libcompose/blob/master/CONTRIBUTING.md) apply.
166+
Want to hack on libcompose? [Docker's contributions guidelines](https://github.com/xiaobinqt/libcompose/blob/master/CONTRIBUTING.md) apply.
167167

168168
If you have comments, questions, or want to use your knowledge to help other, come join the conversation on IRC. You can reach us at #libcompose on Freenode.

cli/app/app.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ import (
1010

1111
"golang.org/x/net/context"
1212

13-
"github.com/docker/libcompose/project"
14-
"github.com/docker/libcompose/project/options"
15-
"github.com/docker/libcompose/version"
1613
"github.com/sirupsen/logrus"
1714
"github.com/urfave/cli"
15+
"github.com/xiaobinqt/libcompose/project"
16+
"github.com/xiaobinqt/libcompose/project/options"
17+
"github.com/xiaobinqt/libcompose/version"
1818
)
1919

2020
// ProjectAction is an adapter to allow the use of ordinary functions as libcompose actions.
2121
// Any function that has the appropriate signature can be register as an action on a codegansta/cli command.
2222
//
23-
// cli.Command{
24-
// Name: "ps",
25-
// Usage: "List containers",
26-
// Action: app.WithProject(factory, app.ProjectPs),
27-
// }
23+
// cli.Command{
24+
// Name: "ps",
25+
// Usage: "List containers",
26+
// Action: app.WithProject(factory, app.ProjectPs),
27+
// }
2828
type ProjectAction func(project project.APIProject, c *cli.Context) error
2929

3030
// BeforeApp is an action that is executed before any cli command.

cli/app/events.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88

99
"golang.org/x/net/context"
1010

11-
"github.com/docker/libcompose/project"
12-
"github.com/docker/libcompose/project/events"
1311
"github.com/sirupsen/logrus"
1412
"github.com/urfave/cli"
13+
"github.com/xiaobinqt/libcompose/project"
14+
"github.com/xiaobinqt/libcompose/project/events"
1515
)
1616

1717
// ProjectEvents listen for real-time events of containers.

cli/app/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package app
22

33
import (
4-
"github.com/docker/libcompose/project"
54
"github.com/urfave/cli"
5+
"github.com/xiaobinqt/libcompose/project"
66
)
77

88
// ProjectFactory is an interface that helps creating libcompose project.

cli/app/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"runtime"
77
"text/template"
88

9-
"github.com/docker/libcompose/version"
109
"github.com/sirupsen/logrus"
1110
"github.com/urfave/cli"
11+
"github.com/xiaobinqt/libcompose/version"
1212
)
1313

1414
var versionTemplate = `Version: {{.Version}} ({{.GitCommit}})

cli/command/command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"os"
55
"strings"
66

7-
"github.com/docker/libcompose/cli/app"
8-
"github.com/docker/libcompose/project"
97
"github.com/urfave/cli"
8+
"github.com/xiaobinqt/libcompose/cli/app"
9+
"github.com/xiaobinqt/libcompose/project"
1010
)
1111

1212
// Populate updates the specified project context based on command line arguments and subcommands.

cli/docker/app/commands.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package app
22

33
import (
4-
"github.com/docker/libcompose/cli/command"
5-
"github.com/docker/libcompose/docker/client"
6-
"github.com/docker/libcompose/docker/ctx"
74
"github.com/sirupsen/logrus"
85
"github.com/urfave/cli"
6+
"github.com/xiaobinqt/libcompose/cli/command"
7+
"github.com/xiaobinqt/libcompose/docker/client"
8+
"github.com/xiaobinqt/libcompose/docker/ctx"
99
)
1010

1111
// DockerClientFlags defines the flags that are specific to the docker client,

cli/docker/app/factory.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package app
22

33
import (
4-
"github.com/docker/libcompose/cli/logger"
5-
"github.com/docker/libcompose/docker"
6-
"github.com/docker/libcompose/docker/ctx"
7-
"github.com/docker/libcompose/project"
84
"github.com/urfave/cli"
5+
"github.com/xiaobinqt/libcompose/cli/logger"
6+
"github.com/xiaobinqt/libcompose/docker"
7+
"github.com/xiaobinqt/libcompose/docker/ctx"
8+
"github.com/xiaobinqt/libcompose/project"
99
)
1010

1111
// ProjectFactory is a struct that holds the app.ProjectFactory implementation.

0 commit comments

Comments
 (0)