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
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
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
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
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
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
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
Alexander Niebuhr
3c22540321
fix: correct authentication for ghcr.io registry( #349 )
...
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2022-06-16 19:47:17 +02:00
Stephen Lacy
0beb476c08
chore(src): improve image delete error message ( #359 )
...
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2022-06-10 20:06:31 +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
Nolan Woods
24336bc89f
feat: add parameter for SSH options ( #335 )
2022-01-18 14:37:50 +09: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