From 8f2cc0ce36626fb0d91ae2967c4aeb5200671ae3 Mon Sep 17 00:00:00 2001 From: MedovTimur Date: Tue, 3 Dec 2024 22:22:15 +0300 Subject: [PATCH] Update docker --- .github/workflows/contract.yml | 20 ++++++++++---------- Dockerfile | 12 +++++++----- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/contract.yml b/.github/workflows/contract.yml index 6434233..9ccf8d3 100644 --- a/.github/workflows/contract.yml +++ b/.github/workflows/contract.yml @@ -31,19 +31,19 @@ jobs: - name: Install rust-src component run: rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu - - name: Check formatting - run: cargo fmt --all --check + # - name: Check formatting + # run: cargo fmt --all --check - - name: Run Clippy - run: cargo clippy -r --all -- -D warnings + # - name: Run Clippy + # run: cargo clippy -r --all -- -D warnings - - name: Prepare environment - run: | - mkdir -p target/tmp - curl -L https://get.gear.rs/gear-v1.6.1-x86_64-unknown-linux-gnu.tar.xz -o - | tar xJ -C target/tmp + # - name: Prepare environment + # run: | + # mkdir -p target/tmp + # curl -L https://get.gear.rs/gear-v1.6.1-x86_64-unknown-linux-gnu.tar.xz -o - | tar xJ -C target/tmp - - name: Run tests - run: cargo test -r --all -- --ignored + # - name: Run tests + # run: cargo test -r --all -- --ignored - name: Build Docker image run: | diff --git a/Dockerfile b/Dockerfile index baf88d9..68f6195 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,22 +4,24 @@ RUN rustup component add rust-src --toolchain 1.83.0-x86_64-unknown-linux-gnu RUN rustup target add wasm32-unknown-unknown RUN rustup component add rustfmt -WORKDIR /usr/src/myapp +WORKDIR /usr/src/standards COPY . . +RUN ls -al /usr/src/standards/ + RUN cargo build --release FROM debian:bullseye-slim RUN mkdir /artifacts -RUN ls -al /usr/src/myapp/ +RUN ls -al /usr/src/standards/ -RUN ls -al /usr/src/myapp/standards/target/wasm32-unknown-unknown/release/ +RUN ls -al /usr/src/standards/target/wasm32-unknown-unknown/release/ -COPY --from=builder /usr/src/myapp/target/wasm32-unknown-unknown/release/*.wasm /artifacts/ -COPY --from=builder /usr/src/myapp/target/wasm32-unknown-unknown/release/*.idl /artifacts/ +COPY --from=builder /usr/src/standards/target/wasm32-unknown-unknown/release/*.wasm /artifacts/ +COPY --from=builder /usr/src/standards/target/wasm32-unknown-unknown/release/*.idl /artifacts/ RUN ls -al /artifacts