-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi,
I would like to see a Dockerfile that pulls in the code, builds it and runs a veriumd node built from source in the container itself.
This was my attempt, but it failed due to not finding db4_cxx.h (even though i disabled wallet support).
FROM ubuntu:latest
RUN apt update -y &&
apt upgrade -y
RUN apt-get install -y git
install packages needed to build vericoind
RUN apt install -y
build-essential
libtool
autotools-dev
automake
pkg-config
libssl-dev
libevent-dev
bsdmainutils
libcurl4-openssl-dev
zlib1g-dev
libminizip-dev
libboost-all-dev
python3
install additional packages
RUN apt install -y iftop lsb-release multitail pax-utils tree unzip vim wget
RUN git clone -v https://github.com/VeriumReserve/verium.git ~/verium
install Berkeley DB 4.8
RUN cd ~/verium &&
./contrib/install_db4.sh ~/verium
configure build
RUN export BDB_PREFIX="${HOME}/verium/db4" &&
cd ~/verium/ &&
./autogen.sh &&
./configure --disable-wallet
--enable-hardening
--without-gui
--without-miniupnpc
--with-pic
--prefix=$BDB_PREFIX
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8"
BDB_CFLAGS="-I${BDB_PREFIX}/include"
run the build
RUN cd ~/verium/ &&
make &&
make install
RUN cp ~/verium/src/veriumd /usr/bin/
RUN strip /usr/bin/veriumd
EXPOSE 36988
CMD ["veriumd"]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels