Skip to content

Instantly share code, notes, and snippets.

@philsong
Forked from andychase/Dockerfile
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philsong/c1cde83bd6a27d09dac6 to your computer and use it in GitHub Desktop.
Save philsong/c1cde83bd6a27d09dac6 to your computer and use it in GitHub Desktop.
Faking XT Nodes for fun
# 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"]
# 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