Commit graph

19 commits

Author SHA1 Message Date
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
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
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
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
Julian Schneider
b440ebc492 Add privileged option to docker container resource 2015-06-04 13:05:52 +02:00
Paul Hinze
9da91b1304 provider/docker: guard against nil NetworkSettings 2015-04-20 12:42:36 -05:00
Stephan Epping
8cbb3adce4 Add docker container network settings to output attribute 2015-04-20 12:41:35 -05:00
Nick Downs
2c7fb5fcc7 Added Docker links support to the docker_container resource. 2015-04-16 12:42:21 -07:00
Mitchell Hashimoto
75a5bedad0 providres/docker: cache client 2015-03-28 18:37:20 -07:00
Jeff Mitchell
77e1e6067e Initial commit. This adds the initial bits of a Docker provider.
Docker's API is huge and only a small subset is currently implemented,
but this is expected to grow over time. Currently it's enough to
satisfy the use cases of probably 95% of Docker users.

I'm preparing this initial pull request as a preview step for feedback.
My ideal scenario would be to develop this within a branch in the main
repository; the more eyes and testing and pitching in on the code, the
better (this would avoid a merge request-to-the-merge-request scenario,
as I figure this will be built up over the longer term, even before
a merge into master).

Unit tests do not exist yet. Right now I've just been focused on getting
initial functionality ported over. I've been testing each option
extensively via the Docker inspect capabilities.

This code (C)2014-2015 Akamai Technologies, Inc. <opensource@akamai.com>
2015-03-10 15:38:52 +00:00