Chris Bednarski
59a1ed34fa
Merge pull request #104 from hashicorp/f-docker-static-ports
...
Add static (reserved) ports for docker
2015-09-24 15:44:41 -07:00
Chris Bednarski
4dc1fb351b
Get only one version of a docker container
2015-09-24 14:07:28 -07:00
Chris Bednarski
29020ab263
Rename containerConfigForTask to createContainer to mirror the docker api call; other helper functions will follow this convention too
2015-09-24 00:00:46 -07:00
Chris Bednarski
1d4d349e92
Rename containerConfig to hostConfig since there are two types of container configs
2015-09-23 23:57:04 -07:00
Chris Bednarski
e9b7287935
Added static / reserved port allocations to docker
2015-09-23 23:45:34 -07:00
Chris Bednarski
50d0a852eb
Format as string instead of casting to string
2015-09-23 19:29:53 -07:00
Chris Bednarski
084e6f455d
Support mapped ports and labelled ports for docker
2015-09-23 18:19:01 -07:00
Chris Bednarski
5449c8290b
Add docker ports; change to uppercase examples and tests
2015-09-23 18:01:08 -07:00
Chris Bednarski
e47a244046
Added environment variables to docker
2015-09-22 23:12:24 -07:00
Chris Bednarski
db4e9c93bf
Removed comment that's no longer relevant
2015-09-22 20:11:07 -07:00
Chris Bednarski
3c1bb50da3
Change error to err to be consistent with other usage
2015-09-11 10:26:33 -07:00
Chris Bednarski
3862b0adb4
Fix typos
2015-09-10 11:35:03 -07:00
Chris Bednarski
0e7ebb7447
Change panic to a more helpful message
2015-09-09 19:04:06 -07:00
Chris Bednarski
6445e14755
Merge branch 'f-driver-config' into f-docker-resource-constraints
2015-09-09 18:47:35 -07:00
Chris Bednarski
8d4d9645d8
Replace logging and config with DriverContext, which allows us to expand the dependency injection without changing the interface
2015-09-09 18:06:23 -07:00
Chris Bednarski
44f04313e2
Add logger to the dockerHandle created by Open()
2015-09-09 13:43:28 -07:00
Chris Bednarski
0f57a2c077
Cleanup based on PR feedback
...
- Add validation that Resources.MemoryMB and Resources.CPU have non-zero values
- Change log calls to use logger whenever possible
- Change log format to add colon after driver.docker
2015-09-09 13:35:10 -07:00
Chris Bednarski
92ca9c4679
Added preliminary resource constraints for docker; CPU and Memory
2015-09-09 01:08:31 -07:00
Chris Bednarski
f911a24837
Added config to drivers; needed for docker driver to get the socket endpoint
2015-09-08 12:43:02 -07:00
Chris Bednarski
abafe3b7c4
Removed debug logging
2015-09-03 21:08:14 -07:00
Chris Bednarski
cedd26851e
Added tests for docker, improved logging, and fixed a few bugs
2015-09-03 21:00:16 -07:00
Chris Bednarski
fca3881657
Added initial implementation for the docker driver; tests pending
2015-09-03 12:35:22 -07:00