78dd1225ba
This matches what Zuul and Nodepool are doing. Getting off the older images will also allow OpenDev to stop building them. We update the unittest job to python 3.11 in the process to better cover what people will deploy. Note we wanted to update the base OS from bullseye to bookworm, but this update involves upgrading openssl from 1.1.x to 3.x and the rehash library which the registry depends on is not compatible with openssl 3.x. Getting to python3.11 on bullseye would at least allow us to stop building python3.9 and python3.10 bullseye images. Change-Id: Ie609a2f5f3c488cea8d98e78c9fa6353ebb78f62
28 lines
997 B
Docker
28 lines
997 B
Docker
# Copyright 2019 Red Hat, Inc.
|
|
#
|
|
# This module is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This software is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
FROM docker.io/opendevorg/python-builder:3.11-bullseye as builder
|
|
|
|
COPY . /tmp/src
|
|
RUN assemble
|
|
|
|
FROM docker.io/opendevorg/python-base:3.11-bullseye as zuul-registry
|
|
|
|
COPY --from=builder /output/ /output
|
|
RUN /output/install-from-bindep
|
|
|
|
VOLUME /storage
|
|
CMD ["/usr/local/bin/zuul-registry", "-c", "/conf/registry.yaml", "serve"]
|