mirror of
https://github.com/tendermint/tendermint.git
synced 2025-12-23 06:15:19 +00:00
Reduce the number of targets and make the buildsystem more flexible by parsing the TENDERMINT_BUILD_OPTIONS command line variable (a-la Debian, inspired by dpkg-buildpackage's DEB_BUILD_OPTIONS), e.g: $ make install TENDERMINT_BUILD_OPTIONS='cleveldb' replaces the old: $ make install_c Options can be mix&match'd, e.g.: $ make install TENDERMINT_BUILD_OPTIONS='cleveldb race nostrip' Three options are available: - nostrip: don't strip debugging symbols nor DWARF tables. - cleveldb: use cleveldb as db backend instead of goleveldb; it switches on the CGO_ENABLED Go environment variale. - race: pass -race to go build and enable data race detection. This changeset is a port of gaia pull request: cosmos/gaia#363.
29 lines
702 B
Docker
29 lines
702 B
Docker
FROM amazonlinux:2
|
|
|
|
RUN yum -y update && \
|
|
yum -y install wget
|
|
|
|
RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
|
|
rpm -ivh epel-release-latest-7.noarch.rpm
|
|
|
|
RUN yum -y groupinstall "Development Tools"
|
|
RUN yum -y install leveldb-devel which
|
|
|
|
ENV GOVERSION=1.12.9
|
|
|
|
RUN cd /tmp && \
|
|
wget https://dl.google.com/go/go${GOVERSION}.linux-amd64.tar.gz && \
|
|
tar -C /usr/local -xf go${GOVERSION}.linux-amd64.tar.gz && \
|
|
mkdir -p /go/src && \
|
|
mkdir -p /go/bin
|
|
|
|
ENV PATH=$PATH:/usr/local/go/bin:/go/bin
|
|
ENV GOBIN=/go/bin
|
|
ENV GOPATH=/go/src
|
|
|
|
RUN mkdir -p /tendermint
|
|
WORKDIR /tendermint
|
|
|
|
CMD ["/usr/bin/make", "build", "TENDERMINT_BUILD_OPTIONS=cleveldb"]
|
|
|