Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
wuminzhe committed Sep 27, 2023
1 parent b6019f8 commit 88551f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
FROM rust:latest

WORKDIR /usr/src/app
COPY . .

RUN apt update && apt install -y curl protobuf-compiler clang

# foundry
RUN curl -L https://foundry.paradigm.xyz | bash
RUN . /root/.bashrc && foundryup

WORKDIR /usr/src/app

COPY . .
# darwinia node
RUN git clone https://github.com/darwinia-network/darwinia.git --branch apk-verifier --depth 1
RUN cd darwinia && cargo build --release -p darwinia --features pangolin-native

ENTRYPOINT ["/bin/bash", "-c"]
ENTRYPOINT ["/bin/bash", "-c"]
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,13 @@ make test-packed ADDR=0xeAB4eEBa1FF8504c124D031F6844AD98d07C318f
### 1. Run darwinia dev node

```bash
local% docker run -it --name my_container ghcr.io/darwinia-network/apk-verifier:v0.1.0 bash
```

In `my_container`:

```bash
root@097f7b4f10da:/usr/src/app# ./bin/darwinia --chain pangolin-dev --alice --tmp --rpc-external --rpc-cors all --execution=native
local% docker run -it --name my_container ghcr.io/darwinia-network/apk-verifier:v0.1.0 ./darwinia/target/release/darwinia --chain pangolin-dev --alice --tmp --rpc-external --rpc-cors all --execution=native
```

### 2. Deploy test contracts

Enter the running `my_container`:

```bash
local% docker exec -it my_container bash
```
Expand Down

0 comments on commit 88551f9

Please sign in to comment.