-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Attempt to get poetry working #337
Conversation
@@ -24,7 +24,7 @@ COPY keys/* /ca/ | |||
RUN openssl genrsa -out /conf/server.tls.key 2048 | |||
|
|||
# generate a signing key | |||
RUN generate_signing_key -o /conf/server.signing.key | |||
RUN /synapse/.venv/bin/generate_signing_key -o /conf/server.signing.key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we arrange for /synapse/.venv/bin
to be on the default PATH, so we don't need to worry about this?
@@ -24,5 +24,4 @@ openssl x509 -req -in /conf/server.tls.csr \ | |||
-CA /ca/ca.crt -CAkey /ca/ca.key -set_serial 1 \ | |||
-out /conf/server.tls.crt | |||
|
|||
exec python -m synapse.app.homeserver -c /conf/homeserver.yaml "$@" | |||
|
|||
exec /synapse/.venv/bin/python -m synapse.app.homeserver -c /conf/homeserver.yaml "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similarly, change this to:
exec /synapse/.venv/bin/python -m synapse.app.homeserver -c /conf/homeserver.yaml "$@" | |
exec synapse_homeserver -c /conf/homeserver.yaml "$@" |
... and then it becomes independent of the poetry change. It's a good thing to do anyway, if we're now telling people to use the entrypoint, per /~https://github.com/matrix-org/synapse/pull/12337/files#diff-7b3ed02bc73dc06b7db906cf97aa91dec2b2eb21f2d92bc5caa761df5bbc168fR323.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll do this separately.
As of matrix-org/synapse#12385 we should once again be able to use the entrypoints without having to specify a full path. |
See matrix-org/synapse#12385