
Runs on EC2-docker AWS instance
{
"docid": O,
"algo": "kbis",
}
extractor = Kbisprocessor()
pred = extractor.preannot(dlf)
docker build -t stackateam/kbis_worker:0.5 . --rm
Locally
docker run --env-file env.list stackateam/kbis_worker:<tag_version>
On EC2 instance
nohup sudo docker run --env-file env.list stackateam/kbis_worker:latest > caseip_logs.txt &
The file "env.list" should contain the following variables:
AWS_SECRET_ACCESS_KEY=
AWS_ACCESS_KEY_ID=$
RABBIT_QUEUE=
RABBIT_USER=
RABBIT_PASSWORD=
AMPQ_URL=
HEROKU_API_TOKEN=
HEROKU_API=
________________________________________________________________
| MAN PAGE |
| - To run without models DL: python worker.py --no-dwd |
| - To download all models from S3: python worker.py |
| - Don't forget to export all the env variables for local use |
|______________________________________________________________|

Content type
Image
Digest
Size
3.1 GB
Last updated
over 6 years ago
docker pull stackateam/kbis_worker