Skip to content

Commit

Permalink
Merge pull request #914 from lucassz/master
Browse files Browse the repository at this point in the history
Merged #914
  • Loading branch information
hdoupe authored Jul 3, 2018
2 parents a0a1dd4 + 52ca793 commit 8bd9cff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ for information on how to set this up on your operating system.
2. run
```
export PB_VERSION='type current PolicyBrain version here'
docker build -t distributed:$PB_VERSION ./
docker build -t celery:$PB_VERSION --file Dockerfile.celery ./
docker build -t flask:$PB_VERSION --file Dockerfile.flask
docker build -t opensourcepolicycenter/distributed:$PB_VERSION ./
docker build -t opensourcepolicycenter/celery:$PB_VERSION --build-arg TAG=$PB_VERSION --file Dockerfile.celery ./
docker build -t opensourcepolicycenter/flask:$PB_VERSION --build-arg TAG=$PB_VERSION --file Dockerfile.flask ./
```
3. Depending on your system you may have to tweak the Docker memory and CPU
usage limits. I find that I can do most runs with RAM set around 8 GB and
Expand Down
3 changes: 2 additions & 1 deletion distributed/api/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
bp = Blueprint('endpoints', __name__)

queue_name = "celery"
client = redis.StrictRedis(host="redis", port=6379)
client = redis.StrictRedis.from_url(os.environ.get("CELERY_BROKER_URL",
"redis://redis:6379/0"))


def dropq_endpoint(dropq_task):
Expand Down

0 comments on commit 8bd9cff

Please sign in to comment.