Skip to content

Commit 47dad01

Browse files
committed
simulators/ethereum: add eest/consume-enginex simulator
1 parent f789aac commit 47dad01

File tree

1 file changed

+31
-0
lines changed
  • simulators/ethereum/eest/consume-enginex

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Builds and runs the EEST (execution-spec-tests) consume engine simulator
2+
FROM ghcr.io/astral-sh/uv:python3.10-bookworm-slim
3+
4+
## Default fixtures/git-ref
5+
ARG fixtures=stable@latest
6+
ENV FIXTURES=${fixtures}
7+
ARG branch=main
8+
ENV GIT_REF=${branch}
9+
10+
## Clone and install EEST
11+
RUN apt-get update && apt-get install -y git
12+
13+
# Allow the user to specify a branch or commit to checkout
14+
RUN git init execution-spec-tests && \
15+
cd execution-spec-tests && \
16+
git remote add origin https://github.com/ethereum/execution-spec-tests.git && \
17+
git fetch --depth 1 origin $GIT_REF && \
18+
git checkout FETCH_HEAD;
19+
20+
WORKDIR /execution-spec-tests
21+
RUN uv sync
22+
23+
# Cache the fixtures. This is done to avoid re-downloading the fixtures every time
24+
# the container starts.
25+
# If newer version of the fixtures is needed, the image needs to be rebuilt.
26+
# Use `--docker.nocache` flag to force rebuild.
27+
RUN uv run consume cache -q --input "$FIXTURES"
28+
29+
## Define `consume engine` entry point using the local fixtures
30+
ENTRYPOINT uv run consume enginex -v --input "$FIXTURES" --dist=loadgroup --enginex-fcu-frequency=0
31+

0 commit comments

Comments
 (0)