Commit graph

708 commits

Author SHA1 Message Date
renovate[bot]
fe1d4ff0c0
fix(deps): update module github.com/docker/cli to v20.10.22+incompatible (#489)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-21 20:45:39 +01:00
Joseph Lenox
3f67a3df9d
feat: add IPAM options block for docker networks (#491)
* Hack in IPAM options as they are the same data structure as network options.

* Add IPAM options to read refresh

* docs: Add `ipam_options` to network documentation.

* docs: Revise IPAM options documentation to make more clear as to what it does.

* refactor: remove Computed options as prompted from review
2022-12-21 17:24:51 +01:00
Martin Wentzel
3b904484f4 fix: Pin data source specific tag test to older tag.
The new one gets constantly a new sha that's why tests always fail.
2022-12-16 15:17:35 +01:00
Andre Miras
6d936c58d9
docs: Update command typo (#487)
Doc regenerated with `make website-generation`
2022-12-15 10:50:34 +01:00
Martin Wentzel
4dd3603786 chore: Prepare release v2.23.1 2022-11-23 16:59:24 +01:00
Martin Wentzel
3ccc15181b fix: Update shasum of busybox:1.35.0 tag in test. 2022-11-23 16:50:16 +01:00
Timi Aiyemo
42d37d3214
fix: Handle Auth Header Scopes (#482)
* fix: check for auth header length

* fix: expand url scope
2022-11-22 17:11:02 +01:00
renovate[bot]
ffb0cbfb75
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.24.1 (#479)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-18 14:40:08 +01:00
renovate[bot]
dca703df57
fix(deps): update module github.com/moby/buildkit to v0.10.6 (#478)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-14 18:05:12 +01:00
Hirotaka Tagawa / wafuwafu13
063d64c087
fix: Set OS_ARCH from GOHOSTOS and GOHOSTARCH (#477) 2022-11-07 15:12:30 +01:00
Martin Wentzel
3489fbbafc chore: Prepare release v2.23.0 2022-11-02 11:57:57 +01:00
renovate[bot]
4f5a7f81f1
fix(deps): update module github.com/docker/docker to v20.10.21+incompatible (#459)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-02 11:25:55 +01:00
renovate[bot]
09b7d37938
fix(deps): update module github.com/docker/cli to v20.10.21+incompatible (#457)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2022-11-02 11:13:12 +01:00
Martin Wentzel
fe48121dc1 fix: Update shasum of busybox:1.35.0 tag in test. 2022-11-02 10:03:57 +01:00
Boris HUISGEN
e1cf4151a1
feat: wait container healthy state (#467) 2022-11-02 09:19:45 +01:00
renovate[bot]
4eb65f64db
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.24.0 (#456)
* fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.24.0

* chore: Improve golangci-lint makefile command.

* fix: Add setup-go to golang lint workflow.

* fix: Correct intendation for lint workflow.

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Martin <Junkern@users.noreply.github.com>
Co-authored-by: Martin Wentzel <martin.wentzel@kreuzwerker.de>
2022-10-21 17:43:22 +02:00
renovate[bot]
9aeece2da8
fix(deps): update module github.com/moby/buildkit to v0.10.5 (#472)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-19 21:16:17 +02:00
Buk Bukowski
3534622b92
feat: add docker logs data source (#471)
* working docker-logs

Signed-off-by: bukowa <gitbukowa@gmail.com>

* add tests

Signed-off-by: bukowa <gitbukowa@gmail.com>

* add description to logs_list_string

Signed-off-by: bukowa <gitbukowa@gmail.com>

* allow discarding docker-logs headers

Signed-off-by: bukowa <gitbukowa@gmail.com>

* add auto generated docs

Signed-off-by: Buk Bukowski <gitbukowa@gmail.com>

Signed-off-by: bukowa <gitbukowa@gmail.com>
Signed-off-by: Buk Bukowski <gitbukowa@gmail.com>
2022-10-17 13:50:45 +02:00
renovate[bot]
4cd1f8206a
fix(deps): update module github.com/golangci/golangci-lint to v1.50.0 (#469)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2022-10-14 14:09:23 +02:00
Martin Wentzel
291c90e61b fix: Update shasum of busybox:1.35.0 tag 2022-10-14 13:16:09 +02:00
Benjamin Staffin
bdaec499d8
fix: Correct provider name to match the public registry (#462)
This fixes the following error that shows up if you run the provider in
debug mode:

```json
{"@level":"info","@message":"2022/09/21 15:25:08 [ERROR] Error parsing provider name \"registry.terraform.io/kreuzwerker/terraform-provider-docker\": Invalid provider type: Provider source \"kreuzwerker/terraform-provider-docker\" has a type with the prefix \"terraform-provider-\", which isn't valid. Although that prefix is often used in the names of version control repositories for Terraform providers, provider source strings should not include it.\n\nDid you mean \"kreuzwerker/docker\"?","@timestamp":"2022-09-21T15:25:08.353718-04:00"}
```
2022-09-30 17:25:11 +02:00
Martin Wentzel
418d333f96 chore: Prepare release v2.22.0 2022-09-20 16:50:02 +02:00
Tyler Sullivan
d6077e672c
feat: Configurable timeout for docker_container resource stateChangeConf (#454)
* make the docker_container resource stateChangeConf timeout configurable

* remove commented out code

* update docs

* use milliseconds for consistency

* update description to say milliseconds

* fix log fmt to show actual seconds from milliseconds, and make website-generation

* fix: import state for containerReadRefreshTimeoutMillisecondsDefault

* fix: typo in comment

Co-authored-by: Tyler Sullivan <tyler.sullivan@smartsheet.com>
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2022-09-13 15:44:25 +02:00
William Sedlacek
d0eae33123
fix: oauth authorization support for azurecr (#451)
* fix: oauth authorization support for azurecr

* fix: oauth when destroying images

* refactor: run make fmt
2022-09-09 13:59:18 +02:00
Martin Wentzel
0d82189137 chore: Prepare release v2.21.0 2022-09-05 15:44:30 +02:00
Martin
f34bec792b
fix: Replace deprecated .latest attribute with new image_id. (#453) 2022-09-05 15:14:45 +02:00
Martin
ad65027896
feat: Add image_id attribute to docker_image resource. (#450) 2022-09-05 13:55:41 +02:00
Martin
b37b866b6d
fix: Remove reading part of docker_tag resource. (#448) 2022-09-05 09:00:00 +02:00
Martin Wentzel
90a40021df fix: Fix repo_digest value for DockerImageDatasource test. 2022-09-02 15:34:07 +02:00
renovate[bot]
b4b8a97a1d
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.21.0 (#434)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2022-09-02 15:32:31 +02:00
Martin Wentzel
89d400b5c3 docs: Fix docker config example. 2022-09-02 15:15:09 +02:00
Martin
7f114046e2
feat: Update used goversion to 1.18. (#449) 2022-09-01 15:35:14 +02:00
renovate[bot]
02a6655da0
fix(deps): update module github.com/golangci/golangci-lint to v1.49.0 (#441)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-01 09:17:34 +02:00
renovate[bot]
95fba60607
fix(deps): update module github.com/docker/go-units to v0.5.0 (#445)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-01 08:49:41 +02:00
Martin Wentzel
3ff136ef0f chore: Prepare release v2.20.3 2022-08-31 09:13:27 +02:00
renovate[bot]
2017ec81fa
fix(deps): update module github.com/moby/buildkit to v0.10.4 (#440)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2022-08-29 16:17:53 +02:00
Imantas
c629be7de3
fix: Docker Registry Image data source use HEAD request to query image digest (#433)
* fix: Docker Registry Image data source use HEAD request to query image digest

* fix: explain double request to registry in data.docker_registry_image

Co-authored-by: Martin <Junkern@users.noreply.github.com>
2022-08-29 15:53:40 +02:00
renovate[bot]
494b4ad0d2
fix(deps): update module github.com/katbyte/terrafmt to v0.5.2 (#437)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-29 13:42:41 +02:00
Michele Adduci
19a7059828
fix: Adding Support for Windows Paths in Bash (#438)
Included support for Absolute Paths in Windows that begin with e.g. `G:/`
2022-08-29 12:32:02 +02:00
Martin Wentzel
57a5d44b1f chore: Prepare release v2.20.2 2022-08-10 16:13:21 +02:00
Martin Wentzel
55cef36541 Revert "fix(deps): update module github.com/golangci/golangci-lint to v1.48.0 (#423)"
This reverts commit 6a35b2182e.
2022-08-10 16:00:23 +02:00
renovate[bot]
6a35b2182e
fix(deps): update module github.com/golangci/golangci-lint to v1.48.0 (#423)
* fix(deps): update module github.com/golangci/golangci-lint to v1.48.0

* fix: Fix compile.yaml workflow. (#431)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2022-08-10 15:54:53 +02:00
Kyle Carberry
6c8714dc4a
fix: Check the operating system for determining the default Docker socket (#427)
Windows doesn't use `/var/run/docker.sock`, so this provider
didn't work out of the box.
2022-08-10 15:32:34 +02:00
Martin Wentzel
78e4a2bbe4 chore: Prepare release v2.20.1 2022-08-10 14:59:49 +02:00
Martin
c1b39d282b
chore: Reduce time to setup AccTests (#430)
* feat: Download static docker image in acc_tests

* feat: Removing docker install from acc test job.

* feat: Only run private registry for selected tests.

* chore: Remove not needed env variables from acc-tests.

* chore: Ignore compile job for tags and test-only commits.

* chore: Remove vet and errcheck from Makefile.
2022-08-10 14:50:38 +02:00
Martin
59fcfcc269
feat: Implement triggers attribute for docker_image. (#425)
* feat: Implement triggers attribute for docker_image.

* fix: Update repo_digest value in test.
2022-08-10 13:57:14 +02:00
renovate[bot]
6db80ccbb0
fix(deps): update module github.com/katbyte/terrafmt to v0.5.1 (#429)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-10 11:10:38 +02:00
Martin Wentzel
074c94cabc docs: Improve docker network usage documentation [skip-ci] 2022-08-01 13:22:15 +02:00
Martin
fdd628e915
fix: Add ForceTrue to docker_image name attribute. (#421)
* fix: Add ForceTrue to docker_image name attribute.

* fix: Test for docker_image name attribute change does not need to check for specific sha sums.
2022-08-01 08:44:47 +02:00
renovate[bot]
8bf3f88190
fix(deps): update module github.com/golangci/golangci-lint to v1.47.2 (#411)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-29 14:23:51 +02:00