Commit graph

554 commits

Author SHA1 Message Date
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
Kevin Burke
c888f812a3
internal/provider: include image name in error message (#223)
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>
2021-06-21 09:52:34 +02:00
renovate[bot]
eaee1edf91
fix(deps): update module github.com/golangci/golangci-lint to v1.41.1 (#226)
* fix(deps): update module github.com/golangci/golangci-lint to v1.41.1
* fix(ci): update action golangci-lint to v1.41.1

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-06-21 09:28:25 +02:00
renovate[bot]
e63b5ac030
chore(deps): update alpine docker tag to v3.14.0 (#225)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-21 09:26:12 +02:00
Manuel Vogel
4d40b84443
fix/service image name (#212)
* fix(service): remove image name suppress function
* feat: add docker image data-source
* docs(service): add example for iamge datasource usage
* fix: image repo digest with tag determination
* fix: always return a repoDigest
* fix(image): deprecation notice for latest attribute
* fix(ci): explicitly go get tfplugindocs
* fix(ci): remove gocenter.io proxy
2021-06-21 09:24:02 +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
Alex Kunin
460bc7a0c3
docs: fix a few typos (#216) 2021-06-02 07:54:29 +02:00
Alex Kunin
a0d51e2a09
docs: fix typos in docker_image example usage (#213) 2021-06-01 15:05:29 +02:00
Manuel Vogel
142144ac38
chore(deps): update stocard/gotthard docker digest to 38c2216 2021-05-31 22:13:52 +02:00
Manuel Vogel
739f4496fb
chore(deps): update nginx docker tag to v1.21.0 2021-05-31 22:13:37 +02:00
Manuel Vogel
35c05b1f57
chore(deps): update nginx:1.18.0-alpine docker digest to 93baf2e 2021-05-31 22:11:48 +02:00
Renovate Bot
75e75afb8a
chore(deps): update nginx docker tag to v1.21.0 2021-05-31 11:28:18 +00:00
Renovate Bot
2fd27d7eb0
chore(deps): update alpine docker tag to v3.13.5 2021-05-31 11:28:13 +00:00
Renovate Bot
da1bcc63ff
chore(deps): update stocard/gotthard docker digest to 38c2216 2021-05-31 11:28:08 +00:00
Renovate Bot
30df20e800
chore(deps): update nginx:1.18.0-alpine docker digest to 93baf2e 2021-05-31 11:28:03 +00:00
renovate[bot]
e1630b2281
fix(deps): update module github.com/golangci/golangci-lint to v1.40.1 (#194)
* chore: bump tools golang version to 1.16

* fix(deps): update module github.com/golangci/golangci-lint to v1.40.1

* chore(ci): bump golangci-lint to use v1.40.1

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-05-31 13:27:46 +02:00
Manuel Vogel
0588c2071b
chore/refactor tests (#201)
* 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
2021-05-31 16:11:49 +09:00
Manuel Vogel
22c490336c
chore: prepare release v2.12.2 2021-05-26 09:05:51 +02:00
Manuel Vogel
84f6df6aa5
chore: update changelog for v2.12.1 2021-05-26 08:38:53 +02:00
Manuel Vogel
2d889c77d7
fix: add service host flattener with space split (#205)
* fix: add service host flattener with space split

* fix(service): switch host and ip in flatten extra hosts
2021-05-26 15:35:46 +09:00
Manuel Vogel
ebe61896e9
fix: service state upgradeV2 for empty auth
which caused a panic. Closes #203.
2021-05-25 16:46:25 +02:00
renovate[bot]
a99c73c28b
chore(deps): update tj-actions/verify-changed-files action to v6.2 (#200)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-23 12:36:44 +02:00
Manuel Vogel
e73a057849
Merge branch 'master' of github.com:kreuzwerker/terraform-provider-docker 2021-05-23 12:04:31 +02:00
Manuel Vogel
b51f0b4a86
chore: update changelog for v2.12.0 2021-05-23 12:03:36 +02:00
Manuel Vogel
fc310e080c
docs: update for v2.12.0 2021-05-23 11:58:59 +02:00
Manuel Vogel
4275fc8053
docs: add releasing steps 2021-05-23 11:58:49 +02:00
dlaburthe
588c621617
fix: rewriting tar header fields (#198)
closes #192

Co-authored-by: DL <david.laburthe@external.terega.fr>
2021-05-21 15:36:44 +02: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
Lexy2
96a6a8dbee
fix: test spaces for windows (#190)
* fix running tests in directories with spaces
* REGISTRY_STORAGE_DELETE
* Updated Windows testing scripts

Co-authored-by: Zhitenev-Lexy <Zhitenev.Lexy@bcg.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-05-11 10:00:02 +02:00
renovate[bot]
696739b47c
fix(deps): update module github.com/golangci/golangci-lint to v1.40.0 (#191)
* fix(deps): update module github.com/golangci/golangci-lint to v1.40.0

* chore: bump tools golang version to 1.16

* chore: tidy tools

* chore(ci): bump golangci-lint to v1.40

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-05-11 09:30:35 +02:00
Manuel Vogel
c404e0ae51
fix: replace for loops with StateChangeConf (#182)
* fix: create container refresh function
* fix: adapt statefunc delays and timeouts to reflect for loop
* feat: add testaccDockerfile for local development
* chore(ci): bump terraform versions and add 0.15.2
2021-05-11 08:59:40 +02: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
Manuel Vogel
ca26635625
fix: skip sign on compile action 2021-04-21 14:12:36 +02:00
Manuel Vogel
bf301014ec
chore: ignore dist folder 2021-04-21 14:11:32 +02:00
Manuel Vogel
bcf09fe2b8
fix(compile): remove gpg key from action to make it work in forks 2021-04-21 14:01:41 +02:00
Shunsuke Suzuki
f8d20403bd
fix: assign map to rawState when it is nil to prevent panic (#180)
* fix: assign map to rawState when it is nil to prevent panic
* refactor: return nil
2021-04-21 13:53:03 +02:00
Manuel Vogel
2845519dce
fix/move helpers (#170)
* chore: rename structures file

* fix: create volume migrators

* fix: move service migrators

* fix: move network migrators

* fix: rename container migrators

* chore: move label migrators and helpers

* chore: move container structures

* chore: move network structures

* fix: move container extrahosts flattener

* fix: move container ulimits flattener

* fix: move container devices flattener

* chore: move service mappers to structures file

* chore: move image helper funcs

* chore: add constants for network refresher funcs

* chore: move plugin crud funcs to the top

* chore: move registry image funcs to the top

* chore: add resfresh func constants for volume

* chore: extract ipam config flatten func
2021-04-19 22:33:13 +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]
3ff287d7cf
fix(deps): update module github.com/katbyte/terrafmt to v0.3.0 (#168) 2021-04-09 13:19:13 +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
b1a5b526d5
fix/workflows (#169)
* fix: align gh wf path with go.mod and remove vendor dir

* fix: removes duplicated go version env

* chore: extract docker ce version as env

* chore: removes leading yaml lines
2021-04-08 20:15:06 +09:00
Shunsuke Suzuki
d1529ddc48
chore(renovate): configure Renovate (#162) 2021-04-07 10:53:58 +02:00
Shunsuke Suzuki
c50524b321
fix: search local images with Docker image ID (#151)
* test: add a test to reproduce a problem
* fix: search a local image with Docker image ID
* refactor: inspect a Docker image in searchLocalImages
2021-03-29 11:23:48 +02:00
Shunsuke Suzuki
4936f08c4b
fix: set "ForceNew: true" to labelSchema (#152) 2021-03-29 11:04:03 +02:00
Shunsuke Suzuki
0de7b5dc2c
chore: configure actions/stale (#157)
* chore: configure actions/stale
* fix: guide the label `pinned`
2021-03-29 10:14:33 +02:00
Shunsuke Suzuki
7e2ea39478
docs: format Guide of Bug report (#159) 2021-03-29 10:09:54 +02:00