Alex Dadgar
db63054740
Keyify struct
2017-12-11 17:23:14 -08:00
Chelsea Holland Komlo
927c0a4d88
change location of default kill signal
2017-12-06 17:48:25 -05:00
Chelsea Holland Komlo
9e49836d4f
move kill_signal to task level, extend to docker
2017-12-06 14:36:39 -05:00
Preetha Appan
d522149f6b
Missed assert in one place
2017-11-20 13:04:38 -06:00
Preetha Appan
ee4b4d859d
Better error validation, and added test case for invalid sysctl inputs
2017-11-20 12:07:18 -06:00
Preetha Appan
0d4797711b
Address some review comments
2017-11-20 11:15:09 -06:00
Preetha Appan
9e07471e48
Fix gofmt warnings
2017-11-18 09:23:09 -06:00
Preetha Appan
48829e88d0
Fix test compilation after rebase
2017-11-17 17:46:04 -06:00
Samuel BERTHE
e6c0372318
review(docker driver): sysctls -> sysctl + ulimits -> ulimit
2017-11-17 16:30:45 -06:00
Samuel BERTHE
657619c0ec
Oops
2017-11-17 16:14:14 -06:00
Samuel BERTHE
cf586996f4
test(docker driver): testing sysctls and ulimits
2017-11-17 16:03:22 -06:00
Michael Schurter
b37a03a458
Add a test demonstrating the bug
...
Fails on Docker 17.09, passes on Docker 17.06 and earlier
2017-11-14 15:25:52 -08:00
Preetha Appan
8e70fd812a
Make device mounting unit test verify configuration via docker inspect
2017-11-13 09:56:54 -06:00
Preetha Appan
b2eeab1b8c
Unit test (linux only) that tests mounting a device in the docker driver
2017-11-13 09:56:54 -06:00
Preetha Appan
85c5218b78
Add support for passing device into docker driver
2017-11-13 09:56:54 -06:00
Alex Dadgar
a94bab6491
fix spelling mistake
2017-11-03 15:04:59 -07:00
Jonathan Ballet
15114e448e
docker: changed OOM killed error message
2017-10-27 20:30:52 +02:00
Jonathan Ballet
e5a790753d
docker: log that a container has been killed by the OOM killer
...
Fix : #2203 (at least for Docker tasks)
2017-10-27 18:05:27 +02:00
Alex Dadgar
f5549a6eb9
go style vars
2017-10-25 10:49:34 -07:00
Alex Dadgar
8accabcd87
move to consul freeport implementation
2017-10-23 16:51:40 -07:00
Alex Dadgar
e1b1465081
Standardize retrieving a free port into a helper package
2017-10-23 16:48:20 -07:00
Alex Dadgar
3be474b811
don't double parallel
2017-10-23 16:48:06 -07:00
Alex Dadgar
41773c3fdf
respond to comments
2017-10-23 15:50:27 -07:00
Alex Dadgar
5b4e31bb5b
Skip if no docker
2017-10-19 16:55:10 -07:00
Alex Dadgar
039c1f84c6
docker tests
2017-10-19 16:49:57 -07:00
Michael Schurter
04b8f8e7fc
Remove structs import from api
...
Goes a step further and removes structs import from api's tests as well
by moving GenerateUUID to its own package.
2017-09-29 10:36:08 -07:00
Alex Dadgar
a9e3a41407
Enable more linters
2017-09-26 15:26:33 -07:00
Alex Dadgar
b9f51ce61c
Parse Docker mounts correctly ( #3163 )
...
* Parse Docker mounts correctly
This PR fixes the parsing of Docker mounts and adds testing to ensure no
regressions.
Fixes https://github.com/hashicorp/nomad/issues/3156
* Review feedback
2017-09-05 14:02:57 -07:00
Jan De Cooman
d7cdb7d848
updated message in test
2017-08-11 09:24:15 +02:00
Jan De Cooman
b4ec045e9a
added dnsoptions to the docker driver
2017-08-09 13:30:06 +02:00
Alex Dadgar
08c2ba9bc6
Parallel client tests ( #2890 )
...
* alloc_runner
* Random tests
* parallel task_runner and no exec compatible check
* Parallel client
* Fail fast and use random ports
* Fix docker port mapping
* Make concurrent pull less timing dependant
* up parallel
* Fixes
* don't build chroots in parallel on travis
* Reduce parallelism on travis with lxc/rkt
* make java test app not run forever
* drop parallelism a little
* use docker ports that are out of the os's ephemeral port range
* Limit even more on travis
* rkt deadline
2017-07-22 19:04:36 -07:00
Alex Dadgar
789a5072a9
Parallel
2017-07-21 12:06:39 -07:00
Michael Schurter
ef98449b07
Merge pull request #2787 from hashicorp/f-docker-test-mac
...
Test #2652 - Docker MAC Address option
2017-07-07 16:22:10 -07:00
Michael Schurter
38bf16d2ef
Add driver.docker.bridge_ip node attribute
...
Fixes #2785
2017-07-07 10:14:10 -07:00
Michael Schurter
eaab2b2eee
Test #2652
...
Also cleanup docker config opts docs
2017-07-06 12:46:25 -07:00
Michael Schurter
8c32582d38
Fix some tests still expecting reverted behavior
2017-06-23 16:51:38 -07:00
Michael Schurter
8a7df57227
Test driver network advertisement and checks
2017-06-21 17:19:08 -07:00
Ulrik Mikaelsson
20fd19d6e2
Implement support for docker-credential-helpers
...
Solves: #2334
2017-05-31 12:45:02 +02:00
Michael Schurter
9ccb53d561
Let's pretend I never committed this
2017-05-26 15:06:59 -07:00
Michael Schurter
a96fb5dbb0
Move task env into execcontext
...
Also inject PATH into rkt commands since we're no longer appending host
env vars for it.
2017-05-23 13:53:34 -07:00
Brandon Fulljames
dc95acdcc6
Fix for test
2017-05-19 16:59:07 -07:00
Brandon Fulljames
b0304477a2
Add SecurityOpt as a config field in Docker driver
2017-05-19 16:18:49 -07:00
Alex Dadgar
1dbd63ad2a
Split driver tests
2017-04-04 15:12:14 -07:00
Michael Schurter
4d3c571859
Merge pull request #2482 from hashicorp/f-2289-better-artifact-err
...
Improve artifact download error message
2017-03-28 12:48:22 -07:00
Michael Schurter
ae9d49502a
Recoverable struct field must be exported
2017-03-28 12:18:57 -07:00
Michael Schurter
6a4e1d1709
Recoverable is a method now, not a field
2017-03-27 15:41:35 -07:00
Alex Dadgar
564367fa71
Proper reference counting through task restarts
...
This PR fixes an issue in which the reference count on a Docker image
would become inflated through task restarts.
2017-03-25 17:05:53 -07:00
Michael Schurter
6535aa8d95
Fix API breaks in tests
2017-03-02 15:50:18 -08:00
Alex Dadgar
07f7e19578
Fix vet script and fix vet problems
...
This PR fixes our vet script and fixes all the missed vet changes.
It also fixes pointers being printed in `nomad stop <job>` and `nomad
node-status <node>`.
2017-02-27 16:00:19 -08:00
Alex Dadgar
5338dafd51
Merge pull request #2361 from hashicorp/f-docker-coordination
...
Docker Image Coordinator and caching
2017-02-24 14:18:21 -08:00