-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdocker-compose.yml
87 lines (76 loc) · 2.1 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Copyright 2016 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
go: &go
build: dev-env
volumes:
- ./dev-env/lifecycle:/opt/lifecycle
- .:/go/src/github.com/cisco/elsy
working_dir: /go/src/github.com/cisco/elsy
environment:
- GOOS
- GOARCH
entrypoint: /bin/bash
# /usr/local/go/bin/go
govendor: &govendor
<<: *go
entrypoint: govendor
installdependencies:
<<: *govendor
command: sync
fmt:
<<: *go
entrypoint: ["/usr/local/go/bin/gofmt"]
command: ["-w", "/go/src/github.com/cisco/elsy/command", "/go/src/github.com/cisco/elsy/helpers", "/go/src/github.com/cisco/elsy/main", "/go/src/github.com/cisco/elsy/template"]
package:
<<: *go
environment:
- GIT_TAG_NAME
entrypoint: /opt/lifecycle/package
test:
<<: *go
entrypoint: /opt/lifecycle/test
command: "./..."
lint:
<<: *go
entrypoint: ["/go/bin/golint"]
command: "./..."
clean:
<<: *go
entrypoint: ["go"]
command: "clean"
##############################################
############ Blackbox-Test Env ###############
###############################################
## setup two docker registries for running blackbox-tests for publish command
## See: ./blackbox-test/publish.feature
registry1:
image: registry:2
ports:
- 5000:5000
registry2:
image: registry:2
ports:
- 5001:5000
blackbox-test: &BLACKBOXTEST
build: blackbox-test
volumes:
- .:/opt/project/
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/lc_blackbox-test:/tmp/lc_blackbox-test
environment:
- COMPOSE_PROJECT_NAME=elsyblackbox
- TMPDIR=/tmp/lc_blackbox-test
links:
- registry1
- registry2