Commit graph

60 commits

Author SHA1 Message Date
Rhyas
91cfbf9b4e Fix Image Destroy bug. #3609 #3771 2016-03-22 22:56:51 -06:00
Raphael Randschau
f7936ad8b3 Fix docker test assertions regarding latest tag 2016-03-06 16:45:06 +01:00
Verdoïa Laurent
193c75b164 provider/docker: #2417 Add support for restart policy unless-stopped 2016-02-26 12:38:31 +09:00
Colin Hebert
292c493762 Stop providing the hostConfig while starting the container 2016-02-13 22:04:51 +11:00
Paul Hinze
f5efe52f08 Merge pull request #5046 from tpounds/use-built-in-schema-string-hash
Use built-in schema.HashString instead of custom hash functions.
2016-02-12 07:58:34 -06:00
Sebastiaan van Steenis
eab6478caf Change default DOCKER_HOST value, fixes #4923 2016-02-10 20:21:17 +01:00
Trevor Pounds
5e0b6e3750 Use built-in schema.HashString. 2016-02-07 16:29:34 -08:00
Colin Hebert
f763cd8b35 remove extra parenthesis 2016-01-31 08:49:35 +11:00
Colin Hebert
edd907c043 Catch potential custom network errors in docker 2016-01-31 08:31:30 +11:00
James Nugent
50d8d5773f provider/docker: Mount named volumes in containers
This adds support for specifying named volumes for mounting in a
`docker_container` resource.
2016-01-15 21:59:33 +00:00
Colin Hebert
8bf14ffeb7 provider/docker: Add docker_volume resource 2016-01-15 17:34:53 +00:00
James Nugent
75e1fee5fa provider/docker: Tweak and test host_entry
This adds acceptance tests for specifying extra hosts on Docker
containers. It also renames the repeating block from `hosts` to `host`,
which reads more naturally in the schema when multiple instances of the
block are declared.
2016-01-15 03:02:20 +00:00
James Nugent
ed0a250129 Merge branch 'docker-extra-hosts' of https://github.com/paulbellamy/terraform into paulbellamy-docker-extra-hosts 2016-01-14 15:48:51 +00:00
James Nugent
ed3a43a2fe provider/docker: Fix flaky integration tests
Asserting on the value of `latest` on an image is prone to failing
because of new images being pushed upstream. Instead of asserting on a
hash, we assert that the value matches a regular expression for the
format of an image hash.
2016-01-14 09:12:05 +00:00
James Nugent
f770ba6120 Merge branch 'docker_network' of https://github.com/ColinHebert/terraform into ColinHebert-docker_network 2016-01-14 07:01:03 +00:00
Colin Hebert
bca87ec0ff Add Elem and Set to the network set 2016-01-05 03:46:24 +01:00
Colin Hebert
c823565d5d Fix typo 2016-01-04 21:03:53 +01:00
Colin Hebert
99f83853f7 Add the networks entry 2016-01-04 20:58:54 +01:00
Colin Hebert
94b54c2a30 Add support of custom networks in docker 2016-01-02 12:20:55 +01:00
Colin Hebert
1d60a86a14 Convert v to string 2016-01-01 10:12:43 +01:00
Colin Hebert
a44b873992 Add network_mode support to docker 2016-01-01 09:57:21 +01:00
stack72
3f3e9fab7d Fixing yet more gofmt errors with imports 2015-12-21 09:54:24 +00:00
Paul Bellamy
1c8e4c81e4 provider/docker: Inline ports and volumes schemas for consistency 2015-12-03 10:51:59 +00:00
Paul Bellamy
7bfa5f90b9 provider/docker: Add hosts parameter for containers 2015-12-03 10:32:41 +00:00
James Nugent
aa872d07c6 provider/docker: locate container via ID not name
This reapplies the patch mentioned in #3364 - for an unknown reason the
diff there was incorrect.
2015-12-02 17:27:24 -05:00
James Nugent
5e1c8c88f5 provider/docker: Refer to a tag instead of latest
This should make tests more stable going forward. Also switch out the
image used from Ubuntu to Alpine Linux to reduce required download size
during test runs.
2015-12-02 15:08:16 -05:00
James Nugent
f9601a6754 Merge pull request #3761 from ryane/f-provider-docker-improvements
provider/docker: support additional arguments for `docker_container` resource
2015-12-02 11:46:29 -05:00
Paul Hinze
c0c51b84ef provider/docker: fix image test
there's a new latest in town
2015-11-20 09:58:03 -06:00
ryane
5a5f5ff988 docker: improve validation of runtime constraints 2015-11-09 19:36:23 -05:00
ryane
f1da40e648 include hostconfig when creating docker_container 2015-11-04 15:52:16 -05:00
ryane
f6e4608a35 fix resource constraint specs 2015-11-04 15:52:16 -05:00
ryane
38b1e1ce26 support for log driver + config in docker container 2015-11-04 15:52:16 -05:00
ryane
8f9b151811 add label support to docker container resource 2015-11-04 15:52:15 -05:00
ryane
38eec5fbc7 add basic runtime constraints to docker_container 2015-11-04 15:52:15 -05:00
ryane
311b164d56 restart policy support for docker_container 2015-11-04 15:52:15 -05:00
ryane
4b257e6b2b entrypoint support for docker_container resource 2015-11-04 15:52:15 -05:00
Panagiotis Moustafellos
ce511d53db removed extra parentheses 2015-10-08 15:48:04 +03:00
stack72
f229be7a60 Gofmt change for resource docker_image test 2015-10-08 09:47:50 +01:00
Matti Savolainen
4bb21500a9 Fix Repository attribute in docker client PullOptions for private registries. 2015-07-03 12:58:05 +03:00
Paul Hinze
d66d85b5e2 provider/docker: [tests] change images
use a base image with a long running process - fixes container tests
2015-06-29 16:09:05 -05:00
Jeff Mitchell
8b4e37a42c As discussed on the issue, remove the hard-coded delay on startup in
favor of attempting to detect if the initial container ever enters
running state, and erroring out if not. It will re-check the container
once every 500ms for 15 seconds total; future work could make that
configurable.
2015-06-25 15:11:00 +00:00
Jeff Mitchell
fc6ef37d95 Fix a serious problem when using links.
Links cause there to be more than one name for a container to be
returned. As a result, only looking at the first element of the
container names could cause a container to not be found, leading
Terraform to remove it from state and attempt to recreate it.
2015-06-25 14:40:03 +00:00
Jeff Mitchell
40fed60ec4 When linking to other containers, introduce a slight delay; this lets
the Docker API get those containers running. Otherwise when
you try to start a container linking to them, the start command
will fail, leading to an error.
2015-06-25 14:40:03 +00:00
Mitchell Hashimoto
c2dc6c8234 fmt 2015-06-23 22:31:24 -07:00
Jeff Mitchell
383d50b35d This puts the image parsing code (mostly) back to how it was before. The
regex solution is extremely complex, which makes it hard to debug and
understand; the original switches and
commenting lay out the various cases in a straightforward fashion. Plus,
implementing namespace/repo support in the original code was a simple
strings.Join call.
2015-06-12 19:36:52 +00:00
Julian Schneider
b440ebc492 Add privileged option to docker container resource 2015-06-04 13:05:52 +02:00
Paul Hinze
1c80ff0ac9 provider/docker: update image sha
Should eventually see if there's a way to rework this so it's less
brittle. But for now, we band-aid!
2015-05-07 09:50:16 -05:00
Jeff Thompson
2659e028c0 Added support for more complexly images repos such as images on a private registry that are stored as namespace/name 2015-05-05 23:22:09 +00:00
Paul Hinze
d9b3a99ef6 provider/docker: fmt on container resource 2015-04-20 14:18:46 -05:00
Paul Hinze
9da91b1304 provider/docker: guard against nil NetworkSettings 2015-04-20 12:42:36 -05:00