Commit Graph

905 Commits

Author SHA1 Message Date
Michael Schurter
7d115a3fae Add comment and fix log line code style 2016-10-07 11:58:21 -07:00
Michael Schurter
e876c6c1a0 Remove VolumesFrom feature
Since containers are named with alloc ids it's difficult to use safely.
Not to mention task scheduling ordering issues could break it as well.
2016-10-07 11:58:13 -07:00
Michael Schurter
297d637a59 Add comments to config key constants 2016-10-03 16:04:33 -07:00
Michael Schurter
cc5b40e54e Only launch syslog server if container uses syslog 2016-10-03 15:22:10 -07:00
Michael Schurter
fe1e3c792f Put docker volume support behind conf flag
Also add tests and fix bug with logging driver configuration.
2016-10-03 15:02:50 -07:00
Jan-Hendrik Lendholt
32a8e5b116 Fixed a bug when giving in another logging driver than syslog.
Before this commit, if the Logging config did not contain a logging option "syslog-address", it would definitely insert this option.
If then, you decide to take another logdriver than syslog, docker would fail because it received a wrong log option for the selected driver.
Now, nomad will only insert the syslog address in a hard way if there are no logging options at all - this way it keeps the default nomad settings.
2016-10-03 15:02:50 -07:00
Jan-Hendrik Lendholt
7c077d2dae Added support to mount host folders into container. For example if you don't want to bake certificates into the container, you can mount them into the directory directly.
Furthermore, I added support for volumes-from.

Currently, there is no support to move the data from one container to another, hence: If a container spawns on another host, it is very likely, that the data will not be found.
2016-10-03 15:02:49 -07:00
Jan-Hendrik Lendholt
38b034d568 Added logging options support for docker driver 2016-10-03 15:02:49 -07:00
Alex Dadgar
42c4346dcf Constant time space tracking of pids 2016-09-27 16:57:26 -07:00
Alex Dadgar
b097191ec6 Test fix 2016-09-26 15:35:59 -07:00
Alex Dadgar
ee67630889 Struct and parse 2016-09-21 11:31:09 -07:00
Alex Dadgar
d49dda45e3 Merge pull request #1713 from hashicorp/f-alloc-runner-vault
Vault integration in client
2016-09-20 16:15:55 -07:00
Alex Dadgar
cd8784894d Alloc runner tests 2016-09-15 17:24:09 -07:00
Alex Dadgar
bec6adb2ee Vault token threaded 2016-09-14 13:30:01 -07:00
Diptanu Choudhury
47144fe5e9 Merge pull request #1683 from mwieczorek/enable-syslog-for-windows
Enable syslog for windows
2016-09-04 17:07:25 -07:00
Michal Wieczorek
78eaeafc15 Enable syslog server and universal collector for windows 2016-09-05 00:26:36 +02:00
Alex Dadgar
4bae54741e Secret dir materialized in alloc/task directory 2016-09-02 12:44:05 -07:00
Alex Dadgar
335cababe1 Revert "Introduce a Secret/ directory" 2016-09-01 17:23:15 -07:00
Alex Dadgar
7f18d94976 Merge pull request #1671 from hashicorp/f-secret-dir2
Introduce a Secret/ directory
2016-09-01 09:56:17 -07:00
Alex Dadgar
0b07ef93c1 Address comments and reserve 2016-08-31 18:11:02 -07:00
Alex Dadgar
dfab22cd9f environment variables 2016-08-31 13:56:11 -07:00
Alex Dadgar
46ce8dd020 Interface + tests 2016-08-30 21:40:32 -07:00
Michael Schurter
53d7dfb1b7 Remove unused embedded lock on ExecContext 2016-08-26 11:58:03 -07:00
Diptanu Choudhury
25f60ed10b Fixed the raw_exec fingerprint test 2016-08-24 13:38:43 -05:00
Diptanu Choudhury
d2b072c7a6 fixed the qemu fingerprinter test 2016-08-24 12:25:02 -05:00
Diptanu Choudhury
e93ff0af02 Fixed a java test 2016-08-23 16:51:09 -05:00
Diptanu Choudhury
3f9ca48802 fixed the exec fingerprinter test 2016-08-23 16:40:56 -05:00
Diptanu Choudhury
2ef1d7e949 removing driver_mock 2016-08-23 16:05:03 -05:00
Alex Dadgar
0546ca65aa Fix TestDockerDriver_Fingerprint 2016-08-23 10:39:40 -07:00
Alex Dadgar
1c45799c49 Merge pull request #1580 from hashicorp/f-disk-usage-monitoring
Monitor and enforce shared allocation directory disk usage
2016-08-23 09:49:53 -07:00
Diptanu Choudhury
92fc6ba32f Putting the mock driver behind a build flag 2016-08-22 15:02:28 -05:00
Diptanu Choudhury
025f3b424a blocking chained allocations until previous allocation hasn't terminated 2016-08-22 11:34:24 -05:00
Kenjiro Nakayama
a0d1c7d344 driver.docker: tiny: debug messages output task name instead of image name 2016-08-21 19:51:32 +09:00
Ivo Verberk
13071e9846 Disk resource monitoring and enforcement 2016-08-18 07:59:03 +02:00
Diptanu Choudhury
584f31ddf6 re-using copyimage 2016-08-17 15:25:03 -07:00
Diptanu Choudhury
a446f416fd Fixed docker tests 2016-08-17 15:25:03 -07:00
Diptanu Choudhury
8ed3613e16 changing error statement 2016-08-17 13:48:31 -07:00
Diptanu Choudhury
8174671c7c Fixed the docker script check 2016-08-17 13:23:48 -07:00
Alex Dadgar
59929b1280 Merge pull request #1598 from nak3/rkt-fix5
driver.rkt: Remove unnecessary job validation
2016-08-16 15:12:45 -07:00
Kenjiro Nakayama
0e092ef326 driver.rkt: Remove unnecessary job validation 2016-08-16 23:33:34 +09:00
ramukima
8d72b8e23e go fmt performed code when copied from another directory got messed up again ? Ok, ran go fmt again 2016-08-16 09:20:13 -04:00
ramukima
e1db7009d8 issue-1588 : Allow extra driver config args as a passthrough for qemu executable from a task specification 2016-08-15 23:36:13 -04:00
Alex Dadgar
e2b7b86883 Merge pull request #1581 from nak3/fix-rkt2
Set host environment variables to taskEnv of rkt driver
2016-08-15 10:31:10 -07:00
Alex Dadgar
498f41ccbc Merge pull request #1586 from nak3/rkt-fix3
tiny: Catch error returned from SyncServices in rkt driver
2016-08-15 10:29:28 -07:00
Kenjiro Nakayama
4e6d0b685e rkt.driver: Fix wrong MB calculation 2016-08-14 14:27:42 +09:00
Kenjiro Nakayama
6b28024bef tiny: Catch error returned from SyncServices in rkt driver 2016-08-14 13:11:17 +09:00
Kenjiro Nakayama
869b23ef4a Set host environment variables to taskEnv of rkt driver 2016-08-14 00:42:53 +09:00
Diptanu Choudhury
4f79c017b5 Merge pull request #1572 from hashicorp/fix-docker-test
Fixed docker tests
2016-08-12 13:04:33 -07:00
Diptanu Choudhury
f0bab506f1 Updated the busybox images 2016-08-12 11:39:58 -07:00
Diptanu Choudhury
938d512f49 Not running tests parallal 2016-08-11 21:53:27 -07:00