Commit Graph

233 Commits

Author SHA1 Message Date
Alex Dadgar
3906dc1afc Fix client init logging and test 2015-09-25 18:12:11 -07:00
Alex Dadgar
04094cfb40 Small test cleanup 2015-09-25 17:55:29 -07:00
Alex Dadgar
57ade13fc8 Fix comments 2015-09-25 16:49:19 -07:00
Alex Dadgar
df8103dfe9 Log the alloc and state directory on Client Init() 2015-09-25 16:49:19 -07:00
Alex Dadgar
2ee8b22ddb Use host file/dir permissions when embedding 2015-09-25 16:49:19 -07:00
Alex Dadgar
0dd0bf39fa Destroy allocdirs in task runner tests 2015-09-25 16:49:19 -07:00
Alex Dadgar
6d7afcd1ff Skip non-regular files in embedding and comment on the chrootEnv map 2015-09-25 16:49:19 -07:00
Alex Dadgar
66fd821af5 Change allocdir variable name for clarity 2015-09-25 16:49:19 -07:00
Alex Dadgar
23c726a055 Windows shouldn't do anything on unmount 2015-09-25 16:49:19 -07:00
Alex Dadgar
84e6601db8 Update CPU limit to be an int 2015-09-25 16:49:18 -07:00
Alex Dadgar
e5eb55c805 Only unmount once 2015-09-25 16:49:18 -07:00
Alex Dadgar
099e9de211 Fix cgroup isolation 2015-09-25 16:49:18 -07:00
Alex Dadgar
e8bd1a3df4 Fix embed non-existent test 2015-09-25 16:49:18 -07:00
Chris Bednarski
5c4bb5d53e Added errNoResources to executor package; return this when Limit is called with nil argument 2015-09-25 16:49:18 -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
aba801d68e Linux Embed and AllocDir unit tests 2015-09-25 16:46:41 -07:00
Alex Dadgar
7a5f6ea8e8 Fix function header 2015-09-25 16:46:41 -07:00
Alex Dadgar
a934701857 Embed interface 2015-09-25 16:46:41 -07:00
Alex Dadgar
dfd0efbacd Client init rebase 2015-09-25 16:46:41 -07:00
Alex Dadgar
66fe1294da Changed file names so it builds correctly 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
Ryan Uber
929de526b9 client: support modifying the servers list 2015-09-24 20:16:47 -07:00
Chris Bednarski
7aacfd530d Merge pull request #108 from hashicorp/b-netmap-crash
Fix crash in task_runner tests
2015-09-24 16:27:54 -07:00
Chris Bednarski
0923fafc7b All the TestTaskRunner* tests want this 2015-09-24 16:00:36 -07:00
Chris Bednarski
f765fa4d1a Initialize reserved ports 2015-09-24 15:55:41 -07: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
aee65a3c12 Missed a set of parens 2015-09-24 15:40:32 -07:00
Chris Bednarski
f61445c6ed Initialize reserved ports in task_runner 2015-09-24 15:37:43 -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
Armon Dadgar
f9ae0a2461 Merge pull request #77 from hashicorp/f-network-fingerprint
Network Fingerprinting
2015-09-23 14:36:29 -07:00
Clint
1f0cf5f910 Merge pull request #95 from hashicorp/f-java-driver-docs
Add some basic docs for the Java Driver
2015-09-23 15:59:33 -05: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