-
Notifications
You must be signed in to change notification settings - Fork 56
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
Drop old oldstable buster and sub new oldstable bullseye #1358
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG BASE_IMAGE=debian:buster | ||
ARG BASE_IMAGE=debian:bullseye | ||
|
||
FROM ${BASE_IMAGE} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG SYTEST_IMAGE_TAG=buster | ||
ARG SYTEST_IMAGE_TAG=bullseye | ||
|
||
FROM matrixdotorg/sytest:${SYTEST_IMAGE_TAG} | ||
|
||
|
@@ -21,13 +21,9 @@ RUN mkdir /rust /cargo | |
|
||
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable --profile minimal | ||
|
||
# Use the latest version of pip. This pulls in fixes not present in the | ||
# pip version provided by Debian Buster. See | ||
# https://github.com/pypa/setuptools/issues/3457#issuecomment-1190125849 | ||
# For now, we need to tell Debian we don't care that we're editing the system python | ||
# installation. | ||
# Some context in https://github.com/pypa/pip/issues/11381#issuecomment-1399263627 | ||
RUN ${PYTHON_VERSION} -m pip install -q --upgrade pip ${SYSTEM_PIP_INSTALL_SUFFIX} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My thinking on dropping this is my reading of the issue mentioned indicates that the version of pip shipped in bullseye (20.3.4-4) should be sufficient as it is greater than 19? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The change seems sane to me (even though the sytest docker machinery does not). I don't follow what is meant by
which is amusing because I wrote the comment. #1334 and #1339 shed some light. I think it's referring to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to be clear, when you refer to "I think we probably need to leave this in place for now", do you mean the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sorry: the former, keeping SYSTEM_PIP_INSTALL_SUFFIX as the diff is currently. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok great thanks! |
||
RUN ${PYTHON_VERSION} -m pip install -q --no-cache-dir poetry==1.3.2 ${SYSTEM_PIP_INSTALL_SUFFIX} | ||
|
||
# As part of the Docker build, we attempt to pre-install Synapse's dependencies | ||
|
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'm somewhat surprised that we don't need
SYSTEM_PIP_INSTALL_SUFFIX=--break-system-packages
here, but if it works then LGTM.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.
(it doesn't help that I don't grok Debian's version naming scheme.)
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.
My assumption is that it works? The dockerfiles seemed to build but I could be missing something here?
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.
IIRC I added the
SYSTEM_PIP_INSTALL_SUFFIX
stuff to get sytest working under debian testing. I had assumed bullseye was brand-new latest release and so would need this too, but that's not the case: bullseye is nearly two years old.So yeah, given that the docker images build this is fine. Sorry for the noise.
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.
Not at all I appreciate the insight!