From 01ea5d47e9ae2f25949273f6589778fdf6b4ebb8 Mon Sep 17 00:00:00 2001 From: Gabriel de Quadros Ligneul <8294320+gligneul@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:57:36 -0300 Subject: [PATCH] chore(docker): remove contracts deployment files --- CHANGELOG.md | 1 + build/Dockerfile | 24 ------------------------ 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ba1cf1be..62359fc32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed - Removed `AUTHORITY` and `TXMANAGER` environment variables from dispatcher config +- Removed deployment files from rollups-node Docker image ## [1.1.0] 2023-10-02 diff --git a/build/Dockerfile b/build/Dockerfile index 447a80746..108401781 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -10,30 +10,11 @@ ARG ROLLUPS_CONTRACTS_VERSION=1.1.0 ARG BASE_PATH=/opt/cartesi ARG RUST_BUILD_PATH=${BASE_PATH}/src/rollups-node/offchain -ARG DEPLOYMENT_PATH=${BASE_PATH}/share/deployments ARG GO_BASE_PATH=/go ARG GO_BUILD_PATH=${GO_BASE_PATH}/cartesi-rollups-node ARG GO_BIN_PATH=${GO_BASE_PATH}/bin ARG RUNTIME_DIR=/var/opt/cartesi -# -# On-chain deployment files -# -FROM debian:bookworm-slim as deployment-download - -# Download deployment files from npm -WORKDIR /tmp/deployment -ARG ROLLUPS_CONTRACTS_VERSION -ADD https://registry.npmjs.org/@cartesi/rollups/-/rollups-${ROLLUPS_CONTRACTS_VERSION}.tgz . -COPY ./build/shasumfile . -RUN sha256sum -c shasumfile -RUN tar zxf rollups-${ROLLUPS_CONTRACTS_VERSION}.tgz - -FROM scratch as deployment -ARG DEPLOYMENT_PATH -WORKDIR ${DEPLOYMENT_PATH} -COPY --from=deployment-download /tmp/deployment/package/export/abi/* . - # # Cargo chef # @@ -94,11 +75,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libpq5 ca-certificates curl RUN rm -rf /var/lib/apt/lists/* -# Copy deployment files -ARG DEPLOYMENT_PATH -WORKDIR ${DEPLOYMENT_PATH} -COPY --from=deployment ${DEPLOYMENT_PATH}/*.json . - # Copy Rust binaries ARG BASE_PATH WORKDIR ${BASE_PATH}/bin