Skip to content

Commit

Permalink
Merge pull request #50 from ChronoBank/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ega-forever authored Nov 22, 2017
2 parents 9887880 + 02e0eee commit e0705ca
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ after_script:
- pm2 logs --nostream
- pm2 kill && pkill PM2

after_success:
- FULL_GCR_KEY="-----BEGIN PRIVATE KEY-----\n"$GCR_KEY"\n-----END PRIVATE KEY-----\n"
- sed -i -e "s%\PWD%$FULL_GCR_KEY%g" gcregistry.json
- docker login -u _json_key -p "$(cat gcregistry.json)" https://gcr.io
- rm -rf gcregistry.json
- |
if [ "$TRAVIS_TAG" == "" ]; then
IMAGE_TAG_NAME="latest"
elif [ "$TRAVIS_TAG" != "" ]; then
IMAGE_TAG_NAME="develop"
fi;
- docker build --quiet -t gcr.io/deep-wares-144610/middleware-ethereum:$IMAGE_TAG_NAME .
- docker push gcr.io/deep-wares-144610/middleware-ethereum:$IMAGE_TAG_NAME


notifications:
email: false

Expand Down
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM node:8-slim
ENV NETWORK_TYPE DEFAULT_NETWORK_TYPE
ENV NPM_CONFIG_LOGLEVEL warn
RUN apt update && \
apt install -y python make g++ git build-essential && \
npm install -g [email protected] && \
mkdir /app
WORKDIR /app
RUN git clone https://github.com/ChronoBank/Middleware.git src
RUN cd src && \
npm -g install --unsafe-perm=true && \
node . middleware-eth-blockprocessor && \
node . middleware-eth-rest && \
node . middleware-eth-chrono-sc-processor && \
node . middleware-eth-balance-processor && \
node . middleware-eth-ipfs && \
node . middleware-eth-erc20
EXPOSE 8080
CMD pm2-docker start /mnt/config/${NETWORK_TYPE}/ecosystem.config.js
12 changes: 12 additions & 0 deletions gcregistry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "service_account",
"project_id": "deep-wares-144610",
"private_key_id": "38f307c2c65b4e266864eac58f29f846a01841ef",
"client_email": "[email protected]",
"client_id": "100093443474996797417",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/gcregistry%40deep-wares-144610.iam.gserviceaccount.com",
"private_key": "PWD"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"description": "",
"devDependencies": {
"babel-eslint": "^8.0.0",
"chai": "^4.1.1",
"eslint": "^4.6.1",
"eslint-plugin-chronobank": "github:chronobank/eslint-plugin-chronobank",
"chai": "^4.1.1",
"ethereumjs-testrpc": "mikefluff/testrpc",
"ethereumjs-testrpc": "^6.0.3",
"mocha": "^3.5.0",
"sockjs-client": "^1.1.4",
"webstomp-client": "^1.0.6"
Expand Down

0 comments on commit e0705ca

Please sign in to comment.