This repository was archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux.Dockerfile
More file actions
58 lines (48 loc) · 2.54 KB
/
linux.Dockerfile
File metadata and controls
58 lines (48 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM ubuntu:18.04
ENV SRC_IMG=ubuntu:18.04
ARG BUILD_TARGET=linux
ENV BUILD_TARGET=linux
ARG DESTDIR=/daps/bin/
ENV DESTDIR=$DESTDIR
ARG VERSION=UNTAGGED
ENV VERSION=$VERSION
#COPY source
RUN apt-get update
RUN apt-get install git autoconf -y
RUN git clone https://github.com/DAPSCoin/DAPSCoin.git
RUN apt-get update
RUN apt-get autoremove -y
#INSTALL COMMON ESSENTIAL
RUN apt-get update -y
##RUN apt-get install curl -y
RUN apt-get install g++-mingw-w64-x86-64 -y
RUN apt-get install curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python3-setuptools -y
RUN apt-get install libzmq3-dev build-essential libtool autotools-dev automake pkg-config wget nsis libevent-dev python-setuptools patch zip -y --fix-missing
RUN apt-get install libssl-dev libqt5gui5 libboost-all-dev libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev -y
#INSTALL POA MINER DEPENDENCIES
RUN apt-get install libcurl4-openssl-dev libjansson-dev -y --fix-missing
#CLEANUP UNUSED PACKAGES
RUN apt-get autoremove -y
RUN cd /DAPSCoin/ && mkdir -p /BUILD/bin/
# RUN wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
# RUN tar -xzvf db-4.8.30.NC.tar.gz
# RUN cd db-4.8.30.NC/build_unix && make && make install
# RUN export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
# RUN export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"
# RUN ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so /usr/lib/libdb-4.8.so
# RUN ln -s /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.so /usr/lib/libdb_cxx-4.8.so
RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak
RUN wget https://launchpad.net/~bitcoin-abc/+archive/ubuntu/ppa/+files/libdb4.8_4.8.30-xenial4_amd64.deb
RUN dpkg -i libdb4.8_4.8.30-xenial4_amd64.deb
RUN wget https://launchpad.net/~bitcoin-abc/+archive/ubuntu/ppa/+files/libdb4.8-dev_4.8.30-xenial4_amd64.deb
RUN dpkg -i libdb4.8-dev_4.8.30-xenial4_amd64.deb
RUN wget https://launchpad.net/~bitcoin-abc/+archive/ubuntu/ppa/+files/libdb4.8++_4.8.30-xenial4_amd64.deb
RUN dpkg -i libdb4.8++_4.8.30-xenial4_amd64.deb
RUN wget https://launchpad.net/~bitcoin-abc/+archive/ubuntu/ppa/+files/libdb4.8++-dev_4.8.30-xenial4_amd64.deb
RUN dpkg -i libdb4.8++-dev_4.8.30-xenial4_amd64.deb
RUN apt-get update -y
RUN cd /DAPSCoin/; chmod +x /DAPSCoin/autogen.sh; ./autogen.sh
RUN chmod 777 /DAPSCoin/share/genbuild.sh
RUN chmod 777 /DAPSCoin/src/leveldb/*
RUN cd /DAPSCoin/; CONFIG_SITE=$PWD/depends/x86_64-linux-gnu/share/config.site ./configure --prefix=/; make
CMD /bin/bash -c "trap: TERM INT; sleep infinity & wait"