Commit Graph

291 Commits

Author SHA1 Message Date
Chris Bednarski
ba59ebdfa9 Clarified package documentation for executor in response to #232 2015-10-08 00:02:46 -07:00
Chris Bednarski
b58fd56374 Merge pull request #221 from hashicorp/b-docker-tests-osx
Add skip detection for all docker tests
2015-10-06 17:53:47 -07:00
Alex Dadgar
ceb2a5f877 Fix alloc_dir error message 2015-10-06 16:38:06 -07:00
Chris Bednarski
2801e7d1e1 Fingerprint test should now behave correctly when the executor is not installed; fix some go vet issues 2015-10-06 16:33:02 -07:00
Alex Dadgar
50862f8e31 Switch to using BlkioWeight 2015-10-06 15:44:01 -07:00
Chris Bednarski
095dc9ae57 Updated Throttle Read/Write to match upstream changes in runc; now takes a list of ThrottleDevice structs instead of an int 2015-10-06 15:31:47 -07:00
Chris Bednarski
629a56ee70 This is needed for 1.4.2 compat; not sure what removed it 2015-10-06 00:32:34 -07:00
Chris Bednarski
28fef04b64 Add skip detection for all docker tests 2015-10-06 00:27:05 -07:00
Alex Dadgar
02fb48fbc1 Cleanup allocations when in dev mode 2015-10-04 13:36:03 -07:00
Alex Dadgar
7f359cfe99 update test to reflect not uppercasing passed env vars 2015-10-02 17:49:18 -07:00
Antoine POPINEAU
78f74c57ae Removed capitalization of user-defined envvars. 2015-10-02 17:46:55 -07:00
Antoine POPINEAU
962c509586 Moved the envvars logic to TaskEnvironment and TaskEnvironmentVariables(). Added tests there. 2015-10-02 17:46:55 -07:00
Antoine POPINEAU
9c17c0a1d8 Added a jobspec directive to specify envvars. Updated Docker driver to use them accordingly. 2015-10-02 17:46:55 -07:00
Alex Dadgar
3fa7c34e66 Add debug line when setting link speed to default 2015-10-02 17:32:17 -07:00
Alex Dadgar
d8f3bd26e6 Merges 2015-10-02 17:32:11 -07:00
Alex Dadgar
5294330cf7 go-fmt 2015-10-02 10:54:04 -07:00
Alex Dadgar
1c6861cf61 Merge pull request #199 from achanda/double_call
Fix two issues where settings were not taking effect
2015-10-02 10:52:41 -07:00
Abhishek Chanda
0ef12a5ef7 Make sure createHostConfig is called only once
The second call discards any mods to port binding or
network type

Fixes #185 and #196
2015-10-02 10:43:37 -07:00
Antoine POPINEAU
e3bcf4490b Merge branch 'master' into dev/net-fingerprint 2015-10-02 09:38:35 +02:00
Antoine POPINEAU
256d390789 Renamed all instances of Iface to NetworkInterface. 2015-10-02 09:29:18 +02:00
Alex Dadgar
96b6109bab Merge pull request #184 from achanda/docker_net
Enable setting networking mode for docker
2015-10-01 19:32:48 -07:00
Abhishek Chanda
ee2cd3bed0 Enable setting networking mode for docker
This patch enables setting networking mode for the docker
driver. This does not handle the `container` mode.
Closes #175
2015-10-01 18:52:41 -07:00
Antoine POPINEAU
2a08cbaeb2 Refactored code. 2015-10-01 21:16:39 +02:00
Antoine POPINEAU
f639ad10ab Comment some undocumented code. 2015-10-01 20:39:10 +02:00
Ryan Uber
8d9e54bcbb Merge pull request #153 from aldergren/master
Prevent df on linux from adding line breaks to output
2015-10-01 11:21:02 -07:00
Antoine POPINEAU
a70493f855 Forgot some error checking. 2015-10-01 17:33:40 +02:00
Antoine POPINEAU
7fc3f83672 Client config param added to specify net iface to use for fingerprinting. Added a Golang-native method for determining the interface IP address. 2015-10-01 17:31:47 +02:00
Orivej Desh
72c629d2c5 Update obsolete comments 2015-09-29 20:33:11 +00:00
Orivej Desh
d9ac1dab5d Fix "ifconfig not found" warning 2015-09-29 20:06:37 +00:00
Niklas Aldergren
9170448c7a Prevent df on linux from adding line breaks to output 2015-09-29 13:23:41 +02:00
Orivej Desh
359fe01cd8 Improve link speed fingerprint error reporting
With disconnected eth0 log output now looks like:

[WARN] fingerprint.network: Unable to parse IP in output of '/bin/ifconfig eth0'
[WARN] fingerprint.network: Unable to parse Speed in output of '/usr/sbin/ethtool eth0'

In a virtual machine:

[WARN] fingerprint.network: Unable to parse Speed in output of '/sbin/ethtool eth0'
[WARN] fingerprint.network: Unable to read link speed from /sys/class/net/eth0/speed
2015-09-28 23:34:25 +00:00
Mitchell Hashimoto
950fc7e495 client: fix windows build errors 2015-09-27 23:53:25 -07:00
Armon Dadgar
d054a06dc4 docker: check for missing unix socket 2015-09-27 17:49:58 -07:00
Alex Dadgar
90c2281a4e Better Sprintf 2015-09-27 17:41:43 -07:00
Alex Dadgar
6f8f5b164d Add environment package 2015-09-27 17:37:25 -07:00
Alex Dadgar
be406ea5d4 Fix args in test 2015-09-27 17:37:24 -07:00
Alex Dadgar
6d8a913242 ParseAndReplace args at the executor level 2015-09-27 17:37:24 -07:00
Alex Dadgar
17b2fb4600 Check err 2015-09-27 17:37:24 -07:00
Alex Dadgar
64ac893eb1 Set the allocdir correctly when using the linux executor 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