Chris Bednarski
f9ee85c669
That's not a declaration
2015-11-17 14:27:58 -08:00
Chris Bednarski
0e0d96cec9
Remove restrictions from docker networking mode; we assume users know what they are doing
2015-11-17 14:25:10 -08:00
Chris Bednarski
bebf2b0689
Merge branch 'master' into f-docker-cleanup
2015-11-17 14:20:29 -08:00
Alex Dadgar
68fbe09664
Merge branch 'master' of https://github.com/hashicorp/nomad
2015-11-17 12:04:10 -08:00
Alex Dadgar
baeea15aa2
Avoid calling destroy twice
2015-11-17 12:03:59 -08:00
Antonio Fernández
1e1be3c082
allow to set labels on docker containers
2015-11-17 14:12:49 +01:00
Carlos Diaz-Padron
c5304c3e6a
Add hostname parameter to Docker driver
2015-11-16 22:44:44 -08:00
Chris Bednarski
5a29279cec
Improve logging and DRY some of the port mapping code
2015-11-16 19:55:49 -08:00
Chris Bednarski
efa52ba42b
Add missing param and error in the missing case so default will work as expected
2015-11-16 19:55:08 -08:00
Chris Bednarski
f7784209f4
Added config reader for booleans
2015-11-16 19:30:37 -08:00
Diptanu Choudhury
b8d468f5ad
Addressed some review comments
2015-11-16 22:29:06 -05:00
Chris Bednarski
640337547a
go fmt
2015-11-16 16:23:03 -08:00
Chris Bednarski
28757ca175
Change logging port as %d to logging port.Value
2015-11-16 16:05:28 -08:00
Chris Bednarski
1d1e4bdd08
Merge branch 'master' into f-port-labels
2015-11-16 16:02:38 -08:00
Alex Dadgar
95222f6860
Change SetExitMessage from taking a string to an error
2015-11-16 15:14:21 -08:00
Alex Dadgar
9aa9a2244b
Use loop not recursion
2015-11-16 15:14:21 -08:00
Alex Dadgar
b692bcd0b4
Fix the capacity
2015-11-16 15:14:21 -08:00
Alex Dadgar
f4b461f97a
Track Task State in the client and capture Wait results
2015-11-16 15:14:21 -08:00
Diptanu Choudhury
c01f2a38f5
Made the code more DRY
2015-11-16 13:10:57 -08:00
Diptanu Choudhury
041f48dc71
Fixed the docker auth config
2015-11-16 13:10:57 -08:00
Diptanu Choudhury
174ac10a8a
Adding comments to fields in the docker driver config
2015-11-16 13:10:57 -08:00
Alex Dadgar
363fced30b
mapstructure close quotes
2015-11-16 13:10:57 -08:00
Diptanu Choudhury
7ebe23519a
Fixed the java driver config
2015-11-16 13:10:57 -08:00
Diptanu Choudhury
7b2e3ee55c
Making sure that there is only one port_map block in the docker driver config
2015-11-16 13:10:57 -08:00
Diptanu Choudhury
76a005b0f1
Fixed the exec driver config
2015-11-16 13:10:57 -08:00
Diptanu Choudhury
72f82a7056
Fixed the test related to setting env variables in tasks
2015-11-16 13:10:57 -08:00
Diptanu Choudhury
05d21c52e4
Fixed the allocdir tests
2015-11-16 13:10:57 -08:00
Diptanu Choudhury
0d69778873
Fixed compilation issues with driver tests
2015-11-16 13:10:57 -08:00
Diptanu Choudhury
5c95e7f0dc
Fixed the client tests
2015-11-16 13:10:57 -08:00
Diptanu Choudhury
4186e70320
Making the config for drivers public
2015-11-16 13:10:57 -08:00
Diptanu Choudhury
7f6e940946
Implemented port labeling and driver configs
2015-11-16 13:10:57 -08:00
Carlos Diaz-Padron
8ef509fbb3
Remove CGO dependency for user lookup in allocdir
...
os/user's user.Lookup requires that the artifact be compiled with CGO
support enabled. This change instead reads /etc/passwd directly.
The code was acquired from docker/docker#1096
2015-11-15 21:26:34 -08:00
Chris Bednarski
c4eabe2736
Merge pull request #412 from hashicorp/f-docker-expose
...
Expose provisioned ports for docker containers
2015-11-13 11:41:13 -08:00
Guillaume Jacquet
f5b5741d89
Fix AWS metadata url
...
Fix URL. It was printing an error message on startup:
```
2015/11/13 15:49:21 [ERR] fingerprint.env_aws: Error querying AWS Metadata URL, skipping
```
By the way is it safe to use latest? Is there a chance that Amazon decides to change the format of the metadata? It could be safer to use something like `http://169.254.169.254/2014-11-05/meta-data `
2015-11-13 11:03:05 -05:00
Chris Bednarski
022a24c25d
Change this to a valid IP address so docker can bind to it
2015-11-12 21:46:59 -08:00
Chris Bednarski
f86392ca44
Expose mapped ports
2015-11-12 17:23:04 -08:00
Diptanu Choudhury
007fc74fc1
Saving state of the Task Runner while it's trying to update it
2015-11-12 15:53:42 -08:00
Alex Dadgar
aec33179e5
Merge pull request #408 from hashicorp/f-client-restore
...
Client Restore State Fixes
2015-11-11 12:32:11 -08:00
Chris Bednarski
33d281f518
Merge pull request #407 from hashicorp/f-docker-host-env
...
Change Docker ENV behavior
2015-11-10 19:30:11 -08:00
Alex Dadgar
6e19dadcae
Check for previous embeds at entry level not folder level
2015-11-10 18:10:02 -08:00
Chris Bednarski
9fd9e33766
Added some comments to the test to explain why we're doing stuff this way
2015-11-10 17:48:06 -08:00
Chris Bednarski
fdd21d3001
Change dockerIs* to accept *testing.T for logging
2015-11-10 17:43:08 -08:00
Alex Dadgar
f28b9e7338
Merge pull request #400 from nak3/fingerprint-test
...
Update fingerprint test codes
2015-11-10 17:06:16 -08:00
Alex Dadgar
a355e5889c
Enable Open tests for Exec/Java
2015-11-10 16:59:52 -08:00
Alex Dadgar
59368b70da
Enable AllocRunner_SaveRestoreState test
2015-11-10 16:53:59 -08:00
Alex Dadgar
69fdac69ed
Update test
2015-11-10 16:49:38 -08:00
Alex Dadgar
a16c94902e
Increase time out
2015-11-10 16:37:17 -08:00
Alex Dadgar
ce8856daf4
Guard mounting dev/ and proc/ and TaskRunner_RestoreState test
2015-11-10 16:35:33 -08:00
Chris Bednarski
4b071f6613
Change Docker fingerprinter to INFO and not error when the connection to the daemon fails; we simply assume docker isn't there.
2015-11-10 16:18:52 -08:00
Alex Dadgar
87dd4dd0c7
Client Restore test
2015-11-10 16:03:18 -08:00