-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile.test to enable testing with Docker
- Loading branch information
1 parent
3c266b7
commit 2f6afdc
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM debian:latest | ||
|
||
ENV HOME /home/dev | ||
|
||
WORKDIR /home/dev/code/Nexus | ||
|
||
VOLUME /home/dev/.Nexus | ||
|
||
RUN apt-get update && apt-get -y --no-install-recommends install \ | ||
build-essential \ | ||
ca-certificates \ | ||
git \ | ||
libboost-all-dev \ | ||
libdb-dev \ | ||
libdb++-dev \ | ||
libgmp3-dev \ | ||
libminiupnpc-dev \ | ||
libqrencode-dev \ | ||
libqt4-dev \ | ||
libssl-dev \ | ||
psmisc \ | ||
qt4-default \ | ||
qt4-qmake \ | ||
screen \ | ||
vim \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
COPY . /home/dev/code/Nexus | ||
|
||
RUN cp makefile.unix Makefile && USE_LLD=1 make -j$(nproc) && rm -f Makefile | ||
|
||
RUN qmake nexus-qt.pro "RELEASE=1" "USE_UPNP=-" "USE_LLD=1" && make -j$(nproc) | ||
|
||
RUN cd qa/smoke && /bin/bash setup-two-local-test-nodes.sh | ||
|
||
RUN cd /home/dev/code && git clone https://github.com/Nexusoft/PrimeSoloMiner.git && cd PrimeSoloMiner && ln -s makefile.unix Makefile && make -j$(nproc) | ||
|
||
CMD /bin/bash qa/smoke/start-local-testnet.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -vex | ||
|
||
echo "starting local regression test nodes" | ||
|
||
cd /home/dev/nexustest | ||
|
||
cd testnet1 | ||
|
||
./run-test-nexus.sh & | ||
|
||
cd ../testnet2 | ||
|
||
./run-test-nexus.sh & | ||
|
||
cd $HOME/code/Nexus/qa/smoke | ||
|
||
./startminerfortest.sh & | ||
|
||
exit 0 |