Michael Schurter
c7c4564f1d
Merge pull request #3825 from jaininshah9/master
...
add a flag for cpu_hard_limit
2018-02-08 20:40:38 -08:00
Michael Schurter
bc1894fb8e
Merge branch 'master' into f-cpu_hard_limit
2018-02-08 20:14:29 -08:00
Alan Scherger
83ca7beeeb
drivers: use ctx.TaskEnv for mount points
2018-02-08 12:59:20 -06:00
Jainin Shah
bc0256da8c
removing underscore in variable name
2018-02-07 16:28:43 -08:00
Jainin Shah
2ebced723c
clearing the confusion between microsecond,nanosecond and millisecond
2018-02-06 19:11:39 -08:00
Jainin Shah
4a65fe6fc6
using d.node.Resources.CPU as suggested
2018-02-06 14:52:15 -08:00
Michael Schurter
0a806f66f6
Merge pull request #3790 from 42wim/dockerv6
...
Service registration for IPv6 docker addresses (Fixes #3785 )
2018-02-05 17:07:53 -08:00
Chelsea Komlo
7b9cf12244
Merge pull request #3781 from hashicorp/f-client-fingerprint-refactor
...
Refactor client fingerprinters to return a diff of node attributes
2018-02-01 20:13:44 -05:00
Jainin Shah
4ff7500e3e
wrapping the line to less than 80 characters
2018-02-01 14:16:38 -08:00
Jainin Shah
8ef9f295e2
changes after running go fmt
2018-02-01 12:07:05 -08:00
Jainin Shah
e6b691c95a
add a flag for cpu_hard_limit
2018-02-01 10:09:12 -08:00
Chelsea Holland Komlo
ba2ebbc7f9
code review fixup
2018-01-31 18:34:03 -05:00
Wim
dea460bb5a
* Change use_ipv6_address to advertise_ipv6_address.
...
* Set autoadvertise to true.
* Update documentation.
2018-02-01 00:01:25 +01:00
Chelsea Holland Komlo
a9447addd3
add applicable boolean to fingerprint response
...
public fields and remove getter functions
2018-01-31 13:21:45 -05:00
Wim
795d84e08f
Service registration for IPv6 docker addresses
2018-01-30 17:07:47 +01:00
Chelsea Holland Komlo
ae889b4fba
remove attributes from periodic fingerprints when state changes
...
write test for client periodic fingerprinters
2018-01-29 13:48:54 -05:00
Filip Ochnik
7507a1e161
Add ReadonlyRootfs option to the Docker driver
2018-01-27 14:38:29 +01:00
Chelsea Holland Komlo
f5fc20a564
create safe getters and setters for fingerprint response
2018-01-26 11:22:05 -05:00
Chelsea Holland Komlo
5e8151d700
refactor Fingerprint to request/response construct
2018-01-24 11:54:02 -05:00
Alex Dadgar
0cf5c76326
Allow overriding an image's entrypoint in Docker
...
Fixes https://github.com/hashicorp/nomad/issues/2219
2018-01-23 14:05:00 -08:00
Alex Dadgar
ec764f7654
Merge pull request #3754 from filipochnik/docker-caps
...
Add an option to add and drop capabilities in the Docker driver
2018-01-23 12:02:50 -08:00
Filip Ochnik
4080aac002
Finish implementation of the capabilities whitelist
2018-01-21 12:14:24 +01:00
Michael Schurter
6d77215f37
Improve driver network logging
2018-01-18 15:35:24 -08:00
Michael Schurter
cde796162c
Always advertise driver IP when in driver mode
...
Fixes #3681
When in drive address mode Nomad should always advertise the driver's IP
in Consul even when no network exists. This matches the 0.6 behavior.
When in host address mode Nomad advertises the alloc's network's IP if
one exists. Otherwise it lets Consul determine the IP.
I also added some much needed logging around Docker's network discovery.
2018-01-18 15:35:24 -08:00
Filip Ochnik
8f23c958e4
Add a sketch of capabilities whitelist logic for the Docker driver
2018-01-14 20:01:47 +01:00
Filip Ochnik
7f072ab2da
Add an option to add and drop capabilities in the Docker driver
2018-01-14 19:56:57 +01:00
Chelsea Holland Komlo
ae10b638db
code review fixes
2017-12-07 13:46:25 -05: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
Chelsea Holland Komlo
584644287e
get KillTimeout in seconds, not nanoseconds
2017-12-01 10:43:00 -05:00
Chelsea Holland Komlo
9a719cbea2
Support StopTimeout for Docker tasksw
...
Update github.com/fsouza/go-dockerclient
2017-11-29 14:33:05 -05: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
Samuel BERTHE
e6c0372318
review(docker driver): sysctls -> sysctl + ulimits -> ulimit
2017-11-17 16:30:45 -06:00
Samuel BERTHE
d15f01d7df
💄
2017-11-17 16:03:22 -06:00
Samuel BERTHE
84a089433d
feat(docker driver): adds sysctls and ulimits configs
2017-11-17 16:03:22 -06:00
Preetha Appan
929a781ae4
Add default value for cgroup permissions for device if not set
2017-11-13 09:56:54 -06:00
Preetha Appan
b0c03e45ff
Remove unnecessary check since validate method already checks this
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
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
039c1f84c6
docker tests
2017-10-19 16:49:57 -07:00
Michael Schurter
4a6255b6c6
Add logging around moby/moby#32648 bug
2017-10-18 10:44:03 -07:00
Adam Stankiewicz
79eccb2b1e
Remove AllocID from ExecutorContext
2017-10-13 17:07:49 +02:00
Michael Schurter
900e708577
Properly autodetect Docker IP in Windows
...
Our Docker network plugin autodetection code was erroneously treating
Window's default network `nat` as a plugin and defaulting to it instead
of the host.
Fixes #3218
2017-09-27 16:49:23 -07:00
Alex Dadgar
a9e3a41407
Enable more linters
2017-09-26 15:26:33 -07:00
epipho
56d591b119
Fix incorrect docker stats
2017-09-16 00:43:03 -04:00
Alex Dadgar
1bed4b41d9
Merge pull request #3187 from hashicorp/b-windows-docker
...
Fix MemorySwappiness on Windows Docker
2017-09-11 09:56:49 -07:00
Alex Dadgar
7148b65306
Fix MemorySwappiness on Windows Docker
...
Fixes https://github.com/hashicorp/nomad/issues/3181
2017-09-10 17:46:45 -07:00