![Clark Boylan](/assets/img/avatar_default.png)
This is motivated by OpenDev's desire to drop the old Bullseye container images as well as container images for older versions of python. We bump testing to python3.11 on the high end of the range and convert the container image to python3.11 + Bookworm. Python 2.7 testing is removed because tox + virtualenv can't actually create python2.7 virtualenvs any longer. There are workarounds but dropping the tests is simpler. Python 3.5 testing is replaced with 3.6 testing beacuse the version of easy_install on ubuntu xenial does not understand TLS + SNI. A while back pypi.org dropped non SNI connection support which means we can't install PBR for to run the setup.py for the projcet. There are workarounds but 3.5 is old enough taht we should be able to move on. Change-Id: I2f2a2d0cf71c69d7babd6df9bfdb41a759e9c0ee
27 lines
822 B
Docker
27 lines
822 B
Docker
# Copyright (c) 2019 VEXXHOST, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
FROM opendevorg/python-builder:3.11-bookworm as builder
|
|
|
|
COPY . /tmp/src
|
|
RUN assemble
|
|
|
|
FROM opendevorg/python-base:3.11-bookworm as geard
|
|
|
|
COPY --from=builder /output/ /output
|
|
RUN /output/install-from-bindep
|
|
|
|
CMD ["/usr/local/bin/geard"]
|