Files
ptgbot/Dockerfile
Clark Boylan 43dfc6a7bf Update ptgbot containers to python3.12 and trixie
This change updates the base container image and updates the source of
that image to the new canonical location for it on quay.io. We do this
because we want to drop bookworm eventually and updating this image to
trixie is one step in that process. This is also happening a couple of
months in advance of the next PTG ensuring we have plenty of time to
address problems should they arise.

Due to changes in the ssl library in python3.12 we have to update how
the bot handles ssl connectivity via an explicit ssl context wrapper and
connection factory. Doing so drops our dependency on ib3 entirely so we
remove that requirement.

We also update the unittest python version to match. This exposes
self.assertEquals as no longer being a valid unittest assertion. We
update that to self.assertEqual.

Change-Id: I3ac56133f00b6f440bab85005db619c36e10c876
Signed-off-by: Clark Boylan <clark.boylan@gmail.com>
2026-01-30 14:55:04 -08:00

14 lines
258 B
Docker

FROM quay.io/opendevorg/python-builder:3.12-trixie as builder
COPY . /tmp/src
RUN assemble
FROM quay.io/opendevorg/python-base:3.12-trixie as ptgbot
COPY --from=builder /output/ /output
RUN /output/install-from-bindep
COPY init.sh init.sh
CMD ./init.sh