Last active
August 29, 2015 14:27
-
-
Save andychase/073acb655e8aa686f73e to your computer and use it in GitHub Desktop.
Faking XT Nodes for fun
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
# Use the Ubuntu Linux distro as the base for this image | |
FROM ubuntu | |
# Install necessary build tools | |
RUN apt-get update && apt-get upgrade --yes && apt-get install build-essential clang git --yes | |
# Download and install PseudoNode | |
RUN cd /root && git clone https://github.com/basil00/PseudoNode.git && cd ./PseudoNode && make | |
# These two commands enable port 8333 to be routed and start the node by default | |
EXPOSE 8333 | |
CMD ["bash", "-c", "cd /root/PseudoNode && ./pseudonode --stealth --coin=bitcoin-xt"] |
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
# run.sh | |
# ## Assuming Docker is installed and set up | |
# ## Build Docker image from source | |
docker build --tag=xtnode - < Dockerfile | |
# ## Spin up nodes | |
# Change the port numbers in seq to change the number you want spun up | |
for i in $(seq 32800 32859); do docker run -d -p "${i}:8333" xtnode; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment