Newer
Older
Casey Kuhlman
committed
# 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/*
Casey Kuhlman
committed
# install the wrapper/start script
COPY DOCKER/start.sh /usr/local/bin/erisdb-wrapper
Casey Kuhlman
committed
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
Casey Kuhlman
committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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"]