Skip to content

Commit 49530a1

Browse files
committed
fix: fix docker
1 parent 1281b9c commit 49530a1

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ RUN make build
2525
# run
2626
FROM frolvlad/alpine-glibc
2727

28+
RUN mkdir -p /data/silius
29+
30+
RUN apk add openssl1.1-compat
31+
2832
COPY --from=builder /silius/target/release/silius /usr/local/bin/silius
2933

3034
EXPOSE 3000

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ For more information: https://hackmd.io/@Vid201/aa-bundler-rust
1616

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

19-
## Prerequisites
19+
## Getting started
20+
21+
### Native
22+
23+
<b>Prerequisites:</b>
2024

2125
Rust version: 1.71.1
2226

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

28-
## How to run?
29-
3032
Set up third-party dependencies (ERC-4337 smart contracts and bundler tests):
3133

3234
```bash
@@ -58,6 +60,12 @@ Run only JSON-RPC API:
5860
cargo run --release --bin silius-rpc --http --ws
5961
```
6062

63+
### Docker
64+
65+
```bash
66+
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
67+
```
68+
6169
## Supported networks
6270

6371
Bundler was tested on the following networks:

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ services:
44
image: ghcr.io/vid201/silius:latest
55
network_mode: host
66
volumes:
7-
- ./bundler-spec-tests/keys:/data/silius
7+
- ./bundler-spec-tests/keys/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266:/data/silius/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
8+
- ./db:/data/silius/db
89
command:
910
- --rpc-listen-address
1011
- 0.0.0.0:3000
1112
- --eth-client-address
1213
- http://127.0.0.1:8545
14+
- --datadir
15+
- data/silius
1316
- --mnemonic-file
1417
- data/silius/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
1518
- --beneficiary

0 commit comments

Comments
 (0)