checkpoint

This commit is contained in:
2016-08-18 13:50:02 +02:00
parent 2c9c10924f
commit 5387c3bfae
4 changed files with 86 additions and 27 deletions

View File

@@ -1,62 +1,91 @@
FROM phusion/baseimage:0.9.19
ENV STEEMD_REV master
# steem:master as of 2016-08-18
ARG STEEMD_REPO=https://github.com/steemit/steem.git
ARG STEEMD_REV=045c2a340d254d11dfcd22e1253646132465f9b7
# secp256k1:master as of 2016-08-18
ARG SECP256K1_REPO=https://github.com/bitcoin/secp256k1
ARG SECP256K1_REV=7a49cacd3937311fcb1cb36b6ba3336fca811991
ARG UBUNTU_MIRROR=mirror://mirrors.ubuntu.com/mirrors.txt
ARG STEEMD_REPO=https://github.com/steemit/steem.git
RUN sed -i \
-e s#http://archive.ubuntu.com/ubuntu/#${UBUNTU_MIRROR}#g \
-e s#http://security.ubuntu.com/ubuntu/#${UBUNTU_MIRROR}#g \
/etc/apt/sources.list ; \
grep -v deb-src /etc/apt/sources.list > \
/etc/apt/sources.list.new && \
mv /etc/apt/sources.list.new /etc/apt/sources.list && \
cat /etc/apt/sources.list
RUN \
apt-get update && \
apt-get install -y \
autoconf \
automake \
autotools-dev \
bsdmainutils \
build-essential \
cmake \
doxygen \
git \
libboost-chrono-dev \
libboost-filesystem-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-test-dev \
libboost-thread-dev \
libevent-dev \
libminiupnpc-dev \
libboost-all-dev \
libreadline-dev \
libssl-dev \
libtool \
libzmq3-dev \
libzmq5 \
pkg-config \
ncurses-dev \
python3 \
python3-dev \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN \
git clone $STEEMD_REPO /usr/local/src/steem && \
cd /usr/local/src/steem && \
git checkout $STEEMD_REV && \
git clone \
$SECP256K1_REPO \
/usr/local/src/secp256k1 && \
cd /usr/local/src/secp256k1 && \
git checkout $SECP256K1_REV && \
./autogen.sh && \
./configure --enable-hardening && \
make -j2 && \
./configure && \
make -j8 && \
./tests && \
make install && \
cd / && \
rm -rfv /usr/local/src/secp256k1
RUN \
git clone \
$STEEMD_REPO \
/usr/local/src/steem && \
cd /usr/local/src/steem && \
git checkout $STEEMD_REV && \
git submodule update --init --recursive && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DLOW_MEMORY_NODE=ON \
. \
&& \
make -j8 && \
make install && \
rm -rf /usr/local/src/steem
# FIXME run steemd tests as part of build
RUN \
apt-get remove -y \
automake \
autotools-dev \
bsdmainutils \
build-essential \
doxygen \
git \
libssl-dev \
libtool \
pkg-config \
python3-dev \
&& \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
@@ -74,7 +103,6 @@ EXPOSE 8333
RUN mkdir -p /etc/service/steemd
ADD steemd.run /etc/service/steemd/run
RUN mkdir -p /etc/service/steemd/log
ADD steemd.log.run /etc/service/steemd/log/run
RUN chmod +x /etc/service/steemd/log/run \