File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
Load diff This file was deleted.
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments