Michael Schurter
8c35388677
Skip setting MemorySwap on Windows
...
Windows doesn't support this Docker setting.
Fixes #2193
2017-02-21 13:21:42 -08:00
Alex Dadgar
bfd34bb1e8
Don't force uppercase meta keys in env vars
2017-02-20 19:51:24 -08:00
Alex Dadgar
4ba4987625
Drivers log during fingerprinting
...
This PR fixes a regression in which some drivers did not log during
fingerprinting.
2017-02-20 19:35:51 -08:00
Alex Dadgar
e9d8a6aa72
Revendor docker client
2017-02-14 17:34:05 -08:00
Michael Schurter
2822dd760c
Handle createdResourcs=nil
...
Combined with b522c472fd this fixes #2256
Without these two commits in place upgrades to 0.5.3 panics.
2017-01-31 10:51:32 -08:00
Alex Dadgar
b522c472fd
Add nil guard
2017-01-31 09:19:59 -08:00
Alex Dadgar
0e8b43767b
Fix import
2017-01-25 21:27:36 -08:00
Alex Dadgar
c920d3cbb0
Fix unreachable function in tests
2017-01-25 20:58:24 -08:00
Alex Dadgar
8a0739613a
small env fix
2017-01-25 10:42:11 -08:00
Alex Dadgar
938b04e99a
Fix fsm/env test
2017-01-24 09:36:22 -08:00
Alex Dadgar
438054775c
Fix test
2017-01-23 16:33:35 -08:00
Diptanu Choudhury
af66ea3551
Merge pull request #2223 from hashicorp/f-env-addr
...
Setting the Addrs of sibling tasks in the env
2017-01-23 15:05:48 -08:00
Diptanu Choudhury
b52aa931a3
Merge pull request #2222 from hashicorp/b-docker-image-not-found
...
Making the docker driver retry when an image is not found
2017-01-23 14:58:00 -08:00
Diptanu Choudhury
5992a2a88a
Added a comment
2017-01-23 14:57:30 -08:00
Alex Dadgar
77b19f55a0
Add test and better logs
...
This commit adds a test to retrieving auth configurations, use either
the auth block in the config or specified via the agent config and adds
a log if lookup fails.
2017-01-23 14:48:02 -08:00
Alex Dadgar
67bec60f1b
Close file
2017-01-23 11:37:45 -08:00
Alex Dadgar
abd06938e5
Deprecation notice
2017-01-23 11:32:51 -08:00
Alex Dadgar
3c610ec864
Remove SSL
2017-01-23 11:32:51 -08:00
Alex Dadgar
982feb8d6b
undo
2017-01-23 11:32:51 -08:00
Alex Dadgar
36725370ee
vendor
2017-01-23 11:32:51 -08:00
Alex Dadgar
03f9bba1e4
Better auth lookup
2017-01-23 11:32:51 -08:00
Alex Dadgar
6342d4fedf
WIP
2017-01-23 11:32:51 -08:00
Alex Dadgar
71679ccef4
remove reference to entrypoint
2017-01-22 14:04:41 -08:00
Diptanu Choudhury
d1bef523a9
Setting the Addrs of sibling tasks in the env
2017-01-20 14:15:53 -08:00
Michael Schurter
b048c9eefb
Fix java tests
2017-01-20 14:12:30 -08:00
Michael Schurter
ef154fa449
Merge pull request #2215 from hashicorp/b-2211-host-env
...
Fix image based drivers having host env vars set
2017-01-20 13:16:44 -08:00
Michael Schurter
269b3c7e14
Merge pull request #2186 from hashicorp/f-driver-cleanup
...
Add Cleanup method to Driver interface
2017-01-20 13:02:14 -08:00
Diptanu Choudhury
e659ee0b77
Making the docker driver retry when an image is not found
2017-01-20 12:38:04 -08:00
Michael Schurter
c2ec30c47b
Bump unknown resource to ERR
2017-01-19 09:48:07 -08:00
Michael Schurter
17bdfaf9e7
Fix image based drivers having host env vars set
...
Add detailed tests for GetTaskEnv to avoid this issue happening again!
Fixes #2211
2017-01-18 10:27:03 -08:00
Michael Schurter
cf06204c82
Add CreatedResources.Remove and use it
2017-01-17 16:41:59 -08:00
Michael Schurter
9c012a71e0
Remove outdated comment
2017-01-17 16:23:29 -08:00
Michael Schurter
a17c3a9ded
Updated CreatedResources as images are cleaned
2017-01-17 16:13:40 -08:00
Michael Schurter
17d9e8e189
Remove outdated comment
2017-01-17 16:05:21 -08:00
Michael Schurter
4dcba012f4
Return error from Prestart
2017-01-17 16:04:09 -08:00
Michael Schurter
b100293a06
Try to get test passing in Travis
2017-01-17 12:51:19 -08:00
Michael Schurter
1f35e97510
Use Image ID instead of Image Name
2017-01-13 16:53:58 -08:00
Michael Schurter
db096b23b5
Switch to use recoverable errors from Cleanup
...
TaskRunner handles retrying but Cleanup handles all of CreatedResources.
2017-01-13 16:46:08 -08:00
Alex Dadgar
9206446a8d
Support setting class_path and class name.
...
This PR enhances the java driver to allow setting the class path and
class name to run. It also fixes an issue that would make the Java
driver attempt to chroot regardless of operating system (this never
effected a released version of Nomad).
2017-01-13 16:03:11 -08:00
Michael Schurter
b82c69886d
Add ID to output
2017-01-13 12:46:55 -08:00
Michael Schurter
1ec5c930a6
Return errors from cleanup and let TaskRunner retry
2017-01-12 17:21:54 -08:00
Diptanu Choudhury
a066d90313
Added executorconfig
2017-01-12 15:47:58 -08:00
Diptanu Choudhury
84137b02c5
Filter executor log messages
2017-01-12 11:54:19 -08:00
Michael Schurter
cace868288
Stop being so confusing
2017-01-12 11:17:35 -08:00
Michael Schurter
33c015bcc7
Add Cleanup method to Driver interface
...
Cleanup can be used for cleaning up resources created by drivers to run
a task. Initially the Docker driver is the only user (to remove
downloaded images).
2017-01-11 17:23:33 -08:00
Cameron Davison
d4b8fc953a
using new ctx instead of getting both params back
2017-01-10 16:54:01 -06:00
Cameron Davison
2d6e7e7b57
fixing typo in comment
2017-01-10 16:54:01 -06:00
Cameron Davison
e2a09752b5
add force_pull to docker driver
2017-01-10 16:54:01 -06:00
Michael Schurter
8b80c7d15a
Merge pull request #2174 from hashicorp/b-fix-executor-test
...
Switch to a less timing dependent test command
2017-01-10 13:45:12 -08:00
Michael Schurter
1bb4806ab4
Fix missing value in test failure message
2017-01-10 13:39:05 -08:00