Commit graph

19 commits

Author SHA1 Message Date
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
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
554797dfd9
chore: introduces golangci-lint (#32)
* refactor: fix code with golangci-lint
* ci: configure golangci-lint
* Closes #13
2020-12-20 11:04:51 +01:00
Suzuki Shunsuke
f213e3a348 style: format with gofumpt
https://github.com/mvdan/gofumpt

```
$ gofumpt -l -s -w docker/*
```
2020-12-12 19:26:11 +09:00
Manuel Vogel
ef47f0cbdb
fix: service endpoint spec flattening 2020-02-01 15:50:59 +01:00
Manuel Vogel
c39d5f1fca
chore(service): adapts cp debug outputs 2020-02-01 14:02:54 +01:00
Suzuki Shunsuke
4e8a837e08 Wait for state until endpoint spec is exposed 2020-01-13 09:48:38 +09:00
Manuel Vogel
a7f6cc9300
fix(service): ports flattening (#233)
Closes #222 
* fix(service): changes ports from set to list. adapts tests. marks published port computed. uses endpoint spec from api to flatten.
2019-12-27 16:48:21 +01:00
Manuel Vogel
f4dd2188f1
feat: make UID, GID, & mode for secrets and configs configurable (#231)
Closes #216 
* feat(service): makes uid, gid and file mode configurable
* docs(service): updates config and secret configuration
2019-12-18 19:04:01 +01:00
Xander Flood
080d80702a service 2019-11-14 08:06:50 -05: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
Manuel Vogel
e323be8f55
Fixes for flaky tests (#154)
* adds delay for fetching auth config
* refactor registry auth retrieval. adds retry if not found
* reactivates full build in script and travis
2019-05-31 15:08:32 +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
Manuel Vogel
2360eb088f
Container network fixes (#104)
* Feat/net-attr add IP address of each network to the computed attributes from #50.
* marks ip_address as deprecated and adds network data for a container. Closes #9
* adds wait for removal of a container. Closes #98 
* removes validator for container network_mode and checks error handling if container disconnect from default network fails. Closes #107
2018-10-25 07:21:48 +02:00
Manuel Vogel
1f563cc913
Migrate/docker-client (#70)
Migrates to the official docker client to connect to the Docker API/Deamon. Closes #32
2018-07-03 17:30:53 +02:00
Manuel Vogel
b8e0571919
Update/docker-18-03-1 (#68)
* updates travis to use Docker 18.03.1
* implements up to Docker API 1.37
2018-05-29 11:28:43 +02:00
Manuel Vogel
7e5bb1e872
Fix service flatteners (#66)
* fixed the endpoint flattener
* uses the swarm endpoint spec now instead
2018-05-18 12:14:02 +02:00
Manuel Vogel
dc824c1030
Feat/swarm 4 new resources (#40)
Adds docker swarm features to the provider for the Docker Engine 17.09.1 and API Version 1.32. 

The spec is close to the API. By default, the swarm services are fire and forget. A converging config implements the features of the docker cli to ensure a service and all its replicas are up and running. Furthermore, service can have configs, secrets, networks, mounts and be added to a network.
2018-05-16 18:00:04 +02:00