Skip to content

Commit 95f172d

Browse files
committed
Merge pull request bnb-chain#785 from ethereum/revert-781-develop
Revert "refactor Dockerfile"
2 parents 5f6c883 + 1a0b3d8 commit 95f172d

3 files changed

Lines changed: 39 additions & 54 deletions

File tree

‎Dockerfile‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FROM ubuntu:14.04.2
2+
3+
## Environment setup
4+
ENV HOME /root
5+
ENV GOPATH /root/go
6+
ENV PATH /root/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
7+
8+
RUN mkdir -p /root/go
9+
ENV DEBIAN_FRONTEND noninteractive
10+
11+
## Install base dependencies
12+
RUN apt-get update && apt-get upgrade -y
13+
RUN apt-get install -y git mercurial build-essential software-properties-common wget pkg-config libgmp3-dev libreadline6-dev libpcre3-dev libpcre++-dev
14+
15+
## Install Qt5.4.1 (not required for CLI)
16+
# RUN add-apt-repository ppa:beineri/opt-qt541-trusty -y
17+
# RUN apt-get update -y
18+
# RUN apt-get install -y qt54quickcontrols qt54webengine mesa-common-dev libglu1-mesa-dev
19+
# ENV PKG_CONFIG_PATH /opt/qt54/lib/pkgconfig
20+
21+
# Install Golang
22+
RUN wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
23+
RUN tar -C /usr/local -xzf go*.tar.gz && go version
24+
25+
# this is a workaround, to make sure that docker's cache is invalidated whenever the git repo changes
26+
ADD https://api.github.com/repos/ethereum/go-ethereum/git/refs/heads/develop file_does_not_exist
27+
28+
## Fetch and install go-ethereum
29+
RUN mkdir -p $GOPATH/src/github.com/ethereum/
30+
RUN git clone https://github.com/ethereum/go-ethereum $GOPATH/src/github.com/ethereum/go-ethereum
31+
WORKDIR $GOPATH/src/github.com/ethereum/go-ethereum
32+
RUN git checkout develop
33+
RUN GOPATH=$GOPATH:$GOPATH/src/github.com/ethereum/go-ethereum/Godeps/_workspace go install -v ./cmd/geth
34+
35+
## Run & expose JSON RPC
36+
ENTRYPOINT ["geth", "-rpc=true", "-rpcport=8545"]
37+
EXPOSE 8545
38+
39+

‎docker/Dockerfile‎

Lines changed: 0 additions & 31 deletions
This file was deleted.

‎docker/supervisord.conf‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)