Skip to content

Commit

Permalink
chore: example fine tune
Browse files Browse the repository at this point in the history
  • Loading branch information
mxab committed Mar 24, 2023
1 parent 7c52a3b commit 7362e54
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion example/example3/example3.conf.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mutator "opa_json_patch" "hello_world_opa_mutator" {
mutator "opa_json_patch" "pginject" {

opa_rule {
query = <<EOH
Expand Down
8 changes: 6 additions & 2 deletions example/example3/example3.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ job "app" {
task "app" {

meta {
postgres = "native"
# postgres = "native"
}

driver = "docker"

config { # a very simple docker container
image = "busybox:1.34.1"
command = "sh"
args = ["-c", "echo \"Environment:\"; env | sort; while true; do echo .; sleep 100; done"]
args = [
"-c",
"echo \"Environment:\"; env | sort; while true; do echo .; sleep 100; done"
]
}
}
}
Expand Down
14 changes: 2 additions & 12 deletions example/example4/example4.nomad
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
job "webapp" {

datacenters = ["dc1"]

type = "service"

group "webapp" {

meta {
secure = "webapp"
# secure = "webapp"
}
network {
port "http" {
Expand All @@ -16,7 +12,6 @@ job "webapp" {
}
task "webapp" {


driver = "docker"

config {
Expand All @@ -30,21 +25,16 @@ job "webapp" {
data = file("webapp.js")
destination = "local/webapp.js"
}



resources {
memory = 256
}
}

service {

name = "webapp"

provider = "nomad"
port = "http"

}
}
}
}

0 comments on commit 7362e54

Please sign in to comment.