* 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>
* 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>
* 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.
* 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.
* 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.
* 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.
* 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>
* 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>
* 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
Without this, if the Docker image is not found, it's difficult to know
which image exactly is 404'ing - you get a very generic error message,
which can make it difficult to spot typos or other problems with the
image name.
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
* chore: format test configs for datasources
* chore: outlines load test config helper and structure
* docs(contributing): add command for resouce tests
to have an example of the regex
* refactor: move container test configs into separate files
* fix: add insecure_skip_verify for image pulls
to fix the local test setup with invalid certs
* chore(ci): remove insecure registry adaption
* chore: regenerate website
* chore: update gitignore for scipts/testing dir
* fix: replace nodejs services with go versions
* fix: move testing program versions in separate files
* test: reactivate flaky test from travis
* chore: fix linter on all go files
* fix(linter): testing go servers
* chore(ci): add env for go version
* chore(ci): name workflow steps
also moves description of available docker versions in to acc dockerfile
* Revert "test: reactivate flaky test from travis"
This reverts commit b02654acc4d6b7d02c8f3ba090e6a3f248741b10.
* docs: fix provider-ssh example
* chore: use alpine als final image for tests
* refactor: move test configs from folder into testname.tf files
* refactor: image delete log is now debug and indented
* refactor: image test config into seprate files
* refactor: move network test config into seperate files
* refactor: move plugin test config into seperate files
* chore: rename registry image test file
* refactor: move registry_image test config into seperate files
* chore: format secret test configs
* refactor: inline volume test configs
* fix: remove unused volume label test function
* refactor: move service test configs into seperate files
* test: reactivate and fix service test
* chore: simplify insecure skip verify add to http client
* chore(ci): debug into service test
* chore(ci): add testacc setup
* chore: format tf config for provider test
* chore(ci): add debug output for config.json
* fix: check service auth for emptyness
* fix: remove re-read of provider auth config
because the bug occured only in CI as the meta object might be GCd
* test: pass auth to service instead of provider
* chore: reactivate all acc tests
* test: outlines service inspect json check for full spec
* test: add service inspect json checks
* test: finish service inspect json checks
* chore(service): move test helper to end to of the file
* chore: move mapEquals to test helpers
* test: add json inspect for config
* chore: add debug inspect log for plugin, secret and volume
* test: add json inspect for secret
* test: add json inspect for image
* test: add json inspect for network
* test: add json inspect for plugin
* test: add json inspect for volume
* test: inline ds plugin test configs
* test: inline network configs
* test: move ds reg image configs into separate files
* test: reactivates container upload checks
* chore: adapt issues ref from old to new xw repo
* fix: reactivate network ingress test
and provide helpers for removing the default ingress network and leaving the swamr
* docs: rerun website gen
* test: fix reg image build and keep test
* chore: add name to todo
* chore: move ds network and plugin specs to file
* chore: format provider test spec
* chore: use simpler error message for empty strings