Commit graph

24 commits

Author SHA1 Message Date
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
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
518f7b6ffa providers/docker: default cert_path to non-nil so input isn't asked 2015-04-09 09:49:03 -07:00
Mitchell Hashimoto
976410e44d providers/docker: ping docker server on startup 2015-03-28 19:06:48 -07:00
Mitchell Hashimoto
60c19680d7 providers/docker: make container test better 2015-03-28 18:45:36 -07:00
Mitchell Hashimoto
75a5bedad0 providres/docker: cache client 2015-03-28 18:37:20 -07:00
Mitchell Hashimoto
935647c4bc providers/docker: container acceptance tests 2015-03-27 15:33:17 -07:00
Mitchell Hashimoto
faa9dc47f5 providers/docker: docker_image acceptance test 2015-03-27 15:22:33 -07:00
Mitchell Hashimoto
cc79025a2e providers/docker: support DOCKER_CERT_PATH 2015-03-27 15:18:52 -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