2015-10-15 14:36:25 +00:00
|
|
|
# This will build the witness_node in a docker image. Make sure you've already
|
|
|
|
|
# checked out the submodules before building.
|
|
|
|
|
|
2015-10-14 21:22:05 +00:00
|
|
|
FROM l3iggs/archlinux:latest
|
|
|
|
|
MAINTAINER Nathan Hourt <nathan@followmyvote.com>
|
|
|
|
|
|
|
|
|
|
RUN pacman -Syu --noconfirm gcc make autoconf automake cmake ninja boost libtool git
|
|
|
|
|
|
2015-10-15 14:36:25 +00:00
|
|
|
ADD . /bitshares-2
|
2015-10-14 21:22:05 +00:00
|
|
|
WORKDIR /bitshares-2
|
2015-10-15 14:36:25 +00:00
|
|
|
RUN cmake -G Ninja -DCMAKE_BUILD_TYPE=Release .
|
2015-10-15 15:04:46 +00:00
|
|
|
RUN ninja witness_node || ninja -j 1 witness_node
|
2015-10-14 21:22:05 +00:00
|
|
|
|
|
|
|
|
RUN mkdir /data_dir
|
2015-10-15 14:36:25 +00:00
|
|
|
ADD docker/default_config.ini /default_config.ini
|
|
|
|
|
ADD docker/launch /launch
|
2015-10-14 21:22:05 +00:00
|
|
|
RUN chmod a+x /launch
|
|
|
|
|
VOLUME /data_dir
|
|
|
|
|
|
2015-10-21 18:50:16 +00:00
|
|
|
EXPOSE 8090 9090
|
2015-10-14 21:22:05 +00:00
|
|
|
|
|
|
|
|
ENTRYPOINT ["/launch"]
|