Skip to content

Commit

Permalink
docker for beam-node: fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SwimmingTiger committed Aug 7, 2019
1 parent f878cd0 commit 43ce3d1
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions docker/beam-node/main-release-mining/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,25 @@ CMD ["/sbin/my_init"]
# use aliyun source
ADD sources-aliyun.com.list /etc/apt/sources.list

RUN apt-get update
RUN apt-get install -y build-essential libtool pkg-config libssl-dev
RUN apt-get install -y libboost-all-dev curl wget unzip git cmake
RUN apt-get update && apt-get install -y build-essential libtool pkg-config libssl-dev libboost-all-dev curl wget unzip git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# build bitcoind
RUN mkdir /work
RUN cd /work && git clone -b mining-hard-fork --depth 1 https://github.com/btccom/beam.git
# download cmake
RUN cd /usr/local && \
wget https://github.com/Kitware/CMake/releases/download/v3.15.1/cmake-3.15.1-Linux-x86_64.tar.gz && \
tar zxf cmake-3.15.1-Linux-x86_64.tar.gz --strip-components=1 && \
rm cmake-3.15.1-Linux-x86_64.tar.gz

# build beam-node
RUN mkdir /work && cd /work && git clone -b mining-hard-fork --depth 1 https://github.com/btccom/beam.git
RUN cd /work/beam \
&& cmake -DCMAKE_BUILD_TYPE=Release -DBEAM_NO_QT_UI_WALLET=ON . \
#&& make && make install
&& make -j$(nproc)

# mkdir bitcoind data dir
RUN mkdir -p /work/beam-node

#
# services
#
# mkdir dirs
RUN mkdir -p /work/beam-node /etc/service/beam-node

# service for mainnet
RUN mkdir /etc/service/beam-node
ADD run /etc/service/beam-node/run
RUN chmod +x /etc/service/beam-node/run

0 comments on commit 43ce3d1

Please sign in to comment.