Skip to content

Commit

Permalink
chore: not latest images, no image gc
Browse files Browse the repository at this point in the history
  • Loading branch information
mxab committed Mar 24, 2023
1 parent f3e4f44 commit 7ebdbc9
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
11 changes: 9 additions & 2 deletions example/example1/example1.nomad
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
job "app" {

meta {
costcenter = "cccode-my-cost-center"
}

group "app" {

task "app" {
driver = "docker"

config { # a very simple docker container
image = "busybox:latest"
image = "busybox:1.34.1"
command = "sh"
args = ["-c", "while true; do echo \"hello @ $(date)\"; sleep 5; done"]
args = [
"-c",
"while true; do echo \"hello @ $(date)\"; sleep 5; done"
]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion example/example2/example2.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ job "app" {
driver = "docker"

config { # a very simple docker container
image = "busybox:latest"
image = "busybox:1.34.1"
command = "sh"
args = ["-c", "while true; do echo \"hello @ $(date)\"; sleep 5; done"]
}
Expand Down
2 changes: 1 addition & 1 deletion example/example3/example3.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ job "app" {
driver = "docker"

config { # a very simple docker container
image = "busybox:latest"
image = "busybox:1.34.1"
command = "sh"
args = ["-c", "echo \"Environment:\"; env | sort; while true; do echo .; sleep 100; done"]
}
Expand Down
2 changes: 1 addition & 1 deletion example/example3/example3.ref.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ job "app" {


config {
image = "busybox:latest"
image = "busybox:1.34.1"
command = "sh"
args = ["-c", "while true; do echo \"hello @ $(date)\"; sleep 5; done"]
}
Expand Down
2 changes: 1 addition & 1 deletion example/example3/mutators/pg_test.rego
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ test_pginject if {
"while true; do echo 'hello $(date)'; sleep 5; done",
],
"command": "sh",
"image": "busybox:latest",
"image": "busybox:1.34.1",
},
"Constraints": null,
"DispatchPayload": null,
Expand Down
9 changes: 8 additions & 1 deletion example/infra/nomad/conf/nomad.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ server {

client {
enabled = true
}

}
plugin "docker" {
config {
gc {
image = false
}
}
}
vault {
enabled = true
address = "http://localhost:8200"
Expand Down

0 comments on commit 7ebdbc9

Please sign in to comment.