From 3353e36d16db70b4cbe575aac491244d328aca05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Garamv=C3=B6lgyi?= Date: Tue, 15 Oct 2024 09:58:38 +0200 Subject: [PATCH 1/2] ci: push docker images to correct user (#1538) --- .github/workflows/docker.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9db5add1df..150a6f36c1 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -49,8 +49,8 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest + scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} + scrolltech/${{ env.REPOSITORY }}:latest ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest @@ -94,8 +94,8 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest + scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} + scrolltech/${{ env.REPOSITORY }}:latest ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest @@ -139,8 +139,8 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest + scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} + scrolltech/${{ env.REPOSITORY }}:latest ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest @@ -184,8 +184,8 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest + scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} + scrolltech/${{ env.REPOSITORY }}:latest ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest @@ -229,8 +229,8 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest + scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} + scrolltech/${{ env.REPOSITORY }}:latest ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest @@ -274,8 +274,8 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest + scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} + scrolltech/${{ env.REPOSITORY }}:latest ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest @@ -318,8 +318,8 @@ jobs: file: ./build/dockerfiles/coordinator-api.Dockerfile push: true tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest + scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} + scrolltech/${{ env.REPOSITORY }}:latest ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest @@ -363,7 +363,7 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest + scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} + scrolltech/${{ env.REPOSITORY }}:latest ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest From 41ce22be050dcd3f715cabcb6987551265642f4f Mon Sep 17 00:00:00 2001 From: sbaizet <74511063+sbaizet-ledger@users.noreply.github.com> Date: Tue, 15 Oct 2024 10:57:03 +0200 Subject: [PATCH 2/2] add jq tool to coordinator-api (#1539) --- build/dockerfiles/coordinator-api.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/dockerfiles/coordinator-api.Dockerfile b/build/dockerfiles/coordinator-api.Dockerfile index a60f07b651..3d1f7660dc 100644 --- a/build/dockerfiles/coordinator-api.Dockerfile +++ b/build/dockerfiles/coordinator-api.Dockerfile @@ -40,7 +40,7 @@ FROM ubuntu:20.04 ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/src/coordinator/internal/logic/verifier/lib ENV CGO_LDFLAGS="-Wl,--no-as-needed -ldl" # ENV CHAIN_ID=534353 -RUN apt update && apt install vim netcat-openbsd net-tools curl -y +RUN apt update && apt install vim netcat-openbsd net-tools curl jq -y RUN mkdir -p /src/coordinator/internal/logic/verifier/lib COPY --from=builder /bin/lib /src/coordinator/internal/logic/verifier/lib COPY --from=builder /bin/coordinator_api /bin/