Parameterized mongo_db + Added internal state saving for p1
This commit is contained in:
@@ -186,6 +186,7 @@ After uploading, restart the stack with `27017` commented out.
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
pip install git+https://gitea.cjvt.si/ozbolt/luscenje_struktur.git
|
||||
pip install git+https://gitea.cjvt.si/kristjan/cjvt-corpusparser.git
|
||||
```
|
||||
|
||||
### Running on already setup environment
|
||||
@@ -215,6 +216,11 @@ docker exec -it ef0a /bin/bash
|
||||
# following steps in docker bash:
|
||||
mongorestore --gzip --archive=dump.gz --db valdb --uri=mongodb://<REGULAR USERNAME>:<REGULAR PASSWORD>@0.0.0.0:27017
|
||||
|
||||
# add privilegies for user to write into other databases like extvaldb
|
||||
mongo --username <ADMIN USER> --password --authenticationDatabase admin
|
||||
use valdb
|
||||
db.grantRolesToUser(<REGULAR USER>, [{ role: "readWrite", db: "extvaldb"}])
|
||||
|
||||
# check if it worked by
|
||||
mongo --username <REGULAR USER> --password --authenticationDatabase valdb
|
||||
```
|
||||
Reference in New Issue
Block a user