Skip to content

Commit

Permalink
containers/docker: update dockerfile to build from nextyio/gonex (eth…
Browse files Browse the repository at this point in the history
  • Loading branch information
hadv committed Jun 14, 2019
1 parent 74ebe27 commit 8800c7c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
10 changes: 5 additions & 5 deletions containers/docker/develop-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ FROM alpine:3.7

RUN \
apk add --update go git make gcc musl-dev linux-headers ca-certificates && \
git clone --depth 1 https://github.com/ethereum/go-ethereum && \
(cd go-ethereum && make geth) && \
cp go-ethereum/build/bin/geth /geth && \
git clone --depth 1 https://github.com/nextyio/gonex && \
(cd gonex && make gonex) && \
cp gonex/build/bin/gonex /nexty && \
apk del go git make gcc musl-dev linux-headers && \
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
rm -rf /gonex && rm -rf /var/cache/apk/*

EXPOSE 8545
EXPOSE 30303

ENTRYPOINT ["/geth"]
ENTRYPOINT ["/nexty"]
18 changes: 9 additions & 9 deletions containers/docker/develop-ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM ubuntu:xenial
FROM ubuntu:bionic

ENV PATH=/usr/lib/go-1.9/bin:$PATH
ENV PATH=/usr/lib/go-1.10/bin:$PATH

RUN \
apt-get update && apt-get upgrade -q -y && \
apt-get install -y --no-install-recommends golang-1.9 git make gcc libc-dev ca-certificates && \
git clone --depth 1 https://github.com/ethereum/go-ethereum && \
(cd go-ethereum && make geth) && \
cp go-ethereum/build/bin/geth /geth && \
apt-get remove -y golang-1.9 git make gcc libc-dev && apt autoremove -y && apt-get clean && \
rm -rf /go-ethereum
apt-get install -y --no-install-recommends golang-1.10 git make gcc libc-dev ca-certificates && \
git clone --depth 1 https://github.com/nextyio/gonex && \
(cd gonex && make gonex) && \
cp gonex/build/bin/gonex /nexty && \
apt-get remove -y golang-1.10 git make gcc libc-dev && apt autoremove -y && apt-get clean && \
rm -rf /gonex

EXPOSE 8545
EXPOSE 30303

ENTRYPOINT ["/geth"]
ENTRYPOINT ["/nexty"]
10 changes: 5 additions & 5 deletions containers/docker/master-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ FROM alpine:3.7

RUN \
apk add --update go git make gcc musl-dev linux-headers ca-certificates && \
git clone --depth 1 --branch release/1.8 https://github.com/ethereum/go-ethereum && \
(cd go-ethereum && make geth) && \
cp go-ethereum/build/bin/geth /geth && \
git clone --depth 1 --branch release/2.0 https://github.com/nextyio/gonex && \
(cd gonex && make gonex) && \
cp gonex/build/bin/gonex /nexty && \
apk del go git make gcc musl-dev linux-headers && \
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
rm -rf /gonex && rm -rf /var/cache/apk/*

EXPOSE 8545
EXPOSE 30303

ENTRYPOINT ["/geth"]
ENTRYPOINT ["/nexty"]
18 changes: 9 additions & 9 deletions containers/docker/master-ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM ubuntu:xenial
FROM ubuntu:bionic

ENV PATH=/usr/lib/go-1.9/bin:$PATH
ENV PATH=/usr/lib/go-1.10/bin:$PATH

RUN \
apt-get update && apt-get upgrade -q -y && \
apt-get install -y --no-install-recommends golang-1.9 git make gcc libc-dev ca-certificates && \
git clone --depth 1 --branch release/1.8 https://github.com/ethereum/go-ethereum && \
(cd go-ethereum && make geth) && \
cp go-ethereum/build/bin/geth /geth && \
apt-get remove -y golang-1.9 git make gcc libc-dev && apt autoremove -y && apt-get clean && \
rm -rf /go-ethereum
apt-get install -y --no-install-recommends golang-1.10 git make gcc libc-dev ca-certificates && \
git clone --depth 1 --branch release/2.0 https://github.com/nextyio/gonex && \
(cd gonex && make gonex) && \
cp gonex/build/bin/gonex /nexty && \
apt-get remove -y golang-1.10 git make gcc libc-dev && apt autoremove -y && apt-get clean && \
rm -rf /gonex

EXPOSE 8545
EXPOSE 30303

ENTRYPOINT ["/geth"]
ENTRYPOINT ["/nexty"]

0 comments on commit 8800c7c

Please sign in to comment.