Commit Graph

1023 Commits

Author SHA1 Message Date
Alex Dadgar
7ab84c2862 Merge pull request #165 from achanda/rkt
Add a driver for rkt
2015-10-07 16:00:21 -07:00
Abhishek Chanda
9140796a49 Run gofmt 2015-10-07 22:24:16 +00:00
Abhishek Chanda
43a8a1af96 Add an optional exec parameter to task config
This overrides the default exec command in the ACI
2015-10-07 15:15:36 -07:00
Daniel Imfeld
a95cedbfe7 Parse information for all GCE network interface.
* No longer setting Device name in the network interface since we can't
match up the info here with real device names.
* Add attributes for all external IPs if more than one exists.
2015-10-07 13:35:20 -05:00
Abhishek Chanda
558333dce9 Use Run for adding trust prefix
The trust needs to be added before anything can progress
2015-10-07 11:15:17 -07:00
Daniel Imfeld
79531fe17c Compact tags and attribute reading code. 2015-10-07 12:39:23 -05:00
Ivo Verberk
f9be8ede8f Fix vet warnings 2015-10-07 12:26:58 +02:00
Daniel Imfeld
f985ef45fa TestNetworkFingerprint_notAWS passes even when actually on AWS 2015-10-06 21:21:42 -05:00
Daniel Imfeld
a55bdd3430 NonXXX tests should pass when actually running in their respective environments.
Fixes #224
2015-10-06 21:16:28 -05:00
Chris Bednarski
8b0c18db5f Remove panic -- client is nil when there is an error 2015-10-06 19:09:59 -07:00
Chris Bednarski
d7023f8f71 Merge branch 'master' into b-docker-port 2015-10-06 17:54:32 -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
Chris Bednarski
f3b5d553ad Support boot2docker or VM for dev/test 2015-10-06 17:53:05 -07:00
Chris Bednarski
90fbfd5de9 Merge branch 'master' into b-docker-port 2015-10-06 16:38:49 -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
Chris Bednarski
127dc127b2 Use docker.NewClient; move dockerClient before it's used 2015-10-06 16:26:31 -07:00
Abhishek Chanda
4b216736ab Use Start to run commands
Run blocks
2015-10-06 15:56:39 -07:00
Abhishek Chanda
5c76624f2e Add prefix to all message logs for rkt driver 2015-10-06 15:56:39 -07:00
Abhishek Chanda
bedee8cd8f Fix function call
Make it skip if rkt is not installed
2015-10-06 15:56:39 -07:00
Abhishek Chanda
97c2172108 Register rkt as a built in driver 2015-10-06 15:56:39 -07:00
Abhishek Chanda
00556d4b3b Add missing import and remove unsued one 2015-10-06 15:56:39 -07:00
Abhishek Chanda
740187e669 Do not run containers interactively 2015-10-06 15:56:39 -07:00
Abhishek Chanda
0bc00223ed Do not register to the metadata service 2015-10-06 15:56:39 -07:00
Abhishek Chanda
61b4be2389 Remove a stray comment 2015-10-06 15:56:39 -07:00
Abhishek Chanda
0e659aefe7 Fix constructing the handle 2015-10-06 15:56:39 -07:00
Abhishek Chanda
481ba6ecb6 Add a test fort he rkt driver 2015-10-06 15:56:39 -07:00
Abhishek Chanda
f893fb7c35 Fix name of prefix 2015-10-06 15:56:39 -07:00
Abhishek Chanda
6a2a938b4e Add a driver for rkt
rkt docs here
https://github.com/coreos/rkt
2015-10-06 15:56:39 -07:00
Alex Dadgar
50862f8e31 Switch to using BlkioWeight 2015-10-06 15:44:01 -07:00
Chris Bednarski
7017276df6 Merge branch 'docker-use-environment' of https://github.com/carlosdp/nomad into b-docker-port 2015-10-06 15:36:06 -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
Daniel Imfeld
983e8516e4 Consolidate GCEMetadataClient into EnvGCEFingerprint
This allows easier reuse of the same client across multiple functions.
2015-10-05 13:13:25 -05:00
Daniel Imfeld
69ec26e952 And add a comment to the constant. 2015-10-05 12:59:02 -05:00
Daniel Imfeld
458adfa124 Use a constant for the default GCE metadata URL 2015-10-05 12:57:45 -05:00
Daniel Imfeld
444d6f63e6 isAWS should return false on GCE
GCE and AWS both expose metadata servers, and GCE's 404 response
includes the URL in the content, which maatches the regex. So,
check the response code as well and if a 4xx code comes back,
take that to meanit's not AWS.
2015-10-05 00:42:34 -05:00
Daniel Imfeld
9faa553068 Fingerprinting code for GCE nodes
This reads the following:

* hostname
* instance id
* machine-type
* zone
* internal IP
* external IP (if any)
* tags
* attributes

Atributes are placed under the platform.gce.attr.* hierarchy.

Tags are set up as platform.gce.tag.TagName=true.
2015-10-05 00:40:43 -05:00
Alex Dadgar
02fb48fbc1 Cleanup allocations when in dev mode 2015-10-04 13:36:03 -07:00
Carlos Diaz-Padron
078a025725 Use environment to connect to Docker by default
Uses the environment definition for docker by default. Docker will
default to the unix/tcp socket if the environment is not set.
2015-10-04 12:59:54 -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