Commit graph

67 commits

Author SHA1 Message Date
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
renovate[bot]
7fc945d01b
fix(deps): update module github.com/golangci/golangci-lint to v1.43.0 (#306)
* fix(deps): update module github.com/golangci/golangci-lint to v1.43.0
* chore(ci): bump golangci-lint version
* fix: linter issues
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-12-02 10:58:17 +01:00
Shunsuke Suzuki
62827ae478
fix: add nil check of DriverConfig (#315) 2021-11-30 15:30:45 +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
6be43d114e
fix: add current timestamp for file upload to container (#259) 2021-08-10 18:28:36 +09: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
b759b8f2c9
fix(registry_image): consider .dockerignore in image build (#240)
* fix(registry_image): consider .dockerignore in image build
* test: for respecting dockerignore in registry image build
2021-07-07 10:35:18 +02:00
Adam Le Bon
0b9790e3d3
fix: Update the URL of the docker hub registry (#230)
* fix: Update docker hub registry URL

Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-06-28 18:52:43 +02:00