Skip to content

Commit

Permalink
fix: docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Vid201 committed Oct 28, 2023
1 parent 7c949e2 commit 3c06de4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
- name: Setup Yarn cache - submodule "thirdparty/account-abstraction"
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.17'
cache: 'yarn'
cache-dependency-path: crates/contracts/thirdparty/account-abstraction

- name: Setup Yarn cache - submodule "thirdparty/bundler"
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.17'
cache: 'yarn'
cache-dependency-path: tests/thirdparty/bundler

Expand Down
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ members = [
]
default-members = ["bin/silius"]

# Explicitly set the resolver to version 2, which is the default for packages with edition >= 2021
# https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html
resolver = "2"

[workspace.package]
authors = ["Vid Kersic <[email protected]>"]
version = "0.3.0-alpha"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/silius-rs/silius"
rust-version = "1.71.1"
rust-version = "1.73.0"

[workspace.dependencies]
async-stream = "0.3.5"
Expand Down
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# build
FROM ubuntu:18.04 AS builder

RUN apt-get update && apt-get -y upgrade && apt-get install -y build-essential software-properties-common curl git clang pkg-config libclang-dev libssl-dev
RUN apt-get update && apt-get -y upgrade && apt-get install -y build-essential software-properties-common ca-certificates curl gnupg git clang pkg-config libclang-dev libssl-dev
RUN add-apt-repository ppa:ethereum/ethereum && apt-get update && apt-get install -y solc

RUN curl -sL https://deb.nodesource.com/setup_14.x | sh -
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

Expand All @@ -23,7 +25,7 @@ RUN make setup-thirdparty
RUN make build

# run
FROM frolvlad/alpine-glibc
FROM frolvlad/alpine-glibc:alpine-3.17

RUN mkdir -p /data/silius

Expand All @@ -33,6 +35,6 @@ COPY --from=builder /silius/target/release/silius /usr/local/bin/silius

EXPOSE 3000 3001

ENTRYPOINT ["usr/local/bin/silius"]
ENTRYPOINT ["/usr/local/bin/silius"]

LABEL org.opencontainers.image.source=https://github.com/silius-rs/silius
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ For more information: https://hackmd.io/@Vid201/aa-bundler-rust

<b>Prerequisites:</b>

Rust version: 1.71.1
Rust version: 1.73.0

1. `libclang-dev`, `pkg-config` and `libssl-dev` on Debian/Ubuntu.
2. Ethereum execution client JSON-RPC API with enabled [`debug_traceCall`](https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-debug#debug_tracecall). For production, you can use [Geth](https://github.com/ethereum/go-ethereum) or [Erigon](https://github.com/ledgerwatch/erigon). For testing, we are using Geth dev mode (tested with [v1.12.0](https://github.com/ethereum/go-ethereum/releases/tag/v1.12.0)); so you need to install [Geth](https://geth.ethereum.org/docs/getting-started/installing-geth) for running tests.
Expand Down
1 change: 1 addition & 0 deletions bundler-spec-tests/launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ case $1 in

start)
docker-compose up -d
sleep 2
silius bundler \
--verbosity 4 \
--eth-client-address http://127.0.0.1:8545 \
Expand Down

0 comments on commit 3c06de4

Please sign in to comment.