Skip to content

Commit

Permalink
fix: fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Vid201 committed Sep 1, 2023
1 parent 1281b9c commit 49530a1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ RUN make build
# run
FROM frolvlad/alpine-glibc

RUN mkdir -p /data/silius

RUN apk add openssl1.1-compat

COPY --from=builder /silius/target/release/silius /usr/local/bin/silius

EXPOSE 3000
Expand Down
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ For more information: https://hackmd.io/@Vid201/aa-bundler-rust

<i>This project is still under active development.</i>

## Prerequisites
## Getting started

### Native

<b>Prerequisites:</b>

Rust version: 1.71.1

Expand All @@ -25,8 +29,6 @@ Rust version: 1.71.1
3. [`solc`](https://docs.soliditylang.org/en/v0.8.17/installing-solidity.html) >=0.8.12.
4. [`cargo-sort`](https://crates.io/crates/cargo-sort) and [`cargo-udeps`](https://crates.io/crates/cargo-udeps).

## How to run?

Set up third-party dependencies (ERC-4337 smart contracts and bundler tests):

```bash
Expand Down Expand Up @@ -58,6 +60,12 @@ Run only JSON-RPC API:
cargo run --release --bin silius-rpc --http --ws
```

### Docker

```bash
docker run --net=host -v ./bundler-spec-tests/keys:/data/silius -v ./db:/data/silius/db ghcr.io/vid201/silius:latest --rpc-listen-address 0.0.0.0:3000 --eth-client-address http://127.0.0.1:8545 --datadir data/silius --mnemonic-file data/silius/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --beneficiary 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --entry-points 0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789 --http --ws --rpc-api eth,debug,web3
```

## Supported networks

Bundler was tested on the following networks:
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ services:
image: ghcr.io/vid201/silius:latest
network_mode: host
volumes:
- ./bundler-spec-tests/keys:/data/silius
- ./bundler-spec-tests/keys/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266:/data/silius/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
- ./db:/data/silius/db
command:
- --rpc-listen-address
- 0.0.0.0:3000
- --eth-client-address
- http://127.0.0.1:8545
- --datadir
- data/silius
- --mnemonic-file
- data/silius/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
- --beneficiary
Expand Down

0 comments on commit 49530a1

Please sign in to comment.