Skip to content

WIP: Attempt to get poetry working#337

Closed
DMRobertson wants to merge 3 commits into
mainfrom
dmr/pyproject-poetry
Closed

WIP: Attempt to get poetry working#337
DMRobertson wants to merge 3 commits into
mainfrom
dmr/pyproject-poetry

Conversation

@DMRobertson
Copy link
Copy Markdown
Contributor

@DMRobertson DMRobertson commented Mar 9, 2022


# 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
Copy link
Copy Markdown
Member

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?


exec python -m synapse.app.homeserver -c /conf/homeserver.yaml "$@"

exec /synapse/.venv/bin/python -m synapse.app.homeserver -c /conf/homeserver.yaml "$@"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similarly, change this to:

Suggested change
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.

Copy link
Copy Markdown
Contributor Author

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.

@DMRobertson
Copy link
Copy Markdown
Contributor Author

As of matrix-org/synapse#12385 we should once again be able to use the entrypoints without having to specify a full path.

@DMRobertson DMRobertson closed this Apr 6, 2022
@DMRobertson DMRobertson deleted the dmr/pyproject-poetry branch April 6, 2022 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants