This repository has been archived by the owner on Jul 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
docker-trinity-beacon-image-build-test
CI job
- Loading branch information
Showing
2 changed files
with
15 additions
and
8 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 |
---|---|---|
@@ -1,19 +1,18 @@ | ||
FROM python:3.7 | ||
|
||
# Set up code directory | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
# Install deps | ||
RUN apt-get update | ||
RUN apt-get -y install libsnappy-dev gcc g++ cmake | ||
|
||
ARG GITREF=interop | ||
|
||
RUN git clone https://github.com/ethereum/trinity.git . | ||
RUN git checkout $GITREF | ||
RUN pip install -e .[dev] --no-cache-dir | ||
RUN pip install -e .[eth2-dev] --no-cache-dir | ||
RUN pip install -U trinity --no-cache-dir | ||
|
||
RUN echo "Type \`trinity-beacon\` to boot or \`trinity-beacon --help\` for an overview of commands" | ||
|
||
EXPOSE 30303 30303/udp | ||
# Trinity shutdowns aren't yet solid enough to avoid the fix-unclean-shutdown | ||
ENTRYPOINT trinity $EXTRA_OPTS fix-unclean-shutdown && trinity-beacon $EXTRA_OPTS | ||
ENTRYPOINT ["trinity-beacon"] |