Skip to content

Commit 37a092e

Browse files
Use docker healthcheck (#168)
* Use docker healthcheck Use a docker healthcheck with pg-isready instead of a custom bash script. It's just one thing less to maintain. Also see: - https://www.postgresql.org/docs/9.4/app-pg-isready.html - https://docs.docker.com/engine/reference/builder/#healthcheck * Set USER This fixes the following error message. ``` Fix `FATAL: role "root" does not exist` ``` Also see: - https://docs.docker.com/engine/reference/builder/#user - https://github.com/docker-library/postgres/blob/3bb4804/14/bullseye/Dockerfile#L23 * Use docker compose instead of docker-compose * Update terraform SDK libs Co-authored-by: Cyril Gaudin <cyril.gaudin@gmail.com>
1 parent 0664d3a commit 37a092e

File tree

7 files changed

+60
-69
lines changed

7 files changed

+60
-69
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ In order to run the full suite of Acceptance tests, run `make testacc`.
6060

6161
*Note:*
6262
- Acceptance tests create real resources, and often cost money to run.
63-
- If ran locally `docker-compose` needs to be in the `$PATH`
6463

6564
```sh
6665
$ make testacc

go.mod

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,70 +4,61 @@ go 1.17
44

55
require (
66
github.com/blang/semver v3.5.1+incompatible
7-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.8.0
7+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.10.1
88
github.com/lib/pq v1.9.0
99
github.com/sean-/postgresql-acl v0.0.0-20161225120419-d10489e5d217
1010
gocloud.dev v0.21.0
1111
)
1212

1313
require (
1414
cloud.google.com/go v0.72.0 // indirect
15-
cloud.google.com/go/storage v1.12.0 // indirect
1615
contrib.go.opencensus.io/integrations/ocsql v0.1.7 // indirect
1716
github.com/GoogleCloudPlatform/cloudsql-proxy v1.19.1 // indirect
1817
github.com/agext/levenshtein v1.2.2 // indirect
1918
github.com/apparentlymart/go-textseg v1.0.0 // indirect
2019
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
21-
github.com/aws/aws-sdk-go v1.36.1 // indirect
22-
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
2320
github.com/davecgh/go-spew v1.1.1 // indirect
2421
github.com/fatih/color v1.7.0 // indirect
2522
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
2623
github.com/golang/protobuf v1.4.3 // indirect
24+
github.com/google/go-cmp v0.5.6 // indirect
2725
github.com/google/wire v0.4.0 // indirect
2826
github.com/googleapis/gax-go/v2 v2.0.5 // indirect
2927
github.com/hashicorp/errwrap v1.0.0 // indirect
3028
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
3129
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
3230
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
33-
github.com/hashicorp/go-getter v1.5.3 // indirect
34-
github.com/hashicorp/go-hclog v0.15.0 // indirect
35-
github.com/hashicorp/go-multierror v1.0.0 // indirect
31+
github.com/hashicorp/go-hclog v0.16.1 // indirect
32+
github.com/hashicorp/go-multierror v1.1.1 // indirect
3633
github.com/hashicorp/go-plugin v1.4.1 // indirect
37-
github.com/hashicorp/go-safetemp v1.0.0 // indirect
38-
github.com/hashicorp/go-uuid v1.0.1 // indirect
34+
github.com/hashicorp/go-uuid v1.0.2 // indirect
3935
github.com/hashicorp/go-version v1.3.0 // indirect
36+
github.com/hashicorp/hc-install v0.3.1 // indirect
4037
github.com/hashicorp/hcl/v2 v2.3.0 // indirect
4138
github.com/hashicorp/logutils v1.0.0 // indirect
42-
github.com/hashicorp/terraform-exec v0.14.0 // indirect
43-
github.com/hashicorp/terraform-json v0.12.0 // indirect
44-
github.com/hashicorp/terraform-plugin-go v0.4.0 // indirect
39+
github.com/hashicorp/terraform-exec v0.15.0 // indirect
40+
github.com/hashicorp/terraform-json v0.13.0 // indirect
41+
github.com/hashicorp/terraform-plugin-go v0.5.0 // indirect
42+
github.com/hashicorp/terraform-plugin-log v0.2.0 // indirect
43+
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896 // indirect
44+
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
4545
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
46-
github.com/jmespath/go-jmespath v0.4.0 // indirect
47-
github.com/jstemmer/go-junit-report v0.9.1 // indirect
48-
github.com/klauspost/compress v1.11.3 // indirect
4946
github.com/mattn/go-colorable v0.1.4 // indirect
5047
github.com/mattn/go-isatty v0.0.12 // indirect
5148
github.com/mitchellh/copystructure v1.2.0 // indirect
52-
github.com/mitchellh/go-homedir v1.1.0 // indirect
53-
github.com/mitchellh/go-testing-interface v1.0.4 // indirect
49+
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
5450
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
5551
github.com/mitchellh/mapstructure v1.4.0 // indirect
5652
github.com/mitchellh/reflectwalk v1.0.2 // indirect
5753
github.com/oklog/run v1.0.0 // indirect
58-
github.com/ulikunitz/xz v0.5.8 // indirect
5954
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
60-
github.com/zclconf/go-cty v1.8.4 // indirect
55+
github.com/zclconf/go-cty v1.9.1 // indirect
6156
go.opencensus.io v0.22.5 // indirect
62-
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b // indirect
63-
golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect
64-
golang.org/x/mod v0.4.0 // indirect
57+
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e // indirect
6558
golang.org/x/net v0.0.0-20210326060303-6b1517762897 // indirect
6659
golang.org/x/oauth2 v0.0.0-20201203001011-0b49973bad19 // indirect
67-
golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79 // indirect
60+
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 // indirect
6861
golang.org/x/text v0.3.5 // indirect
69-
golang.org/x/tools v0.0.0-20201203202102-a1a1cbeaa516 // indirect
70-
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
7162
google.golang.org/api v0.36.0 // indirect
7263
google.golang.org/appengine v1.6.7 // indirect
7364
google.golang.org/genproto v0.0.0-20201203001206-6486ece9c497 // indirect

0 commit comments

Comments
 (0)