github.com/karalabe/go-ethereum@v0.8.5/tests/files/ansible/test-files/docker-go/Dockerfile (about)

     1  # Adjusted from https://github.com/ethereum/go-ethereum/blob/develop/Dockerfile
     2  FROM ubuntu:14.04
     3  
     4  ## Environment setup
     5  ENV HOME /root
     6  ENV GOPATH /root/go
     7  ENV PATH /go/bin:/root/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
     8  
     9  RUN mkdir -p /root/go
    10  ENV DEBIAN_FRONTEND noninteractive
    11  
    12  ## Install base dependencies
    13  RUN apt-get update && apt-get upgrade -y
    14  RUN apt-get install -y git mercurial build-essential software-properties-common pkg-config libgmp3-dev libreadline6-dev libpcre3-dev libpcre++-dev
    15  
    16  ## Build and install Go
    17  RUN hg clone -u release https://code.google.com/p/go
    18  RUN cd go && hg update go1.4
    19  RUN cd go/src && ./make.bash && go version
    20  
    21  ## Install GUI dependencies
    22  RUN add-apt-repository ppa:ubuntu-sdk-team/ppa -y
    23  RUN apt-get update -y
    24  RUN apt-get install -y qtbase5-private-dev qtdeclarative5-private-dev libqt5opengl5-dev
    25  
    26  ## Fetch and install serpent-go
    27  RUN go get -v -d github.com/ethereum/serpent-go
    28  WORKDIR $GOPATH/src/github.com/ethereum/serpent-go
    29  # RUN git checkout master
    30  RUN git submodule update --init
    31  RUN go install -v
    32  
    33  # Fetch and install go-ethereum
    34  RUN go get -v -d github.com/ethereum/go-ethereum/...
    35  WORKDIR $GOPATH/src/github.com/ethereum/go-ethereum
    36  
    37  RUN git checkout develop
    38  
    39  RUN git pull
    40  RUN ETH_DEPS=$(go list -f '{{.Imports}} {{.TestImports}} {{.XTestImports}}' github.com/ethereum/go-ethereum/... | sed -e 's/\[//g' | sed -e 's/\]//g' | sed -e 's/C //g'); if [ "$ETH_DEPS" ]; then go get $ETH_DEPS; fi
    41  RUN go install -v ./cmd/ethtest
    42  
    43  # Run JSON RPC
    44  ENTRYPOINT ["ethtest"]
    45  EXPOSE 8080
    46