From 6fff0801c65c99b45484e4932cdfe70074e410f5 Mon Sep 17 00:00:00 2001 From: Jeev B Date: Fri, 21 Jul 2023 16:27:31 -0700 Subject: [PATCH] Expose buildkit port (#413) * Expose buildkit port Signed-off-by: Jeev B * fix test Signed-off-by: Jeev B --------- Signed-off-by: Jeev B --- pkg/docker/docker_util.go | 1 + pkg/docker/docker_util_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/docker/docker_util.go b/pkg/docker/docker_util.go index 221fb32e..a4e768bb 100644 --- a/pkg/docker/docker_util.go +++ b/pkg/docker/docker_util.go @@ -139,6 +139,7 @@ func GetDemoPorts() (map[nat.Port]struct{}, map[nat.Port][]nat.PortBinding, erro "0.0.0.0:30000:30000", // Registry Port "0.0.0.0:30001:30001", // Postgres Port "0.0.0.0:30002:30002", // Minio API Port (use HTTP port for minio console) + "0.0.0.0:30003:30003", // Buildkit Port }) } diff --git a/pkg/docker/docker_util_test.go b/pkg/docker/docker_util_test.go index f1b8f7b3..83e5bc97 100644 --- a/pkg/docker/docker_util_test.go +++ b/pkg/docker/docker_util_test.go @@ -404,7 +404,7 @@ func TestGetOrCreateVolume(t *testing.T) { func TestDemoPorts(t *testing.T) { _, ports, _ := GetDemoPorts() - assert.Equal(t, 5, len(ports)) + assert.Equal(t, 6, len(ports)) } func TestCopyFile(t *testing.T) {