Skip to content

Commit

Permalink
helper update for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
pkazmierczak committed Oct 16, 2024
1 parent 5d16152 commit 46ae9df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion e2e/docker/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ func runRegistry(t *testing.T) {
addr, port := findService(t, registryService)
address := fmt.Sprintf("%s:%d", addr, port)

t.Logf("Setting up insecure private registry at %v", address)

// run the sed job to fixup the auth.json file with correct address
_, sedCleanup := jobs3.Submit(t,
"../docker_registry/registry-auths.hcl",
Expand All @@ -72,7 +74,6 @@ func runRegistry(t *testing.T) {
jobs3.WaitComplete("create-conf"),
jobs3.Timeout(20*time.Second),
)

t.Cleanup(dockerInsecure)
}

Expand Down
11 changes: 3 additions & 8 deletions e2e/docker/input/docker_conf.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ job "docker-conf" {
}

group "create-conf" {
reschedule {
attempts = 0
unlimited = false
}

task "create-daemon-file" {
driver = "pledge"
user = "${var.user}"
Expand Down Expand Up @@ -67,11 +62,11 @@ EOH
}

task "restart-docker" {
driver = "raw_exec" # FIXME: make it a pledge task in the future
driver = "raw_exec" # TODO: see if this could be done with pledge?

config {
command = "systemctl"
args = ["restart", "docker"]
command = "service"
args = ["docker", "restart"]
}
resources {
cpu = 100
Expand Down
4 changes: 4 additions & 0 deletions e2e/terraform/etc/nomad.d/client-linux.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ plugin "docker" {
volumes {
enabled = true
}
auth {
helper = "test.sh"
config = "/etc/auth.json"
}
}
}

Expand Down

0 comments on commit 46ae9df

Please sign in to comment.