Comments (11)
I tried it in a clean environment just now without issues.
You need the other files in this repo as well.
Docker Hub uses this repo to build my image, so I'm sure it's working fine.
from bitcore-node.
image on docker hub is old then. I did not build it from source.
Can you push new build to hub pls so I can check
from bitcore-node.
I usually build it when I push new code but I forced a build on Docker Hub just now to make sure.
from bitcore-node.
still same issue. don't know why but it can't find that file. And the container keeps restarting so I can't peek into the console where the files are.
I had to use a different image from docker hub to run bitcore node
from bitcore-node.
OK I don't know anything about Rancher OS but I tried again by pulling the image from Docker Hub:
Just curious.. which image are you using instead?
from bitcore-node.
this one: https://hub.docker.com/r/sena/bitcore/
it's weird. Maybe I did not set up the volume mapping correctly and that is why it does not find the files.
looking at your print out I should have mapped /root/bitcoin-node/data
folder instead of /root/bitcoin-node
like it says on the docker hub?
from bitcore-node.
yep, issue with folder mapping. Just tried your image again with out any volume mappings and it works
16/02/2018 14:52:27[2018-02-16T14:52:26.979Z] info: Using config: /root/bitcoin-node/bitcore-node.json
16/02/2018 14:52:27[2018-02-16T14:52:27.001Z] info: Using network: testnet
16/02/2018 14:52:27[2018-02-16T14:52:27.002Z] info: Starting bitcoind
16/02/2018 14:52:27[2018-02-16T14:52:27.042Z] info: Using bitcoin config file: /root/bitcoin-node/data/bitcoin.conf
16/02/2018 14:52:27[2018-02-16T14:52:27.083Z] info: Starting bitcoin process
16/02/2018 14:52:32[2018-02-16T14:52:32.654Z] warn: Loading wallet...
16/02/2018 14:52:38[2018-02-16T14:52:38.207Z] info: Bitcoin Height: 78 Percentage: 0.00
16/02/2018 14:52:38[2018-02-16T14:52:38.288Z] warn: ZMQ connection delay: tcp://127.0.0.1:28332
16/02/2018 14:52:38[2018-02-16T14:52:38.289Z] info: ZMQ connected to: tcp://127.0.0.1:28332
16/02/2018 14:52:38[2018-02-16T14:52:38.374Z] info: Bitcoin Daemon Ready
16/02/2018 14:52:38[2018-02-16T14:52:38.392Z] info: Starting web
16/02/2018 14:52:39[2018-02-16T14:52:39.152Z] info: Starting insight-api
16/02/2018 14:52:39[2018-02-16T14:52:39.153Z] info: Starting insight-ui
16/02/2018 14:52:39[2018-02-16T14:52:39.174Z] info: Bitcore Node ready
16/02/2018 14:52:53[2018-02-16T14:52:53.303Z] info: Bitcoin Height: 650 Percentage: 0.06
Think the problem is that the folder is mapped when you run the container. At which point the whole /root/bitcoin-node
is empty and that is why your script is missing :)
so a fix for rancher is to map data folder and config json file separately or to manually copy sh file to the folder you map it to. I did not create a volume for this and bind it to the folder. That is why it failed.
from bitcore-node.
Glad you found a solution!
from bitcore-node.
Hi @jeshan .
Thanks for making this available. I have been making use of bitcore-lib and bitcore-insight libraries in my project, and is has not been easy for me, due to frequent outages of bitpay server connections.
I have this image(bitcore node) now and was hoping i could get an high level highlights on how to connect to this container service endpoints, so i can be less dependent on bitpay public API. I am semi average in this field.
Thanks.
from bitcore-node.
@bush4u
Running this project as follows:
docker run --rm -P -v /root/bitcoin-node --name testnet jeshan/bitcore-node
Insight UI is running internally on port 3001 and is mapped to 32772 on localhost:
The api is on the same port and this shows it's running (the library will of course pass in the right parameters):
Hope that helps. Otherwise, open a new issue.
from bitcore-node.
Thanks so much for saving my day.
This works perfectly well.
So grateful for your support
from bitcore-node.
Related Issues (5)
- Bitcoin Cash HOT 1
- Unclear how to access the insight api HOT 6
- livenet not working? HOT 2
- Cannot turn off rate limiter HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcore-node.