Commit graph

97 commits

Author SHA1 Message Date
renovate[bot]
17fb3f90f5
fix(deps): update module github.com/docker/distribution to v2.8.1 (#348)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-27 15:35:32 +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
Martin Wentzel
607df6087b fix: update go package files directly on master to fix build. 2022-06-21 19:34:50 +02:00
renovate[bot]
e16813808c
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.17.0 (#357)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-17 15:20:55 +02:00
renovate[bot]
cd77d88c53
fix(deps): update module github.com/docker/cli to v20.10.17 (#324)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-17 14:02:05 +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
3926de97a2
chore(ci): split acc test into resources (#382)
* chore(ci): split acc test into resources

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix: bump terraform-plugin-sdk/v2 to v2.16.0

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix(ci): Set fail-fast to false.

* fix(ci): reduce to tf version 0.15.x and 1.1.x

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix(ci): us tf version gh action

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix(ci): env name for TESTSUITE_TIMEOUT

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix(ci): increase test suite timeout to 480s

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix(src): Replace deprecated plugin.Debug with plugin.Serve.

Co-authored-by: Martin Wentzel <martin.wentzel@kreuzwerker.de>
2022-06-09 15:32:45 +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
renovate[bot]
5e1cfb7e7c
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.10.1 (#323)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-22 15:09:46 +01:00
renovate[bot]
642037a5ad
fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.5.1 (#311)
* fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.5.1
* fix: go get for tfplugindocs

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-12-01 15:41:13 +01:00
renovate[bot]
1d78b710ba
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.9.0 (#317)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-01 10:14:55 +01:00
renovate[bot]
87f93f5294
fix(deps): update module github.com/docker/cli to v20.10.11 (#316)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-12-01 09:05:00 +01:00
renovate[bot]
e07e766681
fix(deps): update module github.com/docker/docker to v20.10.10 (#297)
* fix(deps): update module github.com/docker/docker to v20.10.10
* chore(ci): adapt acc test docker version
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-11-30 16:26:54 +01:00
Bulgantamir
8304bfd0ae
Fixed typo (#310) 2021-11-15 23:57:55 +09:00
renovate[bot]
bd2955cc81
fix(deps): update module github.com/docker/cli to v20.10.10 (#296)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 08:45:10 +02:00
renovate[bot]
592b5636ba
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.8.0 (#298)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-10-21 06:43:16 +02:00
renovate[bot]
412d25a0cb
fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.5.0 (#286)
* fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.5.0
* chore(deps): update terraform-plugin-docs to v0.5.0
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-09-13 13:57:34 +02:00
renovate[bot]
5fb3f23792
chore(deps): update golang to v1.17 (#272)
* chore(deps): update golang docker tag to v1.17
* chore: update to golang 1.17

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-09-07 14:13:40 +02:00
renovate[bot]
3d41205695
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.7.1 (#279)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-07 12:04:48 +02:00
Manuel Vogel
5665da93bc
chore: re go gets terraform-plugin-docs 2021-08-11 10:03:39 +02:00
renovate[bot]
570009a876
fix(deps): update module github.com/docker/docker to v20.10.8 (#256)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 18:47:01 +09:00
renovate[bot]
570b6cb03f
fix(deps): update module github.com/docker/cli to v20.10.8 (#255)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-08 11:07:00 +09: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
renovate[bot]
190f915c21
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.7.0 (#236)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-26 17:40:19 +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
renovate[bot]
1ebe5511ef
fix(deps): update module github.com/docker/docker to v20.10.7 (#218)
* fix(deps): update module github.com/docker/docker to v20.10.7
* chore: update GitHub actions and testacc file

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-06-21 09:55:55 +02:00
renovate[bot]
7f4c14d1f5
fix(deps): update module github.com/docker/cli to v20.10.7 (#217)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-18 18:55:23 +09:00
Manuel Vogel
6c796e15a5
feat/doc generation (#193)
* chore: add tfplugindocs tool

* feat: add tfplugin doc dependency and make target

* chore: apply documentation generation

* docs(contributing): update for documentation generation

* fix: adapt website-lint target to new do folder

* docs(network): update ds descriptions

* docs: add template for index.md

* docs: add network resource generation

* chore(ci): updates paths for website checks

* docs: add plugin data source generation

* docs: add import cmd for network resource

* docs: add plugin resource generation

* feat: outlines remaining resources with example and import cmd

* feat: add descriptions to docs

* chore: add DevSkim ignores and fix capitalized errors

* docs: complete ds registry image

* docs: add container resource generation

* docs: add lables description to missing resources

* docs: remove computed:true from network data

so the list is rendered in the description

* Revert "docs: remove computed:true from network data"

This reverts commit dce9b7a5a2.

* docs: add docker image descriptions to generate the docs

* docs: add docker registry image descriptions to generate the docs

* docs: add docker service descriptions to generate the docs

* docs: add docker volume descriptions to generate the docs

* docs(index): clarifies description

so more docker resources are mentioned

* docs(network): fixes required and read-only attributes

so the ds can only be read by-name

* docs(plugin): clarifies the ds docs attributes

* docs: fix typo registry image ds

* docs(config): clarifies attributes and enhances examples

Provide a long example and import command

* fix(config): make data non-sensitive

Because only secrets data is

* docs(containter): clarifies attributes

and enhances examples with import

* docs(config): fix typo

* docs(image): clarifies attributes and remove import

* docs(network): clarifies attributes and adapts import

* docs(plugin): clarifies attributes and import

* docs(registry_image): clarifies attributes and removes import

* chore(secret): remove typo

* docs(service): clarifies attributes and import

* docs(volume): clarifies attributes and import

* fix: correct md linter rules after doc gen

* docs(volume): regenerated

* docs: add config custom template

* docs: add templates for all resources

* docs(config): templates all sections and examples

for better redability and structure

* docs(config): fix md linter

* docs(container): templates all sections and examples

* docs(image): templates all sections and examples

* docs(image): fix import resource by renaming

* docs(network): templates all sections and examples

* docs(service): templates all sections and examples

* docs(volume): templates all sections and examples

* fix(lint): replace website with doc directory

* fix(ci): link check file extension check

* fix: markdown links

* chore: remove old website folder

* chore: fix website-lint terrafmr dir and pattern

* fix: lint fix target website folder

* fix: website links

* docs(provider): update examples

with templates on auth and certs

* docs(provider): add tf-plugin-docs line

* docs(contributing): split doc generation section

* docs: final brush up for readability and structure

* chore(ci): add website-generation job

to see if files changed and it should run locally again

* chore(ci): remove explicit docker setup

from website lint because it's installed by default
2021-05-21 21:30:56 +09:00
renovate[bot]
f8907bfd61
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.6.1 (#181)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-30 09:48:50 +09:00
renovate[bot]
9f1bca1178
fix(deps): update module github.com/docker/cli to v20.10.6 (#175)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 16:57:57 +02:00
renovate[bot]
3854fbdd9e
fix(deps): update module github.com/docker/docker to v20.10.6 (#174)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 16:03:29 +02:00
renovate[bot]
08110e2a23
fix(deps): update module github.com/docker/cli to v20.10.5 (#164)
* chore: fix docker/cli version
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-04-12 15:11:29 +02:00
renovate[bot]
b37d84db62
fix(deps): update module github.com/docker/docker to v20.10.5 (#165)
* fix(deps): update module github.com/docker/docker to v20.10.5

* fix(deps): update module github.com/docker/docker to v20.10.5

* chore: bump acc test docker version

* chore(build): reorder goproxies

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-04-12 17:34:02 +09:00
renovate[bot]
8580171347
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.5.0 (#167)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 09:05:10 +02:00
renovate[bot]
42ea663ee6
fix(deps): update module github.com/golangci/golangci-lint to v1.39.0 (#166)
* fix(deps): update module github.com/golangci/golangci-lint to v1.39.0
* chore: bump version of lint action as well
* chore: fix linter
* fix: remove before hooks for releasing
* fix: remove unneeded declaration
2021-04-09 11:56:56 +02:00
Manuel Vogel
ad3e56da2b
feat: migrate to terraform-sdk v2 (#102)
* chore: runs v2 upgrade cmd
* chore: moves all files into the internal provider dir
* feat: migrates main and provider
* fix: migrates tests to provider factories
* fix: replace import state passthrough ctx func
* chore: bump tf-sdk to v2.4.4
* fix: acc test by adding stop grace period
* fix: move to validate diag functions
* test: switch from ctx TODO to Background
* feat: add state upgrade for restart_policy and auth

Co-authored-by: Shunsuke Suzuki <suzuki-shunsuke@users.noreply.github.com>
2021-03-18 08:30:54 +01:00
Manuel Vogel
97ed39e2d9
chore: bump docker dependency to v20.10.5 (#119)
* chore: bump to docker v20.10.2

* fix: compilation errors

* chore: bump to docker v20.10.5

* chore: bump to docker/cli v20.10.5

* fix: removes service generic resource from limits

* fix: pass nil platform for container creation

Co-authored-by: Shunsuke Suzuki <suzuki-shunsuke@users.noreply.github.com>
2021-03-08 21:18:21 +09:00
Manuel Vogel
250b58a9f8
feat: adds docker Image build feature (#283) 2020-10-07 20:06:13 +02:00
Sergei Ivanov
5df0c5a7f2
feat: adds complete support for Docker credential helpers (#253)
* Reused code from docker CLI to parse docker config file
* Resolve credential managers and retrieve credentials.
* Discarded any custom code that the provider had, which duplicated docker CLI functionality.

Closes #252 

Signed-off-by: Sergei Ivanov <sergei_ivanov@mail.ru>
2020-10-07 19:51:56 +02:00
dubo-dubon-duponey
27a9f37c69 Move to standalone plugin SDK (#200)
Closes #197 
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2019-10-09 20:25:38 +02:00
appilon
f75443a060 remove usage of config pkg (#183)
upgrade terraform sdk to v0.12.8
2019-09-23 20:15:30 +02:00
Matt Keeler
a789ce2036 Update to Terraform 0.12 (#150). Closes #144
* Update to terraform 0.12
* Fix acceptance tests to make syntax 0.12 compatible.
2019-06-11 00:24:55 +02:00
Manuel Vogel
8ad1a13c08
Add ssh protocol (copy) (#153). Closes #112
* adds support for ssh protocol
* updates docker cli dependency to f337f1
* adds example for using the ssh protocol
2019-05-26 21:06:10 +02:00
Manuel Vogel
8a4b0b15be
Update to docker to 18.09 (#152)
* updates travis to xenial and docker to 18.09
* updates docker sources to f25e0c6f
* updates the grpc sources to the latest version to be comtatible
Closes #114
2019-05-26 14:20:39 +02:00
Manuel Vogel
a6fdf4c2a6
Fixes for image pulling and local registry (#143)
Multiple fixes for handling private registries and login credential retrieval on OSX.

- Fixes check for image locally before pulling it: #24
- Fixes image prefix workaround: #120
- Fixes passing of the `--with-registry-auth` flag: #77 
- Fixes docker registry credentials in osxkeychain: #125
2019-05-26 11:42:53 +02:00
Alex Pilon
ff3adce2f9
deps: github.com/hashicorp/terraform@sdk-v0.11-with-go-modules
Updated via: go get github.com/hashicorp/terraform@sdk-v0.11-with-go-modules and go mod tidy
2019-03-11 18:19:31 -04:00
Alex Pilon
2eed46629c
deps: use go modules for dep mgmt
run go mod tidy
remove govendor from makefile and travis config
set appropriate env vars for go modules
2019-03-11 18:19:30 -04:00