Commit graph

53 commits

Author SHA1 Message Date
Martin
b9181a75e4
feat: Implement using of buildx for docker_image (#717)
* feat: Implement using of buildx for docker_image

* fix: secrets in docker_image

* fix: fmt issues

* test: Add test for build_log_file

* chore: Disable flaky test and update goreleaser to exclude not possible build

* feat: Small refactoring and documentation improvements
2025-05-06 22:21:09 +02:00
Martin
d638dddb1e
feat: Implement healthcheck start interval (#713) 2025-04-27 16:03:02 +02:00
Martin
0d414d194b
fix: Prevent recreation of image name is intentionally set to a fixed value (#711)
* fix: Prevent recreation of image name is intentionally set to a fixed value

* chore: Fix linting and formatting
2025-04-25 08:49:44 +02:00
Martin
42249d3144
feat: Implement volume_options subpath (#710) 2025-04-24 23:13:01 +02:00
Martin
0663aeb1a4
fix: Improve container wait handling (#709)
* fix: Improve container wait handling

* chore: Noop change to trigger CI

* fix: Adapt expected error regexp
2025-04-24 22:15:05 +02:00
Martin
5aced9fca7
feat: Implement tag triggers for docker_tag resource (#702) 2025-04-18 18:00:22 +02:00
Martin
98ccee6b68
feat: Implement auth_config for docker_registry_image (#701)
* feat: Implement auth_config for docker_registry_image

* fix: Formatting
2025-04-18 17:16:05 +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
c712f3f738
chore: Prepare release v3.2.0 (#694) 2025-04-16 20:17:34 +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
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
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
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
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 Wentzel
617f2ed44e docs: Update documentation. 2023-01-09 11:45:29 +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 Wentzel
e54559b7e0 docs: Fix generated website. 2022-12-22 14:36:24 +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
Andre Miras
6d936c58d9
docs: Update command typo (#487)
Doc regenerated with `make website-generation`
2022-12-15 10:50:34 +01:00
Boris HUISGEN
e1cf4151a1
feat: wait container healthy state (#467) 2022-11-02 09:19:45 +01: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
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 Wentzel
89d400b5c3 docs: Fix docker config example. 2022-09-02 15:15:09 +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
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
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
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
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
Manuel Vogel
3edb3c68b5
docs: fix service options (#337)
* chore: re-add tfplugindocs
* docs: adds ssh_opts of #335 in example
* docs: regenerate the website
* docs: fix service options block
* docs: beautify service docs
* docs: fix typo
2022-01-23 12:18:07 +01:00
Manuel Vogel
3fbe7d3a34
fix: pass container rm flag (#322)
* fix: pass container rm flag

* fix: deletion of containers

* docs: website gen

* docs: add stargazers

* fix(docs): for #321
2021-12-03 19:38:55 +09:00
Shekhar Kumar
0da4706851
docs: update registry_image.md (#321) 2021-12-02 13:46:09 +01:00
Shunsuke Suzuki
1e55894715
fix(container): remove log_driver's default value and make log_driver computed (#270)
* fix(container): remove log_driver's default value and make log_driver `computed`
* fix: update the description
* docs: make website-generation

Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-11-30 07:51:49 +01:00
Bulgantamir
8304bfd0ae
Fixed typo (#310) 2021-11-15 23:57:55 +09:00
Artem Yarmoliuk
2ff0df9951
docs: fix r/registry_image truncated docs (#304) 2021-11-03 08:37:05 +09:00
Manuel Vogel
4cd1d11bcc
docs: corrects authentication misspell. Closes #264 2021-08-11 10:02:33 +02:00
Manuel Vogel
600a84979d
feat: add container storage opts (#258) 2021-08-05 06:59:48 +09:00
Manuel Vogel
e7e80fa23f
docs: update to absolute path for registry image context (#246) 2021-07-09 09:04:43 +02:00
Manuel Vogel
44081ad4b1
docs/service entrypoint (#244)
* chore: add tfplugin docs to deps
* docs(service): enhance the explanation of the command attribute
2021-07-07 11:41:27 +02:00
Manuel Vogel
7f96a26866
fix/service bind options (#234)
* fix: give service bind_options propagation rprivate as default
* test: add second bind mount for full-service spec to test this case as well
* docs: add a second mount to service example
* fix(service): allow other options for mount binds although they might not be the specified type
* test: for empty and null mount bind
* docs(service): explains propagation more in details
* docs(service): adds missing default for propagation
* fix(test): update stop grace period to 30s for flaky test on gh actions

Co-authored-by: Shunsuke Suzuki <suzuki-shunsuke@users.noreply.github.com>
2021-06-27 16:34:01 +02:00
Manuel Vogel
bc554257e4
fix/service delete deadline (#227)
* fix: service container wait

only apply if the destroy grace period is larger than 0s. Interpret also the wait result chan and errors

* chore(service): explains why we ignore certain errors

* chore: readds terraform-plugin-docs

* docs(service): explains the behavior if the grace period is 0s

* fix(service): ignore certain errors on wait error

* refactor: introduce more speaking error contains ignorable message method

because it's more precise on what's happening in the code
2021-06-22 22:11:32 +09:00