Skip to content

Commit

Permalink
Adding docker and removing bitcore-build for now
Browse files Browse the repository at this point in the history
  • Loading branch information
micahriggan committed Apr 6, 2018
1 parent 6c6fa4d commit 4d6eddd
Show file tree
Hide file tree
Showing 23 changed files with 69 additions and 10,717 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/node_modules
22 changes: 22 additions & 0 deletions Dockerfile
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"]
22 changes: 21 additions & 1 deletion README.md
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

11 changes: 11 additions & 0 deletions docker-compose.yml
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
5 changes: 1 addition & 4 deletions lerna.json
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"
}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"version": "8.0.0",
"scripts": {
"postinstall": "./node_modules/.bin/lerna bootstrap"
},
"devDependencies": {
"lerna": "^2.9.1"
}
Expand Down
2 changes: 0 additions & 2 deletions packages/bitcore-build/.gitignore

This file was deleted.

45 changes: 0 additions & 45 deletions packages/bitcore-build/.jshintrc

This file was deleted.

41 changes: 0 additions & 41 deletions packages/bitcore-build/README.md

This file was deleted.

Loading

0 comments on commit 4d6eddd

Please sign in to comment.