Skip to content

Commit

Permalink
blubber: Invoke poetry as entrypoint without full path
Browse files Browse the repository at this point in the history
Blubber has changed upstream to install Python libraries in a virtual
environment to make modern Debian base images that mark the system as
`EXTERNALLY-MANAGED` happier. This in turn has changed the location of
the `poetry` entrypoint from the former /usr/local/bin/poetry to
/opt/lib/venv/bin/poetry inside the /opt/lib/venv venv root.

In all cases other than then "production" variant we have been relying
on the PATH configuration inside the container to find `poetry` for us.
These other entrypoints also do no use fully qualified paths for their
main binary (`sh`). Rather than hard coding the new venv managed
location we will now also rely on proper configuration of PATH for the
"production" variant's entrypoint of `poetry ...`.

Bug: T365744
Change-Id: Ie519eca47e66edcf90d7ab0c09d309665feb9852
  • Loading branch information
bd808 committed May 23, 2024
1 parent 6611f03 commit f1cd1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pipeline/blubber.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ variants:
source: /srv/app
destination: .
entrypoint:
- /usr/local/bin/poetry
- poetry
- run
- python3
- manage.py
Expand Down

0 comments on commit f1cd1c8

Please sign in to comment.