Commit Graph

86 Commits

Author SHA1 Message Date
Alex Dadgar
04094cfb40 Small test cleanup 2015-09-25 17:55:29 -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
Chris Bednarski
e47a244046 Added environment variables to docker 2015-09-22 23:12:24 -07:00
Chris Bednarski
3cf1d33626 Check for nils before accessing data 2015-09-22 23:11:55 -07:00
Chris Bednarski
2c352e3ff8 Added environment variables to Java 2015-09-22 22:36:10 -07:00
Chris Bednarski
2007a14497 Pass dynamic ports to the exec driver via environment variables 2015-09-22 22:33:29 -07:00
Chris Bednarski
db4e9c93bf Removed comment that's no longer relevant 2015-09-22 20:11:07 -07:00
Alex Dadgar
3c12f4bd20 Fix qemu check and add debug lines when a driver is disabled 2015-09-22 17:36:44 -07:00
Alex Dadgar
33381f0fb8 Update Qemu Fingerprint check 2015-09-22 17:12:52 -07:00
Alex Dadgar
b43e262923 Disable exec/java/qemu when non-root on non-windows OSes 2015-09-22 16:32:05 -07:00
Alex Dadgar
5ac6c3b73d Linux executor with cgroup isolation support 2015-09-21 09:08:57 -07:00
Clint Shryock
e434d938af executor/linux: Add UUID for the name, return error on failure to apply 2015-09-21 09:08:57 -07:00
Clint Shryock
f65406009f exec/linux: move Limit to after Start 2015-09-21 09:08:57 -07:00
Clint Shryock
15e64312b7 spike on adding cgroups 2015-09-21 09:08:57 -07:00
Chris Bednarski
85744b0661 Merge branch 'master' into f-executor 2015-09-15 19:03:52 -07:00
Chris Bednarski
a5512c22e9 Rename exec package to executor so it works better with goimports; fixes for Java driver 2015-09-15 14:03:03 -07:00
Chris Bednarski
5eb3354678 Update Java driver to use Executor 2015-09-15 13:45:48 -07:00
Chris Bednarski
b3ef6930b8 Updated exec driver to use nomad/client/exec 2015-09-15 13:11:56 -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
4b74613d9d Relax Qemu version regexp to accomodate build identifier in the version command 2015-09-09 18:39:40 -07:00
Chris Bednarski
0e00b5fbf7 Updated Qemu and tests to use DriverContext 2015-09-09 18:38:52 -07:00