Created
December 6, 2017 03:15
-
-
Save sudoaza/47f17cc23876a4b565693449a9ae97eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
# Install dependencies | |
RUN apt-get update && apt-get install -y \ | |
autoconf \ | |
automake \ | |
autotools-dev \ | |
build-essential \ | |
cmake \ | |
doxygen \ | |
g++-4.9 \ | |
gcc-4.9 \ | |
git \ | |
libboost-all-dev \ | |
libboost-iostreams-dev \ | |
libbz2-dev \ | |
libdb-dev \ | |
libdb++-dev \ | |
libffi-dev \ | |
libicu-dev \ | |
libncurses5-dev \ | |
libreadline-dev \ | |
libssl-dev \ | |
libtool \ | |
make \ | |
openssl \ | |
wget | |
# Install custom eliptic curve lib | |
WORKDIR /bts | |
RUN git clone https://github.com/cryptonomex/secp256k1-zkp.git | |
WORKDIR /bts/secp256k1-zkp | |
RUN ./autogen.sh && ./configure && make -j $(nproc) | |
# *** Install custom boost version *** | |
WORKDIR /tmp | |
ENV BOOST_ROOT /bts/boost_1_58_0 | |
# Dowload | |
RUN wget -c http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.bz2/download \ | |
-O boost_1_58_0.tar.bz2 | |
# Extract | |
RUN tar xjf boost_1_58_0.tar.bz2 | |
# Build | |
WORKDIR /tmp/boost_1_58_0 | |
RUN ./bootstrap.sh "--prefix=$BOOST_ROOT" && ./b2 install | |
# *** Install bitshares ** | |
WORKDIR /bts | |
RUN git clone https://github.com/bitshares/bitshares-core.git && \ | |
cd bitshares-core && \ | |
git checkout master && \ | |
git submodule update --init --recursive | |
WORKDIR /bts/bitshares-core | |
RUN cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=RelWithDebInfo . && \ | |
make -j $(nproc) | |
EXPOSE 8090 | |
VOLUME ["/bts/bitshares-core/witness_node_data_dir/blockchain"] | |
##ENTRYPOINT ["./programs/witness_node/witness_node", "--rpc-endpoint", "0.0.0.0:8090"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment