From 28a631c8115f166dca00e8d801366632f2cf7277 Mon Sep 17 00:00:00 2001 From: Aasim Date: Wed, 16 Jan 2019 22:22:51 +0000 Subject: [PATCH 1/3] Add Support for Rupaya --- assets/rupaya.jpg | Bin 0 -> 11557 bytes config/rupaya/rupaya.compile | 7 +++ config/rupaya/rupaya.env | 5 ++ docker/RUPAYA/Dockerfile_RUPAYA | 87 ++++++++++++++++++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 assets/rupaya.jpg create mode 100644 config/rupaya/rupaya.compile create mode 100644 config/rupaya/rupaya.env create mode 100644 docker/RUPAYA/Dockerfile_RUPAYA diff --git a/assets/rupaya.jpg b/assets/rupaya.jpg new file mode 100644 index 0000000000000000000000000000000000000000..acc96a7d99b8f01779f03be349172eeba5beb876 GIT binary patch literal 11557 zcmeHscT`hbx9?5@geo8%Y0``IjzC1Di&Oyti3kXxgcc+qkRu{pP-zMRDowf~MUf(1 zR62rybdjngA`l@YcjNh<=e#?{z3-0i{`t<@W32tlTyxDe=Uj8`{o5mykCZup#njNm z5P(1cz!>>=mo?a_W`UUuTU|fZ;e!l2nEv%04FXLJuJ`~Ff3;j~T_~-~bm|F_z`v-XlsmiIy zDF}nJgWRuZS)Vcd*Ie+Ij_|*n3=IvH3ssi$5Au{()YR0JS5T5yQj!HVWP`)d7+0(; zI#}fYSUBSm>=uLyz@YrmLWdSzFZ+jJbcBWF!4>5HwZtL(?W?ZPKkc6k{F8xyGVo6Z z{>i{U8TkJ%1Anm{4>U+|LP0JAP`&~hmR|lC|6niw03l^L1wiApi8<9F=>pp?EcOes zjPfT>qyjZmtAEhl+aR8fqAV~vnCR;xEv+pKP0kwp;(Cn6XHjT>C<_4ip)o<$MyG`w zE;tIo`vE9G2haeD0O0Bt9AIu^XnSbW#6Vvt7*zUY|97`D_KV&DBeKSpLPEdA|1-eq z77&C1`JpAKuIvs{BoN1d*f$gta45%vnEkTPA%-5t$Q}eb2x9I-?D;1?@k{4VeCiOp z`=Q-IokO1k-2L1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ZX#36IqUsgZ;;a-w35Z@4y@1Lt z&Mlptu&DAD910Um{u%Uc)n)(>z8t>tvKP?bOQw>vE4Y=R@nj!$x-$G|$5^@hTF-33 zSH2QDLnX@;H17%pU?xvTAp;LsaBVyw7m07B1^Wy#!v~U0<=UiC*XCqF&yL{4j25v~ zAW1yG80+65t77kiAD<7&EF4+OM#S9w#JL+KI)=_3cP3shoA@~Eqt + +ENV CONTAINER_USER masternode +ENV PROJECT rupaya +ENV GIT_URL git://github.com/PIVX-Project/PIVX.git +ENV SVC_VERSION tags/v5.0.33 +ENV HOME_DIR /usr/local/bin +ENV NODE_PORT 9050 +ENV REFRESHED_AT 2019-01-16 + +# add unprivileged user +RUN adduser --shell /bin/bash --disabled-password \ + --disabled-login --gecos '' ${CONTAINER_USER} + +# install system packages and compile +RUN apt-get update \ + && apt-get -y upgrade \ + && apt-get -y install --no-install-recommends build-essential libtool autotools-dev \ + libcurl4-openssl-dev libboost-all-dev libssl-dev libdb++-dev make autoconf automake \ + libtool git apt-utils libprotobuf-dev pkg-config libboost-filesystem-dev libboost-chrono-dev \ + libevent-dev libboost-program-options-dev libgmp-dev libboost-test-dev libboost-thread-dev \ + && mkdir -p /opt/code/ && cd /opt/code/ && git clone ${GIT_URL} ${PROJECT} \ + && cd /opt/code/${PROJECT} && git checkout ${SVC_VERSION} \ + && ./autogen.sh && ./configure --enable-tests=no --with-incompatible-bdb \ + --enable-glibc-back-compat --with-gui=no \ + CFLAGS="-march=native" LIBS="-lcurl -lssl -lcrypto -lz" \ + && make && make install \ + # remove unneeded stuff + && apt-get -y remove build-essential \ + libboost-all-dev libboost-atomic-dev libboost-atomic1.58-dev \ + libboost-chrono-dev libboost-chrono1.58-dev \ + libboost-context-dev libboost-context1.58-dev \ + libboost-coroutine-dev libboost-coroutine1.58-dev \ + libboost-date-time-dev libboost-date-time1.58-dev \ + libboost-dev libboost-exception-dev libboost-exception1.58-dev \ + libboost-filesystem-dev libboost-filesystem1.58-dev \ + libboost-graph-dev libboost-graph-parallel-dev \ + libboost-graph-parallel1.58-dev libboost-graph1.58-dev \ + libboost-iostreams-dev libboost-iostreams1.58-dev libboost-locale-dev \ + libboost-locale1.58-dev libboost-log-dev \ + libboost-log1.58-dev libboost-log1.58.0 libboost-math-dev \ + libboost-math1.58-dev libboost-math1.58.0 libboost-mpi-dev \ + libboost-mpi-python-dev libboost-mpi-python1.58-dev \ + libboost-mpi1.58-dev libboost-program-options-dev \ + libboost-program-options1.58-dev libboost-python-dev \ + libboost-python1.58-dev libboost-random-dev libboost-random1.58-dev \ + libboost-regex-dev libboost-regex1.58-dev libboost-serialization-dev \ + libboost-serialization1.58-dev libboost-signals-dev libboost-signals1.58-dev \ + libboost-system-dev libboost-system1.58-dev libboost-test-dev libboost-test1.58-dev \ + libboost-thread-dev libboost-thread1.58-dev libboost-timer-dev libboost-timer1.58-dev \ + libboost-tools-dev libboost-wave-dev libboost-wave1.58-dev libboost1.58-dev \ + libboost1.58-tools-dev libc6-dev libdb5.3++-dev libdb5.3-dev libevent-dev \ + libexpat1-dev libgmp-dev libibverbs-dev libicu-dev libltdl-dev libnuma-dev \ + libopenmpi-dev libprotobuf-dev libpython-dev libpython2.7-dev libssl-dev \ + mpi-default-dev python-dev python2.7-dev zlib1g-dev \ + && apt -y autoremove \ + && rm -rf /opt/code \ + && rm -rf /var/lib/apt/lists/* + +# EXPOSE the masternode port +EXPOSE ${NODE_PORT} + +RUN chown -R ${CONTAINER_USER} ${HOME_DIR} +USER ${CONTAINER_USER} +WORKDIR ${HOME_DIR} + +# start command +CMD ["/usr/local/bin/rupayad", "--help"] \ No newline at end of file From 6e991ae7817032cf06b802ad3314f8a0d16b11a3 Mon Sep 17 00:00:00 2001 From: Aasim Date: Wed, 16 Jan 2019 23:27:11 +0000 Subject: [PATCH 2/3] add rupaya.conf --- config/rupaya/rupaya.conf | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 config/rupaya/rupaya.conf diff --git a/config/rupaya/rupaya.conf b/config/rupaya/rupaya.conf new file mode 100644 index 00000000..10150ea8 --- /dev/null +++ b/config/rupaya/rupaya.conf @@ -0,0 +1,52 @@ +################################ +# basic settings +################################ +txindex=1 +logtimestamps=1 +listen=1 +daemon=1 +staking=0 +gen=0 +maxconnections=256 +bind=XXX_IPV6_INT_BASE_XXX:XXX_NETWORK_BASE_TAG_XXX::XXX_NUM_XXY:XXX_MNODE_INBOUND_PORT_XXX + +############################# +# nodes we want to stick to +############################# +# addnode=seed1.coinseed.org + + +################################ +# masternode specific settings +################################ +masternode=1 +#### INSERT YOUR MASTERNODE PRIVATEKEY BELOW #################################################### +masternodeprivkey=HERE_GOES_YOUR_MASTERNODE_KEY_FOR_MASTERNODE_XXX_GIT_PROJECT_XXX_XXX_NUM_XXX +################################################################################################# +# +# b. +# 88b Insert your generated masternode privkey here +# 888b. +# 88888b +# 888888b. +# 8888P" +# P" `8. +# `8. +# `8 +################################################################################################# + +############################# +# optional indices +############################# +addressindex=1 +timestampindex=1 +spentindex=1 + +############################# +# JSONRPC +############################# +server=1 +rpcuser=XXX_GIT_PROJECT_XXXrpc +rpcpassword=XXX_PASS_XXX +rpcallowip=127.0.0.1 +rpcport=905XXX_NUM_XXX \ No newline at end of file From 455cfeba97e1e77be74d4e87062b60605a34b183 Mon Sep 17 00:00:00 2001 From: Aasim Date: Wed, 16 Jan 2019 23:31:38 +0000 Subject: [PATCH 3/3] try to autofill config --- config/rupaya/rupaya.conf | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/config/rupaya/rupaya.conf b/config/rupaya/rupaya.conf index 10150ea8..03ca9af2 100644 --- a/config/rupaya/rupaya.conf +++ b/config/rupaya/rupaya.conf @@ -6,14 +6,16 @@ logtimestamps=1 listen=1 daemon=1 staking=0 +enablezeromint=0 gen=0 maxconnections=256 bind=XXX_IPV6_INT_BASE_XXX:XXX_NETWORK_BASE_TAG_XXX::XXX_NUM_XXY:XXX_MNODE_INBOUND_PORT_XXX +externalip=XXX_IPV6_INT_BASE_XXX:XXX_NETWORK_BASE_TAG_XXX::XXX_NUM_XXY +masternodeaddr=XXX_IPV6_INT_BASE_XXX:XXX_NETWORK_BASE_TAG_XXX::XXX_NUM_XXY:XXX_MNODE_INBOUND_PORT_XXX ############################# # nodes we want to stick to ############################# -# addnode=seed1.coinseed.org ################################ @@ -38,9 +40,6 @@ masternodeprivkey=HERE_GOES_YOUR_MASTERNODE_KEY_FOR_MASTERNODE_XXX_GIT_PROJECT_X ############################# # optional indices ############################# -addressindex=1 -timestampindex=1 -spentindex=1 ############################# # JSONRPC @@ -49,4 +48,4 @@ server=1 rpcuser=XXX_GIT_PROJECT_XXXrpc rpcpassword=XXX_PASS_XXX rpcallowip=127.0.0.1 -rpcport=905XXX_NUM_XXX \ No newline at end of file +rpcport=555XXX_NUM_XXX \ No newline at end of file