From d1da2fafb26d57173c1bc9cbc8fae19527480da7 Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 21:07:51 +0200 Subject: [PATCH 01/17] testing amd bin --- .goreleaser.yaml | 1 + Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index da71a6e..5fee10f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -27,6 +27,7 @@ dockers: - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" use: buildx dockerfile: Dockerfile + goarch: amd64 build_flag_templates: - "--label=org.opencontainers.image.created={{.Date}}" - "--label=org.opencontainers.image.title={{.ProjectName}}" diff --git a/Dockerfile b/Dockerfile index 3391bf8..f2e379a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM gcr.io/distroless/static-debian11 +FROM alpine COPY assets/ /assets From 2f40ea86edb7c3a11fc0a75406e1ae01aa6d2212 Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 21:13:10 +0200 Subject: [PATCH 02/17] testing amd bin --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f2e379a..7fc2b92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM alpine COPY assets/ /assets -USER nonroot:nonroot +#USER nonroot:nonroot ENTRYPOINT ["/usr/bin/port-k8s-exporter"] From 049b7a283b89782d016bea0536171ed10f5dc9dc Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 21:15:17 +0200 Subject: [PATCH 03/17] testing amd bin --- .goreleaser.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 5fee10f..e203e5c 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -54,10 +54,10 @@ docker_manifests: image_templates: - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" -- name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest" - image_templates: - - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" - - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" +#- name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest" +# image_templates: +# - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" +# - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" archives: - format: zip name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' From 5332c4d4deea98975e87d2a509f970f30c5a7ae8 Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 21:33:23 +0200 Subject: [PATCH 04/17] testing amd bin --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 7fc2b92..74e15bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM alpine COPY assets/ /assets #USER nonroot:nonroot +RUN apk add gcompat ENTRYPOINT ["/usr/bin/port-k8s-exporter"] From 9414d3a21f257b6eab4627a0965954051f2ee2cd Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 21:44:12 +0200 Subject: [PATCH 05/17] testing amd bin --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 74e15bf..02dfccb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM alpine COPY assets/ /assets #USER nonroot:nonroot -RUN apk add gcompat +RUN if apk --print-arch | grep -q amd; then apk add gcompat; fi ENTRYPOINT ["/usr/bin/port-k8s-exporter"] From 87c3b7aeda0360a7a7449d4b99c48a9b07f2d620 Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 22:38:54 +0200 Subject: [PATCH 06/17] updated command --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 02dfccb..731e20e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM alpine COPY assets/ /assets #USER nonroot:nonroot -RUN if apk --print-arch | grep -q amd; then apk add gcompat; fi +RUN if apk --print-arch | grep -q x86_64; then apk add gcompat; fi ENTRYPOINT ["/usr/bin/port-k8s-exporter"] From 1130999fd102a6a7f5ce4d60bad72b330c271b68 Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 22:44:59 +0200 Subject: [PATCH 07/17] testing amd build --- .github/workflows/release.yml | 2 +- .goreleaser.yaml | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b76944..99e98d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,7 @@ jobs: uses: goreleaser/goreleaser-action@v3 with: version: latest - args: release --rm-dist + args: release --rm-dist --snapshot env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e203e5c..5f2746e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -36,24 +36,24 @@ dockers: - "--platform=linux/amd64" extra_files: - assets/ -- image_templates: - - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" - use: buildx - goarch: arm64 - dockerfile: Dockerfile - build_flag_templates: - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--platform=linux/arm64/v8" - extra_files: - - assets/ +#- image_templates: +# - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" +# use: buildx +# goarch: arm64 +# dockerfile: Dockerfile +# build_flag_templates: +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--platform=linux/arm64/v8" +# extra_files: +# - assets/ docker_manifests: - name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}" image_templates: - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" - - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" +# - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" #- name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest" # image_templates: # - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" From 336a94788eb50c4adfde96f42d055c0797183c18 Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 22:49:01 +0200 Subject: [PATCH 08/17] testing amd build --- .goreleaser.yaml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 5f2746e..d3ffebe 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -23,37 +23,37 @@ builds: goarch: - arm64 dockers: -- image_templates: - - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" - use: buildx - dockerfile: Dockerfile - goarch: amd64 - build_flag_templates: - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--platform=linux/amd64" - extra_files: - - assets/ #- image_templates: -# - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" +# - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" # use: buildx -# goarch: arm64 # dockerfile: Dockerfile +# goarch: amd64 # build_flag_templates: # - "--label=org.opencontainers.image.created={{.Date}}" # - "--label=org.opencontainers.image.title={{.ProjectName}}" # - "--label=org.opencontainers.image.revision={{.FullCommit}}" # - "--label=org.opencontainers.image.version={{.Version}}" -# - "--platform=linux/arm64/v8" +# - "--platform=linux/amd64" # extra_files: # - assets/ +- image_templates: + - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" + use: buildx + goarch: arm64 + dockerfile: Dockerfile + build_flag_templates: + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--platform=linux/arm64/v8" + extra_files: + - assets/ docker_manifests: - name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}" image_templates: - - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" -# - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" +# - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" + - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" #- name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest" # image_templates: # - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" From c0007a0cf2c74991735442e0c7a80c58371ba580 Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 22:51:02 +0200 Subject: [PATCH 09/17] testing amd build --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 731e20e..1aed91c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM alpine COPY assets/ /assets #USER nonroot:nonroot +RUN echo $(apk --print-arch) RUN if apk --print-arch | grep -q x86_64; then apk add gcompat; fi ENTRYPOINT ["/usr/bin/port-k8s-exporter"] From 614c9151c842085e95c3466cff38f02b53e2acc8 Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 22:53:05 +0200 Subject: [PATCH 10/17] testing amd build --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1aed91c..117c347 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM alpine COPY assets/ /assets #USER nonroot:nonroot -RUN echo $(apk --print-arch) +RUN echo "aaa" RUN if apk --print-arch | grep -q x86_64; then apk add gcompat; fi ENTRYPOINT ["/usr/bin/port-k8s-exporter"] From d0e0dfe5cf2db82733bd4dd178ebc5613a773a3b Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 22:55:59 +0200 Subject: [PATCH 11/17] x86_64 file --- .goreleaser.yaml | 2 +- Dockerfile | 2 -- Dockerfile_x86_64 | 11 +++++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 Dockerfile_x86_64 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d3ffebe..0718b50 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -40,7 +40,7 @@ dockers: - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" use: buildx goarch: arm64 - dockerfile: Dockerfile + dockerfile: Dockerfile_x86_64 build_flag_templates: - "--label=org.opencontainers.image.created={{.Date}}" - "--label=org.opencontainers.image.title={{.ProjectName}}" diff --git a/Dockerfile b/Dockerfile index 117c347..7fc2b92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,6 @@ FROM alpine COPY assets/ /assets #USER nonroot:nonroot -RUN echo "aaa" -RUN if apk --print-arch | grep -q x86_64; then apk add gcompat; fi ENTRYPOINT ["/usr/bin/port-k8s-exporter"] diff --git a/Dockerfile_x86_64 b/Dockerfile_x86_64 new file mode 100644 index 0000000..117c347 --- /dev/null +++ b/Dockerfile_x86_64 @@ -0,0 +1,11 @@ +FROM alpine + +COPY assets/ /assets + +#USER nonroot:nonroot +RUN echo "aaa" +RUN if apk --print-arch | grep -q x86_64; then apk add gcompat; fi + +ENTRYPOINT ["/usr/bin/port-k8s-exporter"] + +COPY port-k8s-exporter /usr/bin/port-k8s-exporter From 5608681ab740192833e04538ec8997cb9bfe74ae Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 22:57:24 +0200 Subject: [PATCH 12/17] x86_64 file --- .goreleaser.yaml | 30 +++++++++++++++--------------- Dockerfile_x86_64 | 3 +-- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0718b50..3ad7307 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -23,24 +23,24 @@ builds: goarch: - arm64 dockers: -#- image_templates: -# - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" -# use: buildx -# dockerfile: Dockerfile -# goarch: amd64 -# build_flag_templates: -# - "--label=org.opencontainers.image.created={{.Date}}" -# - "--label=org.opencontainers.image.title={{.ProjectName}}" -# - "--label=org.opencontainers.image.revision={{.FullCommit}}" -# - "--label=org.opencontainers.image.version={{.Version}}" -# - "--platform=linux/amd64" -# extra_files: -# - assets/ +- image_templates: + - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" + use: buildx + dockerfile: Dockerfile_x86_64 + goarch: amd64 + build_flag_templates: + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--platform=linux/amd64" + extra_files: + - assets/ - image_templates: - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" use: buildx goarch: arm64 - dockerfile: Dockerfile_x86_64 + dockerfile: Dockerfile build_flag_templates: - "--label=org.opencontainers.image.created={{.Date}}" - "--label=org.opencontainers.image.title={{.ProjectName}}" @@ -52,7 +52,7 @@ dockers: docker_manifests: - name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}" image_templates: -# - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" + - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" #- name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest" # image_templates: diff --git a/Dockerfile_x86_64 b/Dockerfile_x86_64 index 117c347..74e15bf 100644 --- a/Dockerfile_x86_64 +++ b/Dockerfile_x86_64 @@ -3,8 +3,7 @@ FROM alpine COPY assets/ /assets #USER nonroot:nonroot -RUN echo "aaa" -RUN if apk --print-arch | grep -q x86_64; then apk add gcompat; fi +RUN apk add gcompat ENTRYPOINT ["/usr/bin/port-k8s-exporter"] From 648e4f96db4e96f76238684dc2d9566c9d78eb92 Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 23:00:30 +0200 Subject: [PATCH 13/17] x86_64 file --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99e98d3..5b76944 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,7 @@ jobs: uses: goreleaser/goreleaser-action@v3 with: version: latest - args: release --rm-dist --snapshot + args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} From 99f3dcd1d95c69ef30d93afd215e986e1f41920b Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 23:07:36 +0200 Subject: [PATCH 14/17] removing gcomapt --- Dockerfile_x86_64 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile_x86_64 b/Dockerfile_x86_64 index 74e15bf..68fa55e 100644 --- a/Dockerfile_x86_64 +++ b/Dockerfile_x86_64 @@ -3,7 +3,7 @@ FROM alpine COPY assets/ /assets #USER nonroot:nonroot -RUN apk add gcompat +#RUN apk add gcompat ENTRYPOINT ["/usr/bin/port-k8s-exporter"] From e04fb49d4aee1e06e0e90e6a5b41185c0253e004 Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 23:12:55 +0200 Subject: [PATCH 15/17] removing gcomapt --- Dockerfile_x86_64 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile_x86_64 b/Dockerfile_x86_64 index 68fa55e..74e15bf 100644 --- a/Dockerfile_x86_64 +++ b/Dockerfile_x86_64 @@ -3,7 +3,7 @@ FROM alpine COPY assets/ /assets #USER nonroot:nonroot -#RUN apk add gcompat +RUN apk add gcompat ENTRYPOINT ["/usr/bin/port-k8s-exporter"] From 99d1891e9e41b825b6e3316db7f3773129024a17 Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 23:32:42 +0200 Subject: [PATCH 16/17] updated x86_64 file --- .goreleaser.yaml | 10 +++++----- Dockerfile | 2 -- Dockerfile_x86_64 => Dockerfile.x86_64 | 1 - 3 files changed, 5 insertions(+), 8 deletions(-) rename Dockerfile_x86_64 => Dockerfile.x86_64 (87%) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3ad7307..3c1cc41 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -26,7 +26,7 @@ dockers: - image_templates: - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" use: buildx - dockerfile: Dockerfile_x86_64 + dockerfile: Dockerfile.x86_64 goarch: amd64 build_flag_templates: - "--label=org.opencontainers.image.created={{.Date}}" @@ -54,10 +54,10 @@ docker_manifests: image_templates: - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" -#- name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest" -# image_templates: -# - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" -# - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" +- name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest" + image_templates: + - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64" + - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64v8" archives: - format: zip name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' diff --git a/Dockerfile b/Dockerfile index 7fc2b92..d515b81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,6 @@ FROM alpine COPY assets/ /assets -#USER nonroot:nonroot - ENTRYPOINT ["/usr/bin/port-k8s-exporter"] COPY port-k8s-exporter /usr/bin/port-k8s-exporter diff --git a/Dockerfile_x86_64 b/Dockerfile.x86_64 similarity index 87% rename from Dockerfile_x86_64 rename to Dockerfile.x86_64 index 74e15bf..4ffc6f4 100644 --- a/Dockerfile_x86_64 +++ b/Dockerfile.x86_64 @@ -2,7 +2,6 @@ FROM alpine COPY assets/ /assets -#USER nonroot:nonroot RUN apk add gcompat ENTRYPOINT ["/usr/bin/port-k8s-exporter"] From b6a091b4ef03a72ca36a6297ef21dd6337471f1a Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 2 Jan 2024 23:40:34 +0200 Subject: [PATCH 17/17] trying to fix broken tests --- pkg/event_handler/consumer/consumer_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/event_handler/consumer/consumer_test.go b/pkg/event_handler/consumer/consumer_test.go index 2ac8658..64a392c 100644 --- a/pkg/event_handler/consumer/consumer_test.go +++ b/pkg/event_handler/consumer/consumer_test.go @@ -95,7 +95,7 @@ func TestConsumer_HandleJson(t *testing.T) { f.Consume(mockHandler.HandleJson) f.Produce(t, []byte("test-value")) - time.Sleep(time.Second) + time.Sleep(time.Second * 2) if len(mockHandler.CapturedValue) == 0 { t.Error("Handler was not called")