From 82e674ee154326b80e5e98ccab2394a3eb016d10 Mon Sep 17 00:00:00 2001 From: Lenka Segura Date: Oct 26 2018 14:58:34 +0000 Subject: Fix the PYTHONPATH for the dev_worker_1 container When trying to create new project using API, with the `create_readme=True` parameter, there was an ImportError: No module named `pagure.lib`, in the pre-receive hook of the new project. In dev_worker_1 container the PYTHONPATH was pointing to `.`. The hooks were probably not being run from the workdir set in the Dockerfile. Now it points to `/code` and the error is gone. Merges #3944 --- diff --git a/dev/docker-compose.yml b/dev/docker-compose.yml index b68b52c..b04893e 100644 --- a/dev/docker-compose.yml +++ b/dev/docker-compose.yml @@ -33,7 +33,7 @@ services: - ../lcl/attachments:/attachments:ro - ..:/code:z environment: - - PYTHONPATH=. + - PYTHONPATH=/code - PAGURE_CONFIG=/code/dev/openshift.cfg logcom: build: