mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 22:21:21 +00:00
* Add cleveldb build for Amazon Linux In attempting to build Tendermint binaries with cleveldb support that we can use for load testing (see https://github.com/interchainio/got), it became apparent that we need a bit of a simpler build process for this kind of executable. Since we're basing our load testing infrastructure on Amazon Linux, it makes sense to support such a build process for Amazon Linux in a platform-independent way. This PR allows one to simply build the Amazon Linux-compatible binary using Docker on one's local machine. It first builds an Amazon Linux-based build image with Go v1.12.9, and then it uses that image to build the cleveldb version of Tendermint. This should, in theory, be compatible with CentOS too, but that's yet to be tested. * Add comment describing the new Makefile target * Add missing PHONY entry for new Makefile target * Expand on Makefile comment
29 lines
667 B
Docker
29 lines
667 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_c"]
|
|
|