Commit graph

572 commits

Author SHA1 Message Date
renovate[bot]
24d9f9690e
chore(deps): update actions/stale action to v4 (#250)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-14 18:22:38 +02:00
renovate[bot]
17db6ebfa6
chore(deps): update nginx:1.21.1 docker digest to 353c20f (#248)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-12 13:59:41 +02:00
Manuel Vogel
bb2abb698a
docs(readme): add badges 2021-07-11 14:17:14 +02:00
Manuel Vogel
934bc2935f
chore: prepare release v2.14.0 2021-07-09 09:13:36 +02:00
renovate[bot]
ce43fbee6f
chore(deps): update nginx docker tag to v1.21.1 (#243)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-09 09:06:31 +02: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
4768b24df5
feat: support terraform v1 (#242)
* chore(ci): add tf v1.0.1
* chore(ci): bump tf v0.15 to 5
2021-07-07 11:04:07 +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
Manuel Vogel
7f96a26866
fix/service bind options (#234)
* 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>
2021-06-27 16:34:01 +02:00
renovate[bot]
b3dc87c6a1
chore(deps): update tj-actions/verify-changed-files action to v7 (#237)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-26 17:41:45 +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
33b29dcc43
docs: update readme with logos and subsections (#235)
* docs(readme): add tf, xw and docker logo
* docs: new logo alignment
2021-06-23 17:33:00 +02:00
renovate[bot]
82164a885c
chore(deps): update nginx:1.21.0 docker digest to d1b8ff2 (#232)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-23 08:54:06 +02:00
Manuel Vogel
ab0beba679
chore: prepare release v2.13.0 2021-06-22 17:32:10 +02:00
Manuel Vogel
8ade547de7
docs(contributing): add oneline cli git cmd to get the changes since the last tag 2021-06-22 17:21:35 +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
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