forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ethereum#47 from etienne-napoleone/docker
Docker for tomochain base image
- Loading branch information
Showing
4 changed files
with
25 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
# Build Geth in a stock Go builder container | ||
FROM golang:1.10-alpine as builder | ||
|
||
RUN apk add --no-cache make gcc musl-dev linux-headers | ||
|
||
ADD . /go-ethereum | ||
RUN cd /go-ethereum && make geth | ||
ADD . /tomochain | ||
RUN cd /tomochain && make tomo | ||
|
||
# Pull Geth into a second stage deploy alpine container | ||
FROM alpine:latest | ||
|
||
RUN apk add --no-cache ca-certificates | ||
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ | ||
LABEL maintainer="[email protected]" | ||
|
||
EXPOSE 8545 8546 30303 30303/udp 30304/udp | ||
ENTRYPOINT ["geth"] | ||
COPY --from=builder /tomochain/build/bin/tomo /usr/local/bin/tomo | ||
|
||
RUN chmod +x /usr/local/bin/tomo | ||
|
||
EXPOSE 8545 | ||
EXPOSE 30303 | ||
|
||
ENTRYPOINT ["/usr/local/bin/tomo", "--help"] |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
version: "3.4" | ||
|
||
services: | ||
|
||
sut: | ||
build: . | ||
volumes: | ||
- "./docker/docker_tests.sh:/test/docker_tests.sh" | ||
entrypoint: | ||
- /bin/sh | ||
- /test/docker_tests.sh |
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,3 @@ | ||
#!/bin/sh | ||
|
||
$(tomo --help | grep -q tomo) |