Move example.nomad to redis.nomad

This commit is contained in:
Shishir Mahajan 2020-05-27 13:00:34 -07:00
parent 4977032fbc
commit 579ca81c22
No known key found for this signature in database
GPG Key ID: D41782E7688DEC4A
2 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
job "example" { job "redis" {
datacenters = ["dc1"] datacenters = ["dc1"]
group "cache" { group "redis-group" {
task "redis" { task "redis-task" {
driver = "containerd-driver" driver = "containerd-driver"
config { config {

View File

@ -30,15 +30,15 @@ main() {
done done
cd ~/go/src/github.com/Roblox/nomad-driver-containerd/example cd ~/go/src/github.com/Roblox/nomad-driver-containerd/example
echo "Starting nomad redis job using nomad-driver-containerd." echo "Starting nomad redis job using nomad-driver-containerd."
nomad job run example.nomad nomad job run redis.nomad
echo "Starting nomad signal handler job using nomad-driver-containerd." echo "Starting nomad signal handler job using nomad-driver-containerd."
nomad job run signal.nomad nomad job run signal.nomad
echo "Inspecting redis job." echo "Inspecting redis job."
nomad job inspect example nomad job inspect redis
echo "Inspecting signal handler job." echo "Inspecting signal handler job."
nomad job inspect signal nomad job inspect signal
echo "Stopping nomad redis job." echo "Stopping nomad redis job."
nomad job stop example nomad job stop redis
echo "Stopping nomad signal handler job." echo "Stopping nomad signal handler job."
nomad job stop signal nomad job stop signal
echo "Sleep for 5 seconds, to allow nomad jobs to shutdown gracefully." echo "Sleep for 5 seconds, to allow nomad jobs to shutdown gracefully."