Commit graph

537 commits

Author SHA1 Message Date
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
Shunsuke Suzuki
3f9193463f
docs: add an example to build an image with docker_image (#158)
* docs: add an example to build a Docker image with docker_image
* docs: add description of the docker_image.build block
2021-03-29 10:09:08 +02:00
Manuel Vogel
6b0f977735
docs(readme): update example usage 2021-03-25 11:50:57 +01:00
Shunsuke Suzuki
c5b19d1e14
docs: add a guide about writing issues to CONTRIBUTING.md (#149) 2021-03-24 16:25:35 +01:00
Manuel Vogel
1159e2de73
feat: support darwin arm builds and golang 1.16 (#140)
* chore: bump to golang 1.16

* fix(ci): remove fail fast from non-matrix builds

* chore: rename release workflow from yml to yaml

* fix: use goreleaser for compile tests

* fix(make): use gorelease in compile target

* fix(ci): add gpg import step for compile
2021-03-18 23:21:49 +09:00
Shunsuke Suzuki
97c491737c
ci: run acceptance tests with multiple Terraform versions (#129)
* ci: run acceptance tests with multiple Terraform versions
* chore(test): bumps tf version to 0.14.8
2021-03-18 09:12:36 +01: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
Shunsuke Suzuki
f774e64849
chore: add the guide about Terraform Configuration in Bug Report (#139) 2021-03-11 21:15:11 +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
Mark
056a3bd7ba
docs: fix Github repository URL in README (#136) 2021-02-26 19:21:14 +01:00
Manuel Vogel
8da701db26
chore: update changelog for v2.11.0 2021-01-22 21:10:38 +01:00
Shunsuke Suzuki
41a4b67fe4
docs: fix legacy configuration style (#126) 2021-01-19 16:20:29 +01:00
tanis
8b617bd690
feat: add properties -it (tty and stdin_opn) to docker container
Closes #120
2021-01-18 09:00:26 +01:00
Manuel Vogel
3036de3068
chore: updates changelog for v2.10.0 2021-01-08 17:01:38 +01:00
Shunsuke Suzuki
c927a8c19f
feat: supports Docker plugin (#35)
Closes #24
2021-01-08 16:38:30 +01:00
Shunsuke Suzuki
0ef85ad13f
fix: set "latest" to tag when tag isn't specified (#117) 2021-01-06 19:54:31 +01:00
Shunsuke Suzuki
2101f471c3
feat: support max replicas of Docker Service Task Spec (#112)
Closes #111
2021-01-03 12:37:31 +01:00
Shunsuke Suzuki
0042d2654a
docs: add labels to arguments of docker_service (#105)
Closes #103
2020-12-30 07:55:08 +01:00