Skip to content

Commit

Permalink
Merge pull request #230 from BrightID/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
abramsymons authored Apr 28, 2021
2 parents 0aa2f7c + 89e4a8d commit ff13c1b
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 5 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ services:
target: /snapshots
env_file:
- config.env
environment:
- INIT_BRIGHTID_DB

consensus_receiver:
build: consensus
Expand Down
10 changes: 9 additions & 1 deletion scorer/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import os
import os, shutil

SNAPSHOTS_PATH = "/snapshots"
if 'INIT_BRIGHTID_DB' in os.environ:
for fname in os.listdir(SNAPSHOTS_PATH):
fpath = os.path.join(SNAPSHOTS_PATH, fname)
if os.path.isfile(fpath) or os.path.islink(fpath):
os.unlink(fpath)
elif os.path.isdir(fpath):
shutil.rmtree(fpath)

BN_ARANGO_PROTOCOL = os.environ['BN_ARANGO_PROTOCOL']
BN_ARANGO_HOST = os.environ['BN_ARANGO_HOST']
BN_ARANGO_PORT = int(os.environ['BN_ARANGO_PORT'])
Expand Down
Binary file modified web_services/foxx/apply5.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion web_services/foxx/brightid/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "BrightID-Node",
"description": "Read and update the anonymous social graph stored on BrightID nodes.",
"license": "ISC",
"version": "5.9.5",
"version": "5.9.6",
"tests": [
"tests/*.js"
],
Expand Down
2 changes: 1 addition & 1 deletion web_services/foxx/brightid/manifest_apply.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"main": "apply.js",
"name": "apply",
"description": "Allows BrightID consensus module to apply operations to the database.",
"version": "5.9.5",
"version": "5.9.6",
"scripts": {
"setup": "initdb.js"
}
Expand Down
2 changes: 1 addition & 1 deletion web_services/foxx/brightid/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web_services/foxx/brightid/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "brightid-foxx",
"description": "Foxx service for managing BrightID connections",
"version": "5.9.5",
"version": "5.9.6",
"dependencies": {
"base64-js": "^1.3.0",
"crypto-js": "^3.1.9-1",
Expand Down
Binary file modified web_services/foxx/brightid5.zip
Binary file not shown.

0 comments on commit ff13c1b

Please sign in to comment.