Commit Graph

31 Commits

Author SHA1 Message Date
Seth Vargo
c1ee623c78 Update the sample jobfile syntax
- Uses spaces instead of tabs for the sample job file. Even though Nomad
  is written in Go, the HCL style guide uses two spaces for indentation,
  and this will match Terraform and Vault in terms of configuration.
- Locks to redis:3.2 instead of floating latest. Running latest in
  production is a bad idea and we shouldn't encourage it even via
  example.
- Removes the linux constraint (native docker exists for both Mac and
  Windows now)
- Aligns equal signs and stuff as per the HCL formatter

- Closes #1743
2016-09-24 14:42:25 -04:00
Seth Vargo
279c4c62fd Convert example job file constraint to comment
This improves the "getting started" happy path experience for non-linux
users who are running the native Docker tools on their machines. There
is no need to constrain this job to linux, since driver detection for
docker will already (basically) do this.
2016-09-24 14:12:30 -04:00
Diptanu Choudhury
396e45629b Renaming LocalDisk to EphemeralDisk (#1710)
Renaming LocalDisk to EphemeralDisk
2016-09-14 15:43:42 -07:00
Kenjiro Nakayama
cf3a2daccf [tiny] Fix an indent in init template 2016-07-20 17:41:26 +09:00
Mathias Lafeldt
acb9997ca7 Fix typos in source code 2016-07-18 16:24:46 +02:00
Alex Dadgar
9544291833 Fix indentation of init file 2016-03-21 18:16:57 -07:00
Diptanu Choudhury
40870bc519 Fixes example.init 2016-03-15 21:21:49 -07:00
Alex Dadgar
996c2dfb48 Add artifact to init 2016-03-15 20:28:33 -07:00
Dmitry Smirnov
2e755cd7e8 codespell: minor spelling corrections
Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
2016-03-16 05:28:31 +11:00
Diptanu Choudhury
2d9ea67359 Added the log config to init example 2016-02-11 12:21:19 -08:00
Alex Dadgar
8b55fd6b70 Only interpret vars wrapped in braces 2016-02-04 17:26:46 -08:00
Alex Dadgar
a2132950a5 Restart on-success shouldn't be user specifiable 2016-02-02 17:35:06 -08:00
Alex Dadgar
d285df8275 Add to nomad init 2016-01-04 11:36:57 -08:00
Alex Dadgar
3122433b47 merge 2015-12-18 12:17:13 -08:00
Diptanu Choudhury
fe57034509 Updated the example nomad job spec to use task group name in the service name 2015-11-26 23:27:33 -08:00
Diptanu Choudhury
2ce78767a8 Autogenerating names of service 2015-11-17 16:05:03 -08:00
Diptanu Choudhury
01ef4469d9 Added the parsling logic for service blocks 2015-11-17 15:13:25 -08:00
Diptanu Choudhury
c9f10f75c4 Added the example for service block 2015-11-17 15:13:25 -08:00
Diptanu Choudhury
fbb082cf31 Adding the port hcl object to example 2015-11-16 13:10:57 -08:00
Diptanu Choudhury
6a56218fb7 Fixed the restart policy syntax 2015-11-02 17:30:41 -08:00
Diptanu Choudhury
0d17430306 Fixed grammer of comment 2015-10-30 21:06:56 -07:00
Diptanu Choudhury
83695cb5d1 Added support for parsing restart blocks 2015-10-30 15:51:39 -07:00
Chris Bednarski
8c48fd183e Change to the default redis port and use docker port mapping 2015-10-02 16:35:24 -07:00
Ryan Uber
3a3aa18bf8 command: test init 2015-09-30 14:21:50 -07:00
Armon Dadgar
ac8d2f6235 website: lowercase examples of dynamic ports 2015-09-26 18:26:51 -07:00
Chris Bednarski
5449c8290b Add docker ports; change to uppercase examples and tests 2015-09-23 18:01:08 -07:00
Armon Dadgar
f2a09e9cf6 command/init: tweak constraint 2015-09-22 21:48:44 -07:00
Armon Dadgar
667c9c0794 command/init: fixing inconsistencies 2015-09-22 21:48:43 -07:00
Armon Dadgar
8eb7db7d69 command/init: reworking behavior and default file 2015-09-22 21:48:43 -07:00
Chris Bednarski
3799997a28 Switch to named port config syntax 2015-09-22 16:14:28 -07:00
Chris Bednarski
bee4fc6e7c Added init command 2015-09-22 16:11:01 -07:00