From e0f1aaed3b5540cd7891b51cdd41de42161def47 Mon Sep 17 00:00:00 2001 From: Matt Peterson Date: Wed, 18 Dec 2024 16:02:20 -0700 Subject: [PATCH] fix: added additional docker directives Signed-off-by: Matt Peterson --- .../zxc-verify-docker-build-determinism.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/zxc-verify-docker-build-determinism.yaml b/.github/workflows/zxc-verify-docker-build-determinism.yaml index 418d05e91..0fb3c1473 100644 --- a/.github/workflows/zxc-verify-docker-build-determinism.yaml +++ b/.github/workflows/zxc-verify-docker-build-determinism.yaml @@ -142,3 +142,32 @@ jobs: buildkitd-config-inline: | [registry."docker.io"] mirrors = ["https://hub.mirror.docker.lat.ope.eng.hashgraph.io"] + + - name: Setup Local Docker Registry + if: ${{ steps.baseline.outputs.exists == 'false' && !failure() && !cancelled() }} + run: docker run -d -p 5000:5000 --restart=always --name registry registry:latest + + - name: Show Docker Version + if: ${{ steps.baseline.outputs.exists == 'false' && !failure() && !cancelled() }} + run: docker version + + - name: Show Docker Info + if: ${{ steps.baseline.outputs.exists == 'false' && !failure() && !cancelled() }} + run: docker info + + - name: Build Gradle Artifacts + if: ${{ steps.baseline.outputs.exists == 'false' && !failure() && !cancelled() }} + run: ./gradlew assemble --scan + + - name: Prepare for Docker Build + if: ${{ steps.baseline.outputs.exists == 'false' && !failure() && !cancelled() }} + run: | + mkdir -p "${{ github.workspace }}/${{ env.DOCKER_CONTEXT_PATH }}/sdk/data" + + echo "::group::Copying Library Artifacts" + cp -Rvf "${{ github.workspace }}/hedera-node/data/lib" "${{ github.workspace }}/${{ env.DOCKER_CONTEXT_PATH }}/sdk/data/" + echo "::endgroup::" + + echo "::group::Copying Application Artifacts" + cp -Rvf "${{ github.workspace }}/hedera-node/data/apps" "${{ github.workspace }}/${{ env.DOCKER_CONTEXT_PATH }}/sdk/data/" + echo "::endgroup::"