Commit graph

822 commits

Author SHA1 Message Date
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
renovate[bot]
48a1dcf332
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.20.0 (#422)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-29 14:05:47 +02:00
Martin Wentzel
3ea34ffb02 chore: Prepare release v2.20.0 2022-07-28 14:18:46 +02:00
Martin
777e292b7f
feat: Implementation of docker_tag resource. (#418)
* feat: Basic implementation of docker_tag resource.

* feat: Adding new AccDockerTag tests to ci pipeline.

* fix: Update failing tests.

* docs: Update tags documentation.

* fix: Fix docker_tags test.

* fix: docker_tag tests now download platform specific images.

* fix: also pull correct busybox image for dockert_tag test.
2022-07-28 14:03:16 +02:00
Martin
cf3f8d6457
feat: Implement support for insecure registries (#414)
* feat: Add new tests for insecure registries.

* chore: Refactor code into parseImageOptions and add tests.

* feat: normalizeRegistryAddress supports http addresses.

* feat: keys of authConfigs are now stored without protocol.

* chore: Refactor of docker registry fallback in parseImageOptions.

* refactor: Improve tests and implementation of parseImageOptions

* feat: Implement support for http registries.

* fix: authConfig unit tests now reflect newest structure.

* fix: docker_image_registry data source can pull without authentication.

* fix: Refactor setup of http headers for registry requests.

* docs: Add note about http registries.

* docs: Fix linting error in docs.
2022-07-22 11:19:15 +02:00
renovate[bot]
984edeed30
chore(deps): update module go to 1.18 (#412)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-22 09:48:18 +02:00
Martin Wentzel
e6844b08cd chore: Fix release targets in Makefile. 2022-07-18 14:36:00 +02:00
renovate[bot]
f7c715039e
chore(deps): update goreleaser/goreleaser-action action to v3 (#389)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-18 10:00:13 +02:00
renovate[bot]
be5cc0b0c6
chore(deps): update actions/setup-go action to v3 (#353)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-18 09:23:59 +02:00
renovate[bot]
a1bd6f1180
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.19.0 (#410)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-18 08:48:13 +02:00
Martin Wentzel
c4e12ff625 chore: Prepare release v2.19.0 2022-07-15 13:07:43 +02:00
Martin
df4b76aa04
fix: Enable authentication to multiple registries again. (#400)
* fix: Enable authentication to multiple registries again.

* fix: Tests run when conflictsWith is disabled.

* chore: Improve docs for multiple registry auth.

* tests: Add multiple registry auth test.

* fix: Correct index of auth structure.

* chore: Add newest docs [ci skip]
2022-07-15 13:05:26 +02:00
Martin
d12e13fac9
fix: ECR authentication (#409)
* chore: Adding makefile targets for local building.

* fix: Implement proper parsing of different ECR auth mechanisms.

* chore: Fix typos and cleanup Makefil [skip ci]
2022-07-15 12:25:36 +02:00
Martin
100db97ffa
feat: Add gpu flag to docker_container resource (#405)
* feat: Add gpu flag do docker_container resource.

* docs: Enhance gpus flag documentation.
2022-07-15 11:15:28 +02:00
Martin Wentzel
efd73ce9ff chore: Prepare release v2.18.1 2022-07-14 15:38:11 +02:00
Martin Wentzel
08eed6e9cd chore: Automate changelog generation [skip ci] 2022-07-14 15:36:05 +02:00
renovate[bot]
bce9b6b17d
fix(deps): update module github.com/moby/buildkit to v0.10.3 (#394)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2022-07-14 15:04:18 +02:00
Martin
faa3ec5a39
fix: Improve searchLocalImages error handling. (#407)
* fix: Improve searchLocalImages error handling.

* fix: Fix wrong sha format in docker image tests
2022-07-14 14:30:29 +02:00
Martin
6d6f9bb905
fix: Throw errors when any part of docker config file handling goes wrong. (#406) 2022-07-14 13:45:17 +02:00
Martin
78c42d7657
fix: Enables having a Dockerfile outside the context (#402)
* tests: Add failing test for Dockerfile outside context.

* fix: Enable support for Dockerfiles outside context.

Also extract some code to functions.

* fix: Adding docker outside context test and implementation for docker_registry_image.
2022-07-13 09:01:52 +02:00
renovate[bot]
6ac477b3c1
chore(deps): update actions/checkout action to v3 (#354)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-12 10:58:05 +02:00
Martin Wentzel
a85c9e7c79 chore: prepare release v2.18.0 2022-07-11 15:48:46 +02:00
Martin
401ff5e8ad
fix: Correctly handle build files and context for docker_registry_image (#398)
* tests: Add file_permission test which is failing for now.

* tests: Add whitelist_dockerignore test which is failing for now.

* fix: Various issues with docker_registry_image build process.
2022-07-11 15:18:55 +02:00
Martin
cf2cb85e4c
fix: Switch to proper go tools mechanism to fix website-* workflows. (#399)
* fix: Switch to proper go tools mechanism.

* fix: Add missing changes of website-lint github action.

* fix: Re-add some commands to make setup.

* docs: Fix service markdown file.

* fix(deps): Update golangci-lint version to match the one used in github action.

* fix: Add missing entry to go.sum
2022-07-11 14:55:15 +02:00
Stéphane Este-Gracias
6fd5b02a0d
feat: add runtime, stop_signal and stop_timeout properties to the docker_container resource (#364)
* feat: add property runtime to docker_container

Signed-off-by: Stéphane Este-Gracias <sestegra@gmail.com>

* feat: add properties stop_signal & stop_timeout

Signed-off-by: Stéphane Este-Gracias <sestegra@gmail.com>

* fix: stop_timeout cast

Signed-off-by: Stéphane Este-Gracias <sestegra@gmail.com>

* fix: add Computed to avoid recreation

Signed-off-by: Stéphane Este-Gracias <sestegra@gmail.com>
2022-07-11 12:27:47 +02:00
Marcel Meulemans
af072b22aa
fix: compare relative paths when excluding, fixes kreuzwerker#280 (#397) 2022-07-07 15:08:57 +02:00
renovate[bot]
224c3d170f
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.18.0 (#396)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-06 08:44:12 +02:00
renovate[bot]
6714c98298
fix(deps): update module github.com/golangci/golangci-lint to v1.46.2 (#341)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-27 15:46:35 +02:00
renovate[bot]
17fb3f90f5
fix(deps): update module github.com/docker/distribution to v2.8.1 (#348)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-27 15:35:32 +02:00
Martin Wentzel
9e728fa653 chore: prepare release v2.17.0 2022-06-23 11:23:24 +02:00
Martin
dc8757e5f3
feat(src): Enable buildkit when client has support. (#387)
* feat(src): Enable buildkit when client has support.

* fix: Increase timeout of testsuite to 12min

* fix: docker_image datasource tests use smaller busybox image.

* fix: Use image version which are available on arm64.

* fix: Remove session dialer from buildkit implementation.

Did not do really anything

* feat: Buildkit is now working.

* fix: Disable linting for one specific line.

* fix: Fixes TestAccDockerImage_basic test.

The used image names in the two subtests must be different.
2022-06-23 10:32:31 +02:00
Martin Wentzel
37b40325d9 chore: Exclude examples directory from renovate. 2022-06-22 21:33:56 +02:00
Martin Wentzel
607df6087b fix: update go package files directly on master to fix build. 2022-06-21 19:34:50 +02:00
Martin
4284adb0ec
fix(ci): Pipeline updates (#390)
* fix(ci): Increase github actions timeout to 15 min.
* fix(ci): Add testdata to renovate ignorePaths.
2022-06-21 08:57:18 +02:00
renovate[bot]
e16813808c
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.17.0 (#357)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-17 15:20:55 +02:00
renovate[bot]
cd77d88c53
fix(deps): update module github.com/docker/cli to v20.10.17 (#324)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-17 14:02:05 +02:00
Martin
7e569e1813
chore(ci): Update website-generation workflow (#386)
* chore(ci): Update website-generation workflow

* chore(docs): Apply new formatting.

* chore: Add update go.mod and go.sum files.
2022-06-17 12:09:59 +02:00