Dockerfile updates from BitShares
This commit is contained in:
parent
462f737227
commit
4fcf92097e
1 changed files with 15 additions and 5 deletions
20
Dockerfile
20
Dockerfile
|
|
@ -16,7 +16,7 @@ RUN \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libncurses-dev \
|
libncurses-dev \
|
||||||
doxygen \
|
doxygen \
|
||||||
libcurl4-openssl-dev \
|
ca-certificates \
|
||||||
&& \
|
&& \
|
||||||
apt-get update -y && \
|
apt-get update -y && \
|
||||||
apt-get install -y fish && \
|
apt-get install -y fish && \
|
||||||
|
|
@ -28,12 +28,19 @@ WORKDIR /peerplays-core
|
||||||
|
|
||||||
# Compile
|
# Compile
|
||||||
RUN \
|
RUN \
|
||||||
|
( git submodule sync --recursive || \
|
||||||
|
find `pwd` -type f -name .git | \
|
||||||
|
while read f; do \
|
||||||
|
rel="$(echo "${f#$PWD/}" | sed 's=[^/]*/=../=g')"; \
|
||||||
|
sed -i "s=: .*/.git/=: $rel/=" "$f"; \
|
||||||
|
done && \
|
||||||
|
git submodule sync --recursive ) && \
|
||||||
git submodule update --init --recursive && \
|
git submodule update --init --recursive && \
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
. && \
|
. && \
|
||||||
make witness_node && \
|
make witness_node cli_wallet && \
|
||||||
make install && \
|
install -s programs/witness_node/witness_node programs/cli_wallet/cli_wallet /usr/local/bin && \
|
||||||
#
|
#
|
||||||
# Obtain version
|
# Obtain version
|
||||||
mkdir /etc/peerplays && \
|
mkdir /etc/peerplays && \
|
||||||
|
|
@ -53,12 +60,15 @@ VOLUME ["/var/lib/peerplays", "/etc/peerplays"]
|
||||||
# rpc service:
|
# rpc service:
|
||||||
EXPOSE 8090
|
EXPOSE 8090
|
||||||
# p2p service:
|
# p2p service:
|
||||||
EXPOSE 2001
|
EXPOSE 1776
|
||||||
|
|
||||||
# default exec/config files
|
# default exec/config files
|
||||||
ADD docker/default_config.ini /etc/peerplays/config.ini
|
ADD docker/default_config.ini /etc/peerplays/config.ini
|
||||||
ADD docker/peerplaysentry.sh /usr/local/bin/peerplaysentry.sh
|
ADD docker/peerplaysentry.sh /usr/local/bin/peerplaysentry.sh
|
||||||
RUN chmod a+x /usr/local/bin/peerplaysentry.sh
|
RUN chmod a+x /usr/local/bin/peerplaysentry.sh
|
||||||
|
|
||||||
|
# Make Docker send SIGINT instead of SIGTERM to the daemon
|
||||||
|
STOPSIGNAL SIGINT
|
||||||
|
|
||||||
# default execute entry
|
# default execute entry
|
||||||
CMD /usr/local/bin/peerplaysentry.sh
|
CMD ["/usr/local/bin/peerplaysentry.sh"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue