Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Add docker-trinity-beacon-image-build-test CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed Dec 5, 2019
1 parent be07a16 commit a28b071
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
12 changes: 10 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,13 +373,20 @@ jobs:
environment:
TOXENV: py37-eth2-components

docker-image-build-test:
docker-trinity-image-build-test:
machine: true
steps:
- checkout
- run: docker build -t ethereum/trinity:test-build -f ./docker/Dockerfile .
- run: docker run ethereum/trinity:test-build --help

docker-trinity-beacon-image-build-test:
machine: true
steps:
- checkout
- run: docker build -t ethereum/trinity-beacon:test-build -f ./docker/beacon.Dockerfile .
- run: docker run ethereum/trinity-beacon:test-build --help

workflows:
version: 2
test:
Expand Down Expand Up @@ -434,4 +441,5 @@ workflows:
- py37-lint
- py37-lint-eth2

- docker-image-build-test
- docker-trinity-image-build-test
- docker-trinity-beacon-image-build-test
11 changes: 5 additions & 6 deletions docker/beacon.Dockerfile
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"]

0 comments on commit a28b071

Please sign in to comment.