Skip to content

Commit

Permalink
Sync Dockerfile.tests
Browse files Browse the repository at this point in the history
  • Loading branch information
krolol committed Jun 27, 2024
1 parent b2cee07 commit e156a01
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker-image-berlin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,5 @@ jobs:
context: .
file: Dockerfile.tests
push: true
build-args: |
ECR_REGISTRY=${{ steps.login-ecr.outputs.registry }}
tags: |
${{ steps.login-ecr.outputs.registry }}/pos-network-node:${{ env.image_tag }}
10 changes: 1 addition & 9 deletions Dockerfile.tests
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
# ===== FIRST STAGE ======
ARG DDC_SMART_CONTRACT_VERSION=2.2.3
ARG ECR_REGISTRY
FROM phusion/baseimage:0.11 as builder
LABEL maintainer="[email protected]"
LABEL description="This is the build stage to create the binary."
WORKDIR /cerenetwork
COPY . /cerenetwork

# ===== SECOND STAGE ======
FROM $ECR_REGISTRY/ddc-smart-contract:$DDC_SMART_CONTRACT_VERSION as ddc-smart-contract

FROM builder
# Copy smart-contract artifacts (ddc.wasm and metadata.json)
COPY --from=ddc-smart-contract /ddc-smart-contract/artifacts/ddc.wasm /cerenetwork/pallets/ddc-metrics-offchain-worker/src/tests/test_data/
COPY --from=ddc-smart-contract /ddc-smart-contract/artifacts/metadata.json /cerenetwork/pallets/ddc-metrics-offchain-worker/src/tests/test_data/

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y cmake pkg-config libssl-dev git clang unzip
Expand All @@ -31,4 +23,4 @@ RUN PB_REL="https://github.com/protocolbuffers/protobuf/releases" && \
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
export PATH=$PATH:$HOME/.cargo/bin && \
scripts/init.sh && \
TRYBUILD=overwrite cargo test --workspace --locked --release --verbose --features runtime-benchmarks --manifest-path node/cli/Cargo.toml
TRYBUILD=overwrite cargo test --workspace --locked --release --verbose --features runtime-benchmarks --manifest-path node/cli/Cargo.toml

0 comments on commit e156a01

Please sign in to comment.