Skip to content

NewYorkCoin-NYC/newyorkcoin-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

WIP -NewYorkCoin Core in a Docker container

Run a NewYorkCoin fullnode in a Docker container

But why should I do that?!

  • To support the NewYorkCoin community.
  • Just for the sake of doing it.
  • Because it's fun.

How to install

Make sure that port 22556 is being forwarded on your router!

It's not that hard, actually. There are two ways to get it up and running:

Pull and run the image from the Docker Store

You only need to run one command to get it up and running:

docker run -p 22556:22556 -v /localfolder/newyorkcoin-volume:/root/.newyorkcoin NewYorkCoinNYC/newyorkcoin-node:latest

Change the value for /localfolder/newyorkcoin-volume above to an absolute path on your system where NewYorkCoin Core can store the blockchain data.

It is possible to run without a volume, however the blockchain data will be deleted each time you run it. This may not be wise as it can take days to download the full blockchain.

Boom, your Dogecoin node is up and running!

Custom command line arguments

By default, the image runs newyorkcoind -printtoconsole as the command. You can customize the command arguments if desired.
Here's an example of a customized command argument for -maxuploadtarget=20000.

docker run -p 22556:22556 -v /localfolder/newyorkcoin-volume:/root/.newyorkcoin NewYorkCoinNYC/newyorkcoin-node:latest newyorkcoind -printtoconsole -maxuploadtarget=20000

How to build

The build assumes the web links for NewYorkCoin Core will be consistent, matching the current format: https://github.com/dogecoin/dogecoin/releases/download/v1.14.4/dogecoin-1.14.4-x86_64-linux-gnu.tar.gz

Given that, version must be specified on the commandline. The build is run as follows:

sudo docker build --build-arg version=1.14.4 . -t=doge:latest

Optional: kickstart the node with a bootstrap file

Initial sync may take a looooong time (total blockchain size as of writing is over 50 GB!). That's why it may be useful to have a bootstrap file to make the initial sync process a little faster.

You can get the bootstrap.dat file from:

Sit back and relax while it's downloading. It's a large file, so it may take some time.

Copy the bootstrap.dat file to the mapped volume directory as shown above, /localfolder/dogevolume is our example.

Once the node has imported the bootstrap.dat file, it'll be renamed to bootstrap.dat.old.

TO THE MOON!!!

Much Receive: D6fhh4nDsYfyBjLFb1CaVZCq4xr7JPXsjQ

About

NewYorkCoin Core in a Docker container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%