Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit 06507b0

Browse files
committed
Change from prom/prometheust main to latest in e2e
There's a problem with the main tag. When a container is started it fails with the following error: Error setting up container Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/prometheus": permission denied: unknown: failed to start container.
1 parent 1151221 commit 06507b0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkg/internal/testhelpers/prometheus_container.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ import (
1414
"github.com/testcontainers/testcontainers-go/wait"
1515
)
1616

17-
const prometheusImage = "prom/prometheus:main"
17+
// FIXME: we had to change from main to latest because the main tag was
18+
// broken and blocked our CI. Whenever a container is started it fails
19+
// with the following error:
20+
//
21+
// Error setting up container Error response from daemon: failed to create shim
22+
// task: OCI runtime create failed: runc create failed: unable to start
23+
// container process: exec: "/bin/prometheus": permission denied: unknown:
24+
// failed to start container
25+
const prometheusImage = "prom/prometheus:latest"
1826

1927
// StartPromContainer starts a Prometheus container for use in testing
2028
func StartPromContainer(storagePath string, ctx context.Context) (testcontainers.Container, string, nat.Port, error) {

0 commit comments

Comments
 (0)