# Pull base image. FROM eris/base MAINTAINER Eris Industries <support@erisindustries.com> # Set the env variables to non-interactive ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_PRIORITY critical ENV DEBCONF_NOWARNINGS yes ENV TERM linux RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections # grab deps (gmp) RUN apt-get update && \ apt-get install -y --no-install-recommends \ libgmp3-dev && \ rm -rf /var/lib/apt/lists/* # install the wrapper/start script COPY DOCKER/start.sh /usr/local/bin/erisdb-wrapper # set the repo and install tendermint ENV REPO github.com/tendermint/tendermint ENV BRANCH permissions RUN mkdir --parents $GOPATH/src/$REPO WORKDIR $GOPATH/src/$REPO RUN git clone https://$REPO . && \ git checkout $BRANCH && \ go build -o ./build/tendermint ./cmd/tendermint mv ./build/tendermint /usr/local/bin/tendermint # set the repo and install erisdb ENV REPO $GOPATH/src/github.com/eris-ltd/eris-db COPY . $REPO WORKDIR $REPO RUN cd ./cmd/erisdb && \ go build && \ mv erisdb /usr/local/bin/ && \ cd ../erisdbss && \ go build && \ mv erisdbss /usr/local/bin/ # set the repo and install mint-client ENV REPO github.com/eris-ltd/mint-client ENV BRANCH master RUN mkdir --parents $GOPATH/src/$REPO WORKDIR $GOPATH/src/$REPO RUN git clone https://$REPO . && \ git checkout $BRANCH && \ go install ./... && \ mv $GOPATH/bin/mint* /usr/local/bin && \ mv ./mint-client /usr/local/bin/ # cleanup RUN rm -rf $GOPATH/src/* # persist data, set user VOLUME /home/$USER/.eris WORKDIR /home/$USER/.eris USER $USER RUN mkdir --parents /home/$USER/.eris/blockchains/tendermint ENV TMROOT /home/$USER/.eris/blockchains/tendermint # run tendermint CMD ["erisdb-wrapper"]