Commit Graph

108 Commits

Author SHA1 Message Date
Armon Dadgar
d054a06dc4 docker: check for missing unix socket 2015-09-27 17:49:58 -07:00
Alex Dadgar
6f8f5b164d Add environment package 2015-09-27 17:37:25 -07:00
Alex Dadgar
6d8a913242 ParseAndReplace args at the executor level 2015-09-27 17:37:24 -07:00
Alex Dadgar
75f93ce9fb Pull task environments into their own type to be reusable across drivers and executors 2015-09-27 17:37:24 -07:00
Alex Dadgar
148e415f43 Remove cruft from rebase 2015-09-27 17:37:24 -07:00
Alex Dadgar
c555c70eeb merge fixes 2015-09-27 17:37:24 -07:00
Chris Bednarski
bc3504a7d0 Correct implementation of config check for container and image cleanup; moved into Start and Open because handle does not have the config object 2015-09-27 13:59:38 -07:00
Chris Bednarski
24c5fc9cc5 Merge branch 'master' into f-docker-config-cleanup 2015-09-26 21:52:02 -07:00
Chris Bednarski
51bf0162d0 Add configuration option for whether Nomad will clean up containers and images when they are no longer used 2015-09-26 18:53:15 -07:00
Chris Bednarski
bb9fbf8f22 Add all containers when searching for images that are still in used, since the container using the image may be stopped 2015-09-26 18:51:36 -07:00
Chris Bednarski
b0c1b04264 Log an info when an image can't be removed because it's still in use 2015-09-26 00:34:57 -07:00
Chris Bednarski
30fd526766 Use env.Get, remove sha256 checks, and change from regexp to strconv to test for int 2015-09-25 23:55:01 -07:00
Chris Bednarski
5d4d044a6f Add docker 'command' to docs; cleanup some comments 2015-09-25 23:28:23 -07:00
Chris Bednarski
928fe86553 Replace docker version and docker ps with native calls; no more exec! 2015-09-25 23:13:40 -07:00
Chris Bednarski
6c5ddb3076 Docker kill now exits with an error, as expected 2015-09-25 22:43:19 -07:00
Chris Bednarski
784d0e9e15 Go native for docker API calls 2015-09-25 20:01:03 -07:00
Chris Bednarski
6882f20b9f Put that back! 2015-09-25 18:38:41 -07:00
Chris Bednarski
723b55c049 Merge branch 'master' into b-docker-fixes
Conflicts:
	client/driver/docker_test.go
	client/driver/java_test.go
	client/driver/qemu_test.go
2015-09-25 18:35:23 -07:00
Chris Bednarski
cf0440dbe3 Improve handling of tagged docker images
- Converted Start() to use docker native client throughout
- Better handling of latest vs. tagged images
    - We can now support multiple versions of an image
    - We will now not download a tag if we already have it
2015-09-25 18:22:10 -07:00
Alex Dadgar
04094cfb40 Small test cleanup 2015-09-25 17:55:29 -07:00
Chris Bednarski
0f6e60c7aa Added a failing test case for multiple docker tags 2015-09-25 17:38:07 -07:00
Chris Bednarski
6b59a8235e Added docker test to spin up 3 containers at the same time 2015-09-25 17:35:33 -07:00
Chris Bednarski
f2dd5cac18 Added guards to tests so we can more gracefully degrade the test suite when thing are not installed 2015-09-25 16:49:26 -07:00
Chris Bednarski
559462b49f Added basic resources to exec/java tests so each test has cpu, ram, and network 2015-09-25 16:49:18 -07:00
Alex Dadgar
8a5e65e27a Merge qemu test 2015-09-25 16:49:14 -07:00
Alex Dadgar
9caa7ac077 Mount shared alloc dir, modified API and tests 2015-09-25 16:46:41 -07:00
Alex Dadgar
38460ca653 AllocDirBuilder that creates the alloc directory structure 2015-09-25 16:46:41 -07:00
Armon Dadgar
122c14965a Merge pull request #101 from hashicorp/f-qemu-network-update
driver/qemu: Use Restricted Ports, additional port forwarding
2015-09-25 16:36:46 -07:00
Clint Shryock
ce732cede4 Fix bad copy-paste from refactoring 2015-09-25 08:36:46 -05:00
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
Clint Shryock
e1427ec835 re-order the resources check and don't bail if no ports requested 2015-09-24 14:32:54 -05:00
Chris Bednarski
77fb433a8e Add test case for PopulateEnvironment 2015-09-24 00:17:33 -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
Clint Shryock
b0f09b5312 driver/qemu: Setup multiple port forwards 2015-09-23 23:15:28 -05: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
07ab1d853d Merge branch 'master' into f-port-configs 2015-09-23 15:31:00 -07:00
Chris Bednarski
592b45d93a Docs and remove uppercase since it's checked at the config parse step 2015-09-23 15:28:58 -07:00
Armon Dadgar
e1003b46ac Merge pull request #97 from hashicorp/f-qemu-driver-docs
Basic Qemu docs
2015-09-23 14:37:56 -07:00
Clint Shryock
7580a0d3a0 Basic Qemu docs 2015-09-23 14:44:49 -05:00
Chris Bednarski
18cb6e19af Changed fmt for CPU to integer 2015-09-23 12:19:46 -07:00
Clint Shryock
9fb704e686 Update Java docs on how Java is detected 2015-09-23 14:16:43 -05:00
Clint Shryock
92bfe163da start the Qemu docs 2015-09-23 13:58:42 -05:00
Chris Bednarski
e3cd0ad21a Merge branch 'master' into f-port-configs 2015-09-23 11:57:12 -07:00
Chris Bednarski
0576c4baaf Replaced List with Map 2015-09-23 11:56:36 -07:00
Chris Bednarski
c2eb358cfc Fix some printf tokens 2015-09-22 23:43:05 -07:00