Commit graph

96 commits

Author SHA1 Message Date
Martin
cf07eb7dc9
chore: Update terraform-plugin-sdk/v2 dependency (#699) 2025-04-18 12:15:43 +02:00
Martin
6f144047c4
fix: Store correctly ports from server (#698) 2025-04-17 21:56:12 +02:00
Martin
13998c12bb
chore: Update docker/docker and docker/cli to newest stable (#695)
* chore: Updatedocker/docker and docker/cli to newest stable

* fix: Update docker_container capabilities test

* fix: Update setting of network options
2025-04-17 19:22:08 +02:00
Martin
d5e501c65b
feat: Implement upload permissions in docker_container resource (#693) 2025-04-16 09:12:51 +02:00
Martin
4b2fdcc868
feat: Implement docker_image timeouts (#692) 2025-04-15 21:47:43 +02:00
Martin
50afa9f1f5
docs: Consolidated update of docs from several PRs (#691)
Contains the changes of the following PRs

https://github.com/kreuzwerker/terraform-provider-docker/pull/576 @triggerNZ
https://github.com/kreuzwerker/terraform-provider-docker/pull/536 @Tyonar
https://github.com/kreuzwerker/terraform-provider-docker/pull/539 @matthew-palmer
https://github.com/kreuzwerker/terraform-provider-docker/pull/541 @siddharthab
https://github.com/kreuzwerker/terraform-provider-docker/pull/546 @akeamc
https://github.com/kreuzwerker/terraform-provider-docker/pull/549 @manju-rn
https://github.com/kreuzwerker/terraform-provider-docker/pull/665 @tparikka
https://github.com/kreuzwerker/terraform-provider-docker/pull/559 @tk3fftk
2025-04-15 20:04:02 +02:00
Martin
4a46383d4c
fix: Authentication to ECR public (#690)
Originally proposed by @achille-roussel in https://github.com/kreuzwerker/terraform-provider-docker/pull/666
2025-04-15 19:05:52 +02:00
Martin
dacb5dfe73
chore: Upgrade golangci-lint to next major version (#686)
* chore: Upgrade golangci-lint to next major version

* chore: Add //nolint to new tests

---------

Co-authored-by: Martin Wentzel <junker@monoceres.uberspace.de>
2025-04-15 18:54:25 +02:00
Emanuel Skrenković
64b95701e3
feat: Add support for build-secrets (#604)
Enables passing of build-secrets through the 'secrets' block inside
'build'.
The feature is only available when using Buildkit.

Co-authored-by: Martin <Junkern@users.noreply.github.com>
2025-04-15 09:15:04 +02:00
Martin
f1630865be
fix: Use build_args everywhere and update documentation (#681)
Co-authored-by: Martin Wentzel <junker@monoceres.uberspace.de>
2025-04-11 22:54:57 +02:00
Benjamin Staffin
ae80eb7d7b
fix: Compress build context before sending it to Docker (#461)
This fixes #439 by gzipping the build context, which prevents the Docker
API from misinterpreting the stream as a plain text Dockerfile.

Co-authored-by: Martin <Junkern@users.noreply.github.com>
2025-04-11 13:03:00 +02:00
Christoph Landsdorf
7e1842ccd6
feat: support setting cpu shares (#575)
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2025-04-11 12:38:28 +02:00
djarbz
cc276ca937
Ignore error message case in comparison for ignorable messages. (#583)
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2025-04-11 12:08:17 +02:00
Martin
f0dd96dbcd
fix: Set correct default network driver and fix a test (#677)
* fix: Set correct default network driver and fix a test

* fix: Update used google_containers/pause image tag

---------

Co-authored-by: Martin Wentzel <junker@monoceres.uberspace.de>
2025-04-11 11:41:07 +02:00
Joe Atzberger
aae4820ad4
Typo: s/presend/present/ (#606)
Co-authored-by: Jonatan Reiners <jonatan.reiners@kreuzwerker.de>
2024-05-09 08:54:08 +02:00
Jonatan Reiners
09528d1c0e
chore: update Go version to 1.22 for consistency across workflows, jo… (#613)
* chore: update Go version to 1.22 for consistency across workflows, jobs, and modules.

* build: Update GitHub Actions setup-go and golangci-lint versions.

* refactor: Replace ioutil.ReadFile and ioutil.ReadAll with os.ReadFile and io.ReadAll.

* go fmt

* 🔄 Update actions/checkout and actions/setup-go to v4 and v5, respectively.

*  Refactor: Add b64 function to convert file to base64 in testacc_setup.sh.

*  Update Go version requirement in CONTRIBUTING.md.

*  Fix typo and improve error message format.

*  enhance: Improve error message in TestAccDockerContainer_uploadAsBase64.

*  Fix: Update file permissions for test2.txt in docker container tests.
2024-05-08 14:59:49 +02:00
Martin
586de757d8
fix: Implement proxy support. (#529) 2023-03-17 16:15:41 +01:00
Gustavo Michels
b15ea021d7
feat(container): add MAC address to state (#523)
Co-authored-by: Gustavo Michels <gmichels@nanthealth.com>
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2023-03-15 13:42:33 +01:00
Martin
b15d5696a7
fix: Access health of container correctly. (#506) 2023-01-13 15:57:26 +01:00
Martin
646d3aa154
feat: Prepare v3 release (#503)
* feat: Remove deprecated docker_container attributes.

* feat: Remove deprecated docker_service atttribute.

* feat: Remove deprecated `build` attribute from docker_registry_image.

* feat: Remove deprecated attributes of docker_image.

* docs: Generate and update documentation.

* fix: Add MigrateState for docker_container again.

* docs: Fix docs linting errors.

* docs: Fix tf formatting in docs.
2023-01-13 13:11:51 +01:00
Martin
0f65e0577a
docs: Add migration guide and update README (#502) 2023-01-09 11:25:28 +01:00
Martin
661c6628ff
feat: Migrate build block to docker_image (#501)
* feat: docker_image now has all build capabilities from docker_registry_image

* tests: Move all docker_registry_image build tests to docker_image.

* fix: Change build.context to optional.

* docs: Update docs.
2023-01-05 13:27:40 +01:00
Manuel Vogel
a5332be18d
feat(service): add alias for networks (#241)
* feat(service): outlines alias for networks

* feat: Add driver_opts sub-attribute.

* fix: network driver options type conversions.

* fix: Temporarily fix docker_service tests.

Co-authored-by: Martin <Junkern@users.noreply.github.com>
Co-authored-by: Martin Wentzel <martin.wentzel@kreuzwerker.de>
2023-01-04 14:03:13 +01:00
Martin
5ffe0f3628
feat: Add platform attribute to docker_image resource (#500)
* feat: Add platform attribute to docker_image resource

* docs: Add updated docker_image documentation.
2022-12-28 11:38:42 +01:00
Martin
19191883d5
feat: Add sysctl implementation to container of docker_service. (#499) 2022-12-23 15:29:17 +01:00
Martin
8a4be13ce1
feat: cgroupns support (#497)
* feat: Add cgroupns mode to docker container.

* docs: Create docs.
2022-12-23 10:45:12 +01:00
Joseph Lenox
9233454972
feat: Add triggers attribute to docker_registry_image (#496)
Co-authored-by: WassimKallel <wassimkallel@think-it.io>
2022-12-22 19:48:04 +01:00
Martin
380cebf01e
feat: Support registries with disabled auth (#494)
* feat: Support registries with no auth.

* tests: Test registry with disabled auth.

* docs: Update provider documentation.
2022-12-22 16:55:26 +01:00
Martin Wentzel
0017485163 tests: Add test for parsing auth headers. 2022-12-22 14:49:05 +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
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
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
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
Martin Wentzel
291c90e61b fix: Update shasum of busybox:1.35.0 tag 2022-10-14 13:16:09 +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
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
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
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
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
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
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