From 67b586a73494385bc2be977071a934fbe4dfbfbd Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Thu, 2 Feb 2017 11:05:14 +0100 Subject: [PATCH] fixed docker environment variables --- docker/README.md | 2 +- refine.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/README.md b/docker/README.md index b9fa537..911d10e 100644 --- a/docker/README.md +++ b/docker/README.md @@ -46,7 +46,7 @@ There are some client libraries for OpenRefine that communicate with the [OpenRe 2) start server - ```docker run --d --name=openrefine-server -v ${workingdir}:/data:z felixlohmeier/openrefine -i 0.0.0.0 -m 4G -d /data``` + ```docker run -d --name=openrefine-server -v ${workingdir}:/data:z felixlohmeier/openrefine -i 0.0.0.0 -m 4G -d /data``` 3) create project (import file) diff --git a/refine.py b/refine.py index 05ae62d..97205f4 100755 --- a/refine.py +++ b/refine.py @@ -513,11 +513,11 @@ def main(): """Main.""" # get environment variables in docker network - docker_host = os.environ.get('OPENREFINE_PORT_3333_TCP_ADDR') + docker_host = os.environ.get('OPENREFINE_SERVER_PORT_3333_TCP_ADDR') if docker_host: os.environ["OPENREFINE_HOST"] = docker_host refine.REFINE_HOST = docker_host - docker_port = os.environ.get('OPENREFINE_PORT_3333_TCP_PORT') + docker_port = os.environ.get('OPENREFINE_SERVER_PORT_3333_TCP_PORT') if docker_port: os.environ["OPENREFINE_HOST"] = docker_port refine.REFINE_PORT = docker_port