-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a docker image for EVMTool, so that the GoEvmLab tool can easily integrate the besu EVM into its fuzzing framework. Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
- Loading branch information
Showing
2 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
FROM openjdk:11.0.7-jre-slim-buster | ||
|
||
RUN adduser --disabled-password --gecos "" --home /opt/besu-evmtool besu && \ | ||
chown besu:besu /opt/besu-evmtool | ||
|
||
USER besu | ||
WORKDIR /opt/besu-evmtool | ||
|
||
COPY --chown=besu:besu besu-evmtool /opt/besu-evmtool/ | ||
|
||
ENV PATH="/opt/besu-evmtool/bin:${PATH}" | ||
ENTRYPOINT ["evm"] | ||
|
||
# Build-time metadata as defined at http://label-schema.org | ||
ARG BUILD_DATE | ||
ARG VCS_REF | ||
ARG VERSION | ||
LABEL org.label-schema.build-date=$BUILD_DATE \ | ||
org.label-schema.name="Besu EVMTool" \ | ||
org.label-schema.description="EVM Execution Tool" \ | ||
org.label-schema.url="https://besu.hyperledger.org/" \ | ||
org.label-schema.vcs-ref=$VCS_REF \ | ||
org.label-schema.vcs-url="https://github.com/hyperledger/besu.git" \ | ||
org.label-schema.vendor="Hyperledger" \ | ||
org.label-schema.version=$VERSION \ | ||
org.label-schema.schema-version="1.0" |