Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request moby#4 from aanand/compose-on-swarm
Support 'volumes'
- Loading branch information
Showing
16 changed files
with
457 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.dobi | ||
.glide | ||
vendor |
26 changes: 26 additions & 0 deletions
26
vendor/src/github.com/aanand/compose-file/.pre-commit-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
- repo: git://github.com/pre-commit/pre-commit-hooks | ||
sha: 'v0.5.1' | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: end-of-file-fixer | ||
files: '(\.(go|md|sh|yml|yaml|json|ini|rst)|Dockerfile.*)$' | ||
exclude: '^vendor/' | ||
- id: trailing-whitespace | ||
files: '(\.(go|md|sh|yml|yaml|json|ini|rst)|Dockerfile.*)$' | ||
args: ['--no-markdown-linebreak-ext'] | ||
exclude: '^vendor/' | ||
- id: check-yaml | ||
exclude: '^vendor/' | ||
- id: check-json | ||
exclude: '^vendor/' | ||
|
||
- repo: git://github.com/dnephin/pre-commit-golang | ||
sha: HEAD | ||
hooks: | ||
- id: go-fmt | ||
exclude: '^vendor/' | ||
args: ['-s'] | ||
- id: go-lint | ||
exclude: '^(vendor/|schema/bindata\.go)' | ||
- id: go-vet | ||
exclude: '^vendor/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
meta: | ||
project: compose-file | ||
|
||
|
||
mount=source: | ||
bind: . | ||
path: /go/src/github.com/aanand/compose-file | ||
|
||
|
||
image=builder: | ||
image: compose-file-dev | ||
context: dockerfiles/ | ||
dockerfile: Dockerfile.build | ||
|
||
|
||
job=shell: | ||
use: builder | ||
interactive: true | ||
mounts: [source] | ||
command: bash | ||
|
||
job=test-unit: | ||
use: builder | ||
mounts: [source] | ||
command: "bash -c 'go test -v $(glide novendor)'" | ||
|
||
job=deps: | ||
use: builder | ||
mounts: [source] | ||
command: "glide install" | ||
artifact: vendor/ | ||
|
||
job=generate: | ||
use: builder | ||
mounts: [source] | ||
command: "go generate ./schema" | ||
artifact: schema/bindata.go | ||
|
||
job=watch: | ||
use: builder | ||
mounts: [source] | ||
command: "script/watch" | ||
interactive: true | ||
|
||
|
||
alias=test: | ||
tasks: [test-unit] |
21 changes: 21 additions & 0 deletions
21
vendor/src/github.com/aanand/compose-file/dockerfiles/Dockerfile.build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM golang:1.6-alpine | ||
|
||
RUN apk add -U git bash curl tree | ||
RUN export GLIDE=v0.12.0; \ | ||
export SRC=https://github.com/Masterminds/glide/releases/download/; \ | ||
curl -sL ${SRC}/${GLIDE}/glide-${GLIDE}-linux-amd64.tar.gz | \ | ||
tar -xz linux-amd64/glide && \ | ||
mv linux-amd64/glide /usr/bin/glide && \ | ||
chmod +x /usr/bin/glide | ||
|
||
RUN go get github.com/dnephin/filewatcher && \ | ||
cp /go/bin/filewatcher /usr/bin/ && \ | ||
rm -rf /go/src/* /go/pkg/* /go/bin/* | ||
|
||
RUN go get github.com/jteeuwen/go-bindata/... && \ | ||
cp /go/bin/go-bindata /usr/bin/ && \ | ||
rm -rf /go/src/* /go/pkg/* /go/bin/* | ||
|
||
WORKDIR /go/src/github.com/aanand/compose-file | ||
ENV PS1="# " | ||
ENV CGO_ENABLED=0 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
vendor/src/github.com/aanand/compose-file/loader/full-example.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: "2.1" | ||
version: "3" | ||
|
||
services: | ||
foo: | ||
|
Oops, something went wrong.