forked from bitpay/bitcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding docker and removing bitcore-build for now
- Loading branch information
Micah Riggan
committed
Apr 6, 2018
1 parent
6c6fa4d
commit 4d6eddd
Showing
23 changed files
with
69 additions
and
10,717 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**/node_modules |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM node:carbon | ||
WORKDIR /usr/src/app | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY lerna.json ./ | ||
|
||
COPY ./packages/bitcore-lib/package.json ./packages/bitcore-lib/package.json | ||
COPY ./packages/bitcore-lib-cash/package.json ./packages/bitcore-lib-cash/package.json | ||
COPY ./packages/bitcore-p2p/package.json ./packages/bitcore-p2p/package.json | ||
COPY ./packages/bitcore-p2p-cash/package.json ./packages/bitcore-p2p-cash/package.json | ||
COPY ./packages/bitcore-wallet-client/package.json ./packages/bitcore-wallet-client/package.json | ||
COPY ./packages/bitcore-wallet/package.json ./packages/bitcore-wallet/package.json | ||
COPY ./packages/bitcore-node/package.json ./packages/bitcore-node/package.json | ||
COPY ./packages/insight/package.json ./packages/insight/package.json | ||
COPY ./packages/insight/app/package.json ./packages/insight/app/package.json | ||
|
||
RUN ./node_modules/.bin/lerna bootstrap | ||
|
||
COPY . . | ||
EXPOSE 3000 | ||
EXPOSE 8100 | ||
CMD ["./node_modules/.bin/lerna", "run", "start"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
# Installing | ||
``` | ||
npm install | ||
npm run bootstrap | ||
``` | ||
|
||
# Running Bitcore-Node | ||
|
||
To run bitcore-node you'll need | ||
* mongoDB v3.4.11 | ||
* node 8.9.4 | ||
* a valid config.json | ||
* see bitcore-node/README | ||
|
||
Alternatively, if you have docker | ||
|
||
``` | ||
docker-compose up | ||
``` | ||
|
||
# Services | ||
* bitcore-node | ||
* port 3000 | ||
* insight | ||
* port 8100 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
database: | ||
image: mongo:3.4-jessie | ||
bitcore-node: | ||
image: bitcore-node | ||
links: | ||
- database | ||
ports: | ||
- 8100:8100 | ||
- 3000:3000 | ||
environment: | ||
- DB_HOST=database |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
{ | ||
"lerna": "2.9.1", | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"version": "0.0.0" | ||
"version": "8.0.0" | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.