Commit graph

5494 commits

Author SHA1 Message Date
Michael Schurter 44219cc083 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 a26a501120 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 6c7cbe5fcb 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 ac5cde4641 Added logging options support for docker driver 2016-10-03 15:02:49 -07:00
Michael Schurter 6dea6df919 Restore lost chan inits 2016-10-03 14:56:50 -07:00
Seth Vargo efbc93ceb0 Merge pull request #1785 from hashicorp/sethvargo/docs
Fix formatting and add more examples to driver docs
2016-10-03 17:50:08 -04:00
Seth Vargo cbfa0b2df5
Fix formatting and add more examples to driver docs 2016-10-03 17:35:20 -04:00
Seth Vargo b96fd48263 Merge pull request #1784 from hashicorp/sethvargo/docs
Add more examples and clarify interpreted variables docs
2016-10-03 17:17:57 -04:00
Seth Vargo 3fd682076c Remove raw-exec example 2016-10-03 17:11:10 -04:00
Seth Vargo 36da4df3b1 Remove exec example 2016-10-03 17:10:53 -04:00
Seth Vargo 283ab84cdf
Update driver docs with constraint examples 2016-10-03 17:01:24 -04:00
Seth Vargo 170668d128
Update docs on interpreted
Uses "property" instead of overloading "attribute"
2016-10-03 17:01:24 -04:00
Seth Vargo d92c944b42
Fix an issue with horizontal docs scrolling 2016-10-03 17:01:24 -04:00
Seth Vargo a883bbfb42
Fix HCL on interpreted.html 2016-10-03 17:01:23 -04:00
Alex Dadgar 1d71ac1a9f Merge pull request #1774 from hashicorp/sethvargo/logs_docs
Clarify logs docs
2016-10-03 13:53:37 -07:00
Diptanu Choudhury 8173d8332e Fixed vendors.json 2016-10-03 12:49:09 -07:00
Diptanu Choudhury d50c395421 Getting snapshot of allocation from remote node (#1741)
* Added the alloc dir move

* Moving allocdirs when starting allocations

* Added the migrate flag to ephemeral disk

* Stopping migration if the allocation doesn't need migration any more

* Added the GetAllocDir method

* refactored code

* Added a test for alloc runner

* Incorporated review comments
2016-10-03 09:59:57 -07:00
Seth Vargo 867e0efe0b Fix formatting 2016-09-30 14:15:11 -04:00
Seth Vargo a49e97e135
Clarify logs docs 2016-09-30 14:09:02 -04:00
Sean Chittenden 0b433e4c73
Add a small anchor tag to the periodic block. 2016-09-30 10:39:54 -07:00
Michael Schurter c7ed409cf0 Merge pull request #1768 from hashicorp/b-squelch-spammy-consul-errors
Only log consul errors once since last succesful run
2016-09-30 09:03:18 -07:00
Michael Schurter b117725dc9 Only log consul errors once since last succesful run 2016-09-28 17:18:45 -07:00
Alex Dadgar c0e142759b Merge pull request #1763 from hashicorp/sethvargo/docs
Fix docker args docs
2016-09-27 22:34:40 -07:00
Seth Vargo c60962045a
Fix docker args docs 2016-09-27 19:14:10 -07:00
Diptanu Choudhury 9b98d70aec Fixed task group validation tests 2016-09-27 17:57:30 -07:00
Alex Dadgar 5b0ca4ec68 changelog 2016-09-27 17:29:39 -07:00
Alex Dadgar 9beee9c891 Merge pull request #1762 from hashicorp/b-scan-pids
Constant size space tracking of pids
2016-09-27 17:28:35 -07:00
Alex Dadgar 320b89d57a Constant time space tracking of pids 2016-09-27 16:57:26 -07:00
Michael Schurter 80085ddda5 Merge pull request #1735 from hashicorp/b-bootstrap-flapping
Retry all servers on RPC call failure
2016-09-27 16:33:15 -07:00
Michael Schurter 0a9be42e64 Cleanup changelog entries 2016-09-27 16:32:32 -07:00
Michael Schurter 79b2373d31 Add #1735 related fixes/improvements to changelog 2016-09-27 16:07:41 -07:00
Michael Schurter d486de3804 Remove unused const 2016-09-27 16:04:01 -07:00
Seth Vargo 0f73579533 Clarify server-members is server-only (#1761)
* Add a note to the CLI that only servers can run this command

* Add a callout that this is a server command

* Remove the annoying bottom margin on callouts
2016-09-27 13:51:54 -07:00
Diptanu Choudhury 2b1d214b0d Avoiding copying files if they are already present in chrootw (#1753) 2016-09-27 11:43:27 -07:00
Michael Schurter 2e696c5e61 Fix lies found in comments by fact checkers 2016-09-26 16:51:53 -07:00
Michael Schurter 11cf9686a6 No need to put reaper ticker on the struct 2016-09-26 16:15:19 -07:00
Michael Schurter 2eb0062959 Drop clumsy timeout on discovery notifications
It's better to just let goroutines fallback to their longer retry
intervals then try to be clever here.
2016-09-26 16:05:21 -07:00
Michael Schurter 307e674eca Flip disco chan; clarify method names/comments 2016-09-26 15:52:40 -07:00
Michael Schurter 888ee21270 Return csv of servers from Stats, not just count 2016-09-26 15:40:26 -07:00
Alex Dadgar 231617d58e Merge pull request #1752 from hashicorp/f-consul-template
Consul template structs
2016-09-26 15:38:24 -07:00
Alex Dadgar fca2becaa5 Parse 2016-09-26 15:36:11 -07:00
Alex Dadgar b4c3f015bc Template diff 2016-09-26 15:36:11 -07:00
Alex Dadgar e925f8ca58 Add template structs 2016-09-26 15:36:11 -07:00
Alex Dadgar b28e817b1d Test fix 2016-09-26 15:35:59 -07:00
Michael Schurter 7dc0079dd2 doDisco -> triggerDiscoveryCh; discovered -> serversDiscoveredCh
Also fix log line formatting
2016-09-26 15:21:28 -07:00
Michael Schurter 434e4be97c noServers -> noServersErr 2016-09-26 15:12:35 -07:00
Michael Schurter b2ddb85a78 consul -> Consul 2016-09-26 15:06:57 -07:00
Michael Schurter a45921c402 Fix agent server set test
Test asserted endpoint appendend servers, but the new/desired behavior
is for the endpoint to set/overwrite servers.
2016-09-26 11:57:06 -07:00
Alex Dadgar ff2dc0b0a7 Merge pull request #1742 from hashicorp/b-text-file-busy
Closing files when files are removed
2016-09-26 11:50:27 -07:00
Alex Dadgar 1f2587ca20 Merge pull request #1744 from hashicorp/sethvargo/init_format
Update the sample jobfile syntax
2016-09-26 11:26:33 -07:00