Add missing PYTHONPATH environment variable

Without:

~/wmf/growthbook main *1 ?2 ❯ docker run -it --rm 7d2b0171ed06a2be6ba3e2c6ceb48be37b17292e08543290905dbedb3006f55f
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/opt/ldap-sync/ldap_sync/cli.py", line 13, in <module>
    import click
ModuleNotFoundError: No module named 'click'

With:

~/wmf/growthbook main *1 !1 ?2 ❮ docker run -it --rm f77848d811ff3b74fc6b0849a248920c38d1091eae33d53bf0a6f9001a2e36d5
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Usage: python -m ldap_sync.cli [OPTIONS] COMMAND [ARGS]...

  Sync GrowthBook user roles from Wikimedia IDM (Bitu) LDAP groups.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  report  Print current state without making any changes.
  sync    Reconcile GrowthBook role assignments from LDAP/Bitu group state.

Signed-off-by: Balthazar Rouberol brouberol@wikimedia.org Bug: T420691

Closes T420691

Merge request reports

Loading