Diptanu Choudhury
3659335de1
Fixed the log statements
2015-11-05 11:13:05 -08:00
Diptanu Choudhury
ea854a9220
Added the logic to restart Tasks if possible
2015-11-05 11:13:04 -08:00
Diptanu Choudhury
b64ed61022
Setting the restart policy to AllocRunner and Task Runners
2015-11-05 11:13:04 -08:00
Alex Dadgar
3cf7dfb588
Merge pull request #377 from nak3/selinux-docker-driver
...
Apply SELinux label to allocate directory of docker driver
2015-11-05 10:54:48 -08:00
Shiem Edelbrock
adb8d4c1f7
Merge branch 'master' of https://github.com/hashicorp/nomad into f-docker-driver-options
...
* 'master' of https://github.com/hashicorp/nomad : (59 commits)
Move the executor and spawn package into driver
Remove file watching
Check if the PID is alive instead of heartbeating through modify time
Update CHANGELOG.md
nomad/watch: add a note about the Item struct
go fmt this file
Vet errors
Search path
Update website
Make a basic executor that can be shared and fix some fingerprinting/tests
Small improvements
Use const value for AWS metadata URL
Create Spawn pkg that handles IPC with the spawn-daemon and update exec_linux to use that
Fixed the restart policy syntax
Introducing vars to create default batch and service restart policies
Fixed the tests
Declaring Batch and Service default restart policies
Fixing tests to not create a TG without restart policies
This option only work -> This option only works
leave -> leaving
...
2015-11-05 10:48:09 -08:00
Shiem Edelbrock
c174f4819b
Added task configuraton options for docker driver
...
- Added `priviliged` option to task config to allow containers to run in
priviliged mode.
- Added `dns-servers` option to task config to allow containers to use
custom DNS servers
- Added `search-domains` option to task config to allow containers to
use custom dns search domains
- Added authentication options (under key namespace `auth.*`) to allow
authentication on a task level for docker remote.
- Updated site docs to reflect changes
2015-11-05 10:47:41 -08:00
Alex Dadgar
3cc2dd52b6
exec_basic uses Spawner; create shared test harness for executors
2015-11-05 09:58:57 -08:00
Clint Shryock
fb8066d8f3
add checksums to tests, formatting after rebase
2015-11-05 09:23:45 -06:00
Clint Shryock
1a35649ea1
remove debug line
2015-11-05 08:55:30 -06:00
Clint Shryock
145a2e3610
refactor drivers to use new getter
2015-11-05 08:55:30 -06:00
Clint Shryock
291dd3dfb1
add getter package, a thin wrapper of go-getter
2015-11-05 08:53:11 -06:00
Alex Dadgar
587031f14d
Get rid of exec.cmd struct and setuid file
2015-11-04 17:20:52 -08:00
Alex Dadgar
806c3c28b8
Merge pull request #383 from hashicorp/f-driver-restructure
...
Move the executor and spawn package into driver
2015-11-04 16:59:17 -08:00
Alex Dadgar
4259d3a43c
Move the executor and spawn package into driver
2015-11-04 16:53:27 -08:00
Alex Dadgar
f210fcd1a6
Merge pull request #380 from hashicorp/f-daemonize
...
Improve spawn-daemon and Nomad Client usage of it
2015-11-04 16:44:50 -08:00
Alex Dadgar
7d42702d28
Remove file watching
2015-11-04 16:38:28 -08:00
Kenjiro Nakayama
1e47dd4c7d
Apply SELinux label to allocate directory of docker driver
2015-11-05 09:06:22 +09:00
Alex Dadgar
81140f8787
Check if the PID is alive instead of heartbeating through modify time
2015-11-04 14:50:44 -08:00
Ryan Uber
e651764755
Merge pull request #368 from hashicorp/b-docs
...
website: clean up HTTP docs, add blocking queries
2015-11-04 11:22:57 -08:00
Ryan Uber
d8fd622a3d
Update CHANGELOG.md
2015-11-04 11:22:20 -08:00
Ryan Uber
38b812178b
Merge pull request #366 from hashicorp/f-blocking
...
Support blocking queries
2015-11-04 11:18:50 -08:00
Ryan Uber
691b260cbe
nomad/watch: add a note about the Item struct
2015-11-04 11:18:17 -08:00
Clint Shryock
afc49a57da
go fmt this file
2015-11-03 15:54:29 -06:00
Alex Dadgar
7f9fd5ec36
Vet errors
2015-11-03 13:37:45 -08:00
Alex Dadgar
88391eedfb
Search path
2015-11-03 13:26:09 -08:00
Alex Dadgar
ec2c9b6d52
Update website
2015-11-03 12:57:39 -08:00
Alex Dadgar
d83777f198
Make a basic executor that can be shared and fix some fingerprinting/tests
2015-11-03 12:47:48 -08:00
Alex Dadgar
271702f4a2
Small improvements
2015-11-03 10:50:30 -08:00
Clint
6a3763d105
Merge pull request #379 from nak3/const-aws
...
Use const value for AWS metadata URL
2015-11-03 10:09:30 -06:00
Kenjiro Nakayama
21f537339e
Use const value for AWS metadata URL
2015-11-04 00:06:14 +09:00
Alex Dadgar
5562fc7672
Create Spawn pkg that handles IPC with the spawn-daemon and update exec_linux to use that
2015-11-02 20:28:37 -08:00
Diptanu Choudhury
dcc4bcb7a9
Merge pull request #369 from hashicorp/f-client-side-restarts
...
Client Side Restarts - Part 1
2015-11-02 20:02:52 -08:00
Diptanu Choudhury
1f4593c4d3
Fixed the restart policy syntax
2015-11-02 17:30:41 -08:00
Diptanu Choudhury
b9eb12e5f9
Introducing vars to create default batch and service restart policies
2015-11-02 17:00:17 -08:00
Diptanu Choudhury
02d70eb5be
Fixed the tests
2015-11-02 15:04:04 -08:00
Diptanu Choudhury
7d301fb8b3
Declaring Batch and Service default restart policies
2015-11-02 13:35:51 -08:00
Diptanu Choudhury
52eb6c77af
Fixing tests to not create a TG without restart policies
2015-11-02 13:24:59 -08:00
Alex Dadgar
e56bc21e95
Merge pull request #372 from charlieok/patch-1
...
Remove redundant 'all'
2015-11-02 10:31:34 -08:00
Alex Dadgar
e2f8456916
Merge pull request #375 from charlieok/patch-3
...
leave -> leaving
2015-11-02 10:28:55 -08:00
Armon Dadgar
e1aa99af2d
Merge pull request #376 from charlieok/patch-4
...
This option only work -> This option only works
2015-11-02 10:20:48 -08:00
Charlie O'Keefe
19fbceb6e6
This option only work -> This option only works
2015-11-02 11:19:38 -07:00
Charlie O'Keefe
f0da9414b7
leave -> leaving
2015-11-02 11:18:42 -07:00
Seth Vargo
0797767642
Merge pull request #374 from charlieok/patch-3
...
appicable -> applicable
2015-11-02 13:12:55 -05:00
Charlie O'Keefe
a0e950520d
appicable -> applicable
2015-11-02 11:10:12 -07:00
Charlie O'Keefe
f291aa6480
Remove redundant 'all'
2015-11-02 10:15:26 -07:00
Diptanu Choudhury
9139777ab7
Not validating task groups if it's nil in a job
2015-10-30 21:43:00 -07:00
Diptanu Choudhury
c80f0e38d1
Added a RestartPolicy to some mocks
2015-10-30 21:33:33 -07:00
Diptanu Choudhury
8133aa413a
Fixed grammer of comment
2015-10-30 21:06:56 -07:00
Diptanu Choudhury
bf105430ea
Added the restart policies to mocks
2015-10-30 18:34:23 -07:00
Diptanu Choudhury
edcd677df6
Re-using toDuration while figuring out staggertime
2015-10-30 16:49:08 -07:00