Commit graph

65 commits

Author SHA1 Message Date
Nolan Woods
ccb7c6e8ab
fix: allow healthcheck to be computed as container can specify (#312)
Co-authored-by: Nolan Woods <nolan_w@sfu.ca>
2020-11-29 14:42:55 +01:00
dubo-dubon-duponey
786c88ea6b
fix: treat null user as a no-op (#318)
Closes #317 
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2020-11-29 14:39:09 +01:00
dubo-dubon-duponey
c904efdddc
fix: workdir null behavior (#320)
Closes #319 
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2020-11-29 14:38:33 +01:00
Nolan Woods
de7c6be58a
feat: adds security_opts to container config. (#308)
* Add security_opts to container config. Resolves #288
* Fix schema type
* Set security_opts to computed as docker modifies after apply
* Add label automatically added by TravisCI docker engine to bypass test failure.

Co-authored-by: Nolan Woods <nolan_w@sfu.ca>
2020-11-15 18:19:19 +01:00
Matt Keeler
cdc0b0a7e8
feat: adds support for init process injection for containers. (#300) 2020-11-11 16:14:49 +01:00
Manuel Vogel
78c0c326d1
Merge branch 'master' of git://github.com/juliosueiras/terraform-provider-docker into juliosueiras-master 2020-10-11 15:25:20 +02:00
Manuel Vogel
cdc0d912cc
Merge branch 'feat/ipv6-attrs' of git://github.com/ellsclytn/terraform-provider-docker into ellsclytn-feat/ipv6-attrs 2020-10-11 12:36:36 +02:00
Andrei Verdes
964e1f3e63
fix: port objects with the same internal port but different protocol trigger recreation of container (#274) 2020-08-02 18:27:43 +02:00
Shunsuke Suzuki
863fc4cb38
fix: panic to migrate schema of docker_container from v1 to v2 (#271). Closes #264
* Fix panic to migrate schema from v0 to v1
* Remove Computed setting from docker_container.env to suppress diff
* Remove Computed setting from docker_container.labels to suppress diff
2020-08-02 18:25:44 +02:00
Shunsuke Suzuki
d0b7c03eb8
Set Computed: true and separate files of resourceDockerContainerV1 (#272)
* Set `Computed: true` to some attributes to prevent force recreation
* Separate files of resourceDockerContainer and resourceDockerContainerV1
2020-08-02 17:31:59 +02:00
Shunsuke Suzuki
7803a1fd92
fix: prevent force recreate of container about some attributes (#269)
Closes #242 and #270 

* Prevent force recreate of container about some attributes
* Set Computed: true to some attributes
* command
* entrypoint
* env
* labels
* user
* log_opts
* dns
* dns_opts
* dns_search

* Remove the default value of container's log_driver and set `Computed: true`

https://github.com/terraform-providers/terraform-provider-docker/issues/270

* Remove the comment out and improve the code comment
2020-06-05 17:10:11 +02:00
Ellis Clayton
576346f916
feat: Expose IPv6 properties as attributes
Docker IPv6 addresses can be set automatically, provided the Docker
network in use is set up for it. In this situation, it can be useful to
be able to access the IPv6 properties as attributes.

Resolves https://github.com/terraform-providers/terraform-provider-docker/issues/265
2020-05-02 13:04:16 +10:00
stephenliberty
5ad4646537
feat: allow use of source file instead of content / content_base64 (#240)
Closes #239 

* Added a 'source' and 'source hash' which will reference a file / file hash to load into the container
* Add to docs
* Adding a test, cleaning up another one
2020-02-03 21:44:46 +01:00
Shunsuke Suzuki
bed25bf419
feat: supports to update docker_container (#236)
According to the docs
* https://docs.docker.com/engine/api/v1.40/#operation/ContainerUpdate
* https://godoc.org/github.com/docker/docker/client#Client.ContainerUpdate
2020-02-02 06:39:28 +01:00
Shunsuke Suzuki
33c17570c9
feat: support to import some docker_container's attributes (#234) 2020-02-01 16:15:36 +01:00
Manuel Vogel
2c8e63b44d
Merge branch 'xf/labels-iface' of git://github.com/xanderflood/terraform-provider-docker into xanderflood-xf/labels-iface 2019-12-17 17:28:09 +01:00
Manuel Vogel
434ca8c64b
feat: adds import for resources (#196)
Closes #99. Adds import for config service volume
2019-11-23 14:42:05 +01:00
Xander Flood
d878091f95 refactor migration code and fix a couple tests 2019-11-14 17:44:58 -05:00
Xander Flood
b9d61dc535 some more migration 2019-11-14 17:10:48 -05:00
Xander Flood
e391230447 migrate the container resource 2019-11-10 15:15:42 -05:00
dubo-dubon-duponey
4d3eb6ca33 Add support for readonly containers (#206)
Closes #203 

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2019-10-25 12:14:09 +02:00
dubo-dubon-duponey
a36a58b792 Remove logging drivers white-list (#209)
See #207 for discussion and fixes #208

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2019-10-14 19:37:13 +02:00
dubo-dubon-duponey
cc95649930 Updated logdrivers to match docker officially supported options (#207)
Closes #204 

See https://docs.docker.com/config/containers/logging/configure/ section “Supported“ logging drivers

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2019-10-13 20:38:03 +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
Manuel Vogel
2ec6bba9b7
fix: binary upload as base 64 content (#194)
Closes #48 
* feat: adds new content_base64 property for upload
* feat: adds logic for base64 content processing
* test: for new upload property
* docs: for new upload property
* docs: adapts container upload to aws example docs
* fix: adds a comment for non-working conflicts with within lists
* docs: updates for non-supported conflict within lists and sets
* tests: updates notes on disabled checks
* fix: validation for container upload configs
* docs: validation for container upload configs
* fix(test): add must not run flag for invalid upload config container
2019-10-07 23:00:57 +02:00
Srinidhi Kaushik
11fd002b15 Add shm_size' attribute for docker_container' resource. (#190)
Closes #164 
* Adds `shm_size' attribute for `docker_container' resource.
* Updates test cases.
* Updates documentation.
2019-10-06 11:16:27 +02:00
dubo-dubon-duponey
007a6db130 Add support for group-add (#192)
Fixes #191

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2019-10-06 11:13:24 +02:00
Manuel Vogel
36567a2a9b
feat: add container ipc mode. (#182)
Closes #12
2019-09-23 20:11:59 +02:00
Manuel Vogel
42031f27fb
feat: adds container working dir (#181)
Closes #146
2019-09-23 19:41:20 +02:00
Matthew Burtless
42354a7e62 Add support for sysctls (#172) 2019-08-15 17:23:39 +02:00
Sid Verma
53f74755e4 Fix no-op in container when all 'ports' blocks are deleted. (#168)
* docker_container Fix no-op when all port blocks are deleted
* Update changelog for v2.1.1
* Closes #167
2019-08-02 00:16:50 +02:00
Manuel Vogel
79a2b07a4a
Upgrade to go 1.11 2019-05-26 12:38:00 +02:00
Sean Bryant
a7b3f314d6 docker_container resource mounts support (#147)
* Add mounts support to docker container resource
* Source is not a required mount attribute. 
* Add tmpfs map support to docker container resource
* Add tests around tmpfs map
2019-05-26 11:59:29 +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
aab8fac508
provider: Ensured Go 1.11 in TravisCI and README
provider: Run go fix
provider: Run go fmt
provider: Encode go version 1.11.5 to .go-version file
2019-03-11 18:19:29 -04:00
Seb Patane
1c68029ce9 Normalize a blank string to 0.0.0.0 (#128)
Works around a problem in Windows on Docker, which doesn't support providing an IP to to bind to for ports
2019-03-07 10:15:42 +01:00
Manuel Vogel
1ac859bd81
Fix container ports issue for asc ordering (#115)
* Attempts to fix container ports issue by converting list to a set.
* Revert "Attempts to fix container ports issue by converting list to a set." This reverts commit 5660759875ca65e2b8c5b9aa8b25cc3ff7eee2d9.
* adds migration state func for container. Suppresses diff for port migration
* Updates changelog for v1.1.1
2019-03-05 15:55:17 +01:00
Alex Pilon
a7d6b57fbd
provider: Require Go 1.11 in TravisCI and README
provider: Run go fix
provider: Run go fmt
2019-01-07 18:05:15 -05:00
Manuel Vogel
aaee1b5c47
Adds container logs option. Closes #108. 2018-10-29 07:07:37 +01:00
Manuel Vogel
bc56f62190
Adds container static IPv4/IPv6 address. Marks network and network_alias as deprecated. Closes #105. 2018-10-29 06:36:21 +01:00
Boris HUISGEN
1bc69158d2 Add logs attribute to get container logs when attach option is enabled
Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
2018-10-28 21:52:42 +01:00
Manuel Vogel
e92eae80ab
Adds cpu_set to containers. Closes #41 2018-10-28 09:12:38 +01:00
Manuel Vogel
c04e51f379
Merge branch 'd-cpuset-added' of git://github.com/sunthera/terraform-provider-docker into sunthera/d-cpuset-added 2018-10-28 08:55:29 +01:00
Manuel Vogel
c9d9f08d54
Merges master 2018-10-27 10:09:03 +02:00
Manuel Vogel
f689619b2d
Adds container healthcheck. 2018-10-26 07:37:45 +02:00
Manuel Vogel
36a92c5e89
bla 2018-10-25 09:50:33 +02:00
Boris HUISGEN
d4032c8939 Add rm and attach options to execute short-lived containers (#106)
* Adds rm, attach options and exit_code attribute. Closes #43 
* Updates documentation
2018-10-25 08:01:38 +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
Boris HUISGEN
49e35c46b2 Add container healthcheck
Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
2018-10-19 21:52:42 +02:00
Boris HUISGEN
661b8580b8 Add capability to not start container (create only)
Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
2018-10-19 00:40:03 +02:00