From 0d4b9c63353d6be735e3fa3728d714710d5e2c81 Mon Sep 17 00:00:00 2001 From: John-Scott Atlakson <24574+jsma@users.noreply.github.com> Date: Thu, 9 Nov 2023 23:39:22 -0800 Subject: [PATCH] Remove uninterpreted environment variable from `docker-compose.yml` This caused a spurious warning when running `docker compose` commands because `$PYTHONPATH` is not defined on the docker _host_ and docker attempted to interpret it as if it were any other environment variable e.g. `$DB_USER`, etc. All it accomplished was to add a non-existent directory to the path: ```bash docker compose run web bash root@2bc54a69fd5c:/code/bakerydemo# echo $PYTHONPATH /code/wagtail:/code/bakerydemo:$PYTHONPATH root@2bc54a69fd5c:/code/bakerydemo# python -c "import sys; print('\n'.join(sys.path))" /code/wagtail /code/bakerydemo /code/bakerydemo/$PYTHONPATH /usr/local/lib/python38.zip /usr/local/lib/python3.8 /usr/local/lib/python3.8/lib-dynload /usr/local/lib/python3.8/site-packages /code/willow ``` Fixes #56 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 449ec40..341cd11 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,7 @@ services: - "8000:8000" environment: DATABASE_URL: "postgres://wagtail:changeme@db/wagtail" - PYTHONPATH: "/code/wagtail:/code/bakerydemo:$PYTHONPATH" + PYTHONPATH: "/code/wagtail:/code/bakerydemo" depends_on: - db - frontend