forked from Boostport/migration
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (48 loc) · 1.34 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
version: '3'
services:
dev:
image: golang:1.17
working_dir: /source
command: >
sh -c "go install github.com/unchartedsoftware/witch;
witch --cmd=\"go test -v -p 1 ./...\" --watch=\"*.mod,**/*.go\""
environment:
PHOENIX_HOST: http://phoenix:8765
MYSQL_HOST: mysql:3306
POSTGRES_HOST: postgres:5432
volumes:
- .:/source
- $GOPATH/pkg/mod/cache:/go/pkg/mod/cache
depends_on:
- mysql
- phoenix
- postgres
mysql:
image: mysql:8
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
phoenix:
image: boostport/hbase-phoenix-all-in-one:2.0-5.0
postgres:
image: postgres:13-alpine
environment:
POSTGRES_HOST_AUTH_METHOD: trust
lint:
image: golang:1.17
working_dir: /source
command: >
sh -c "go install github.com/golangci/golangci-lint/cmd/golangci-lint;
make sanity-check"
volumes:
- .:/source
- $GOPATH/pkg/mod/cache:/go/pkg/mod/cache
update-test-bindata:
image: golang:1.17
working_dir: /source
command: >
sh -c "go install github.com/go-bindata/go-bindata/v3/go-bindata;
go-bindata -o bindata_test.go -pkg migration test-migrations/;
echo \"go-bindata test data generated.\""
volumes:
- .:/source
- $GOPATH/pkg/mod/cache:/go/pkg/mod/cache