forked from sematext/sematext-agent-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stefan Thies
authored and
Stefan Thies
committed
Feb 15, 2016
1 parent
d0a0abc
commit 5db4dca
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Run Job Definition: nomad run sematext-agent-docker.nomad | ||
# https://www.hashicorp.com/blog/nomad.html | ||
# More Info: https://hub.docker.com/r/sematext/sematext-agent-docker/ | ||
# http://blog.sematext.com/2015/12/15/docker-logging-partner-sematext-logsene/ | ||
job "sematext-agent-docker" { | ||
# set your region here | ||
region = "global" | ||
# Mandatory, parameter pls. change! | ||
datacenters = ["us-west-1"] | ||
# run this job globally | ||
type = "system" | ||
group "infra" { | ||
task "sematext-agent-docker" { | ||
driver = "docker" | ||
config { | ||
image = "sematext/sematext-agent-docker" | ||
privileged: true | ||
} | ||
env { | ||
# Create App Tokens here: https://apps.sematext.com | ||
SPM_TOKEN="YOUR_SPM_TOKEN" | ||
LOGSENE_TOKEN="YOUR_LOGSENE_TOKEN" | ||
} | ||
} | ||
} |