Move example.nomad to redis.nomad
This commit is contained in:
parent
4977032fbc
commit
579ca81c22
@ -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 {
|
@ -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."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user