Skip to content

Commit

Permalink
chore(docker): remove contracts deployment files
Browse files Browse the repository at this point in the history
  • Loading branch information
gligneul committed Nov 30, 2023
1 parent 68469ff commit 01ea5d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
24 changes: 0 additions & 24 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 01ea5d4

Please sign in to comment.