Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

Commit

Permalink
Remove unneeded services
Browse files Browse the repository at this point in the history
This commit removes the services that will no longer be needed as we
deprecate the DynamoDB storage engine and move to the new system of
monitors.

This completely eliminates the Python codebase, and eliminates the
Node codebase from production, though Node is still used for initializing
the test network, at least for now.
  • Loading branch information
AusIV committed May 6, 2018
1 parent 13b4584 commit 948e433
Show file tree
Hide file tree
Showing 24 changed files with 2 additions and 1,142 deletions.
18 changes: 0 additions & 18 deletions .circleci/config.yml
@@ -1,21 +1,5 @@
version: 2
jobs:
python_build_and_test:
docker:
- image: circleci/python:3.6
environment:
AWS_ACCESS_KEY_ID: placeholder
AWS_SECRET_ACCESS_KEY: placeholder
AWS_DEFAULT_REGION: us-east-1
- image: cnadiminti/dynamodb-local
steps:
- checkout
- run: sudo apt install python3-virtualenv python3-dev libev-dev
# - run: sudo ln -s /usr/lib/python3/dist-packages/virtualenv.py /usr/local/bin/virtualenv
- run: sudo chmod +x /usr/lib/python3/dist-packages/virtualenv.py
- run: make mock
- run: make pytest

node_build_and_test:
docker:
- image: circleci/node:8
Expand All @@ -29,7 +13,6 @@ jobs:
- run: npm install
- run: make mock
- run: make nodesetup
- run: make jstest
golang_build_delayrelay:
docker:
- image: circleci/golang:1.8
Expand Down Expand Up @@ -233,7 +216,6 @@ workflows:
version: 2
build_and_test:
jobs:
- python_build_and_test
- node_build_and_test
- golang_build_delayrelay
- golang_build_fundcheckrelay
Expand Down
7 changes: 0 additions & 7 deletions Dockerfile.blockmonitor

This file was deleted.

7 changes: 0 additions & 7 deletions Dockerfile.fillindexer

This file was deleted.

7 changes: 0 additions & 7 deletions Dockerfile.fillmonitor

This file was deleted.

7 changes: 0 additions & 7 deletions Dockerfile.indexer

This file was deleted.

7 changes: 0 additions & 7 deletions Dockerfile.queueorders

This file was deleted.

9 changes: 0 additions & 9 deletions Dockerfile.searchapi

This file was deleted.

24 changes: 2 additions & 22 deletions Makefile
Expand Up @@ -15,9 +15,6 @@ clean: dockerstop


dockerstop:
docker stop `cat $(BASE)/tmp/dynamo.containerid` || true
docker rm `cat $(BASE)/tmp/dynamo.containerid` || true
rm $(BASE)/tmp/dynamo.containerid || true
docker stop `cat $(BASE)/tmp/redis.containerid` || true
docker rm `cat $(BASE)/tmp/redis.containerid` || true
rm $(BASE)/tmp/redis.containerid || true
Expand Down Expand Up @@ -98,16 +95,6 @@ $(BASE)/tmp/postgres.containerid:
mkdir -p $(BASE)/tmp
docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=secret postgres > $(BASE)/tmp/postgres.containerid

$(BASE)/tmp/dynamo.containerid:
mkdir -p $(BASE)/tmp
docker run -d -p 8000:8000 cnadiminti/dynamodb-local > $(BASE)/tmp/dynamo.containerid

$(BASE)/py/.env: $(BASE)
virtualenv -p python3.6 $(BASE)/py/.env || virtualenv -p python3.4 $(BASE)/py/.env
$(BASE)/py/.env/bin/python $(BASE)/py/.env/bin/pip install -r $(BASE)/py/requirements/api.txt
$(BASE)/py/.env/bin/python $(BASE)/py/.env/bin/pip install -r $(BASE)/py/requirements/indexer.txt
$(BASE)/py/.env/bin/python $(BASE)/py/.env/bin/pip install nose

gotest: $(BASE)/tmp/redis.containerid $(BASE)/tmp/postgres.containerid
cd $(BASE)/funds && go test
cd $(BASE)/channels && REDIS_URL=localhost:6379 go test
Expand All @@ -122,22 +109,15 @@ gotest: $(BASE)/tmp/redis.containerid $(BASE)/tmp/postgres.containerid
cd $(BASE)/search && POSTGRES_HOST=localhost POSTGRES_USER=postgres POSTGRES_PASSWORD=secret go test
cd $(BASE)/db && POSTGRES_HOST=localhost POSTGRES_USER=postgres POSTGRES_PASSWORD=secret go test

pytest: $(BASE)/py/.env $(BASE)/tmp/dynamo.containerid
cd $(BASE)/py && DYNAMODB_HOST="http://localhost:8000" $(BASE)/py/.env/bin/python .env/bin/nosetests

jstest: $(BASE)/tmp/redis.containerid
cd $(BASE)/js && REDIS_URL=localhost:6379 node_modules/.bin/mocha

docker-cfg/ca-certificates.crt:
cp /etc/ssl/certs/ca-certificates.crt docker-cfg/ca-certificates.crt

test: $(BASE)/tmp/dynamo.containerid $(BASE)/tmp/redis.containerid jstest gotest pytest dockerstop
test_no_docker: mock jstest gotest pytest
test: $(BASE)/tmp/redis.containerid gotest dockerstop
test_no_docker: mock gotest
mock: $(BASE)
mkdir -p $(BASE)/tmp
touch $(BASE)/tmp/redis.containerid
touch $(BASE)/tmp/postgres.containerid
touch $(BASE)/tmp/dynamo.containerid
newvendor:
govendor add +external

Expand Down
9 changes: 0 additions & 9 deletions js/blockMonitor.js

This file was deleted.

38 changes: 0 additions & 38 deletions js/exchangeMonitor.js

This file was deleted.

87 changes: 0 additions & 87 deletions js/monitor.js

This file was deleted.

0 comments on commit 948e433

Please sign in to comment.