bitpay / bitcore

A full stack for bitcoin and blockchain-based applications
https://bitcore.io/
MIT License
4.83k stars 2.08k forks source link

Running from source code #3527

Closed ASHKARAN closed 1 year ago

ASHKARAN commented 1 year ago

I tried to run the whole git repo after running database and nodes i tried to run docker-compose.yml Dockerfile successfuly ran but after that it crashes, anyone knows what's the problem? RUN npm run compile is the latest command inside Dockerfile i tried to add Run npm run node at the end of file, but after adding this line -d doesn't work and the process continue in terminal and container is not available from host machine

escottalexander commented 1 year ago

Does it report any errors after the npm compile? Oh I see what you mean. You are saying that is the last line in the Dockerfile. I assumed you meant the console.

Docker is used to run the testing suite for each package inside the main repo. To run the tests use npm run test:ci:local from the /bitcore directory.

We do not currently have a quick and easy way to run all the packages with Docker though it's not too hard to configure your local bitcore.config.json to use the blockchain nodes spun up in Docker during the tests. Once your bitcore.config.json is configured you can run npm run node to start Bitcore-Node.

ASHKARAN commented 1 year ago

yeah, i got it too late thanks