forked from HYDPublic/ops-kube-db-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
60 lines (50 loc) · 1.16 KB
/
docker-compose.yaml
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
---
version: '2.3'
services:
base: &base
volumes:
- ./pkg:/go/src/github.com/MYOB-Technology/ops-kube-db-operator/pkg
- $HOME/.kube:/root/.kube
- $HOME/.aws:/root/.aws
working_dir: /go/src/github.com/MYOB-Technology/ops-kube-db-operator
build:
context: .
target: dep
environment:
KUBECONFIG: "/root/.kube/config"
AWS_REGION: "ap-southeast-2"
go:
<<: *base
entrypoint: go
dep:
<<: *base
entrypoint: dep
dep-dev:
<<: *base
volumes:
- .:/go/src/github.com/MYOB-Technology/ops-kube-db-operator
entrypoint: dep
console:
<<: *base
command: sh
gofmt:
<<: *base
entrypoint: gofmt
goimports:
<<: *base
entrypoint: goimports
gometalinter:
<<: *base
entrypoint: gometalinter
gomplate:
image: hairyhenderson/gomplate:latest
working_dir: /postgres-exporter
volumes:
- "./yaml/postgres-exporter:/postgres-exporter"
entrypoint: /gomplate
kubectl:
image: lachlanevenson/k8s-kubectl:v1.7.6
working_dir: /postgres-exporter
volumes:
- "./yaml/postgres-exporter:/postgres-exporter"
- "$HOME/.kube:/root/.kube"