Switch the docker image over to python 3.10
Python 3.10 has been quite a bit quicker than 3.8 with Zuul. With the 3.11 release coming up soon updating to 3.10 will allow us to drop the 3.8 docker images and take advantage of faster python. We add python 3.10 unittesting to ensure we don't regress when making changes. Change-Id: I439027f6e2c6f2d01b4629351a4c72cc1892579a
This commit is contained in:
parent
ee566eb499
commit
ec934f441c
12
.zuul.yaml
12
.zuul.yaml
|
@ -20,8 +20,8 @@
|
|||
description: Build OpenDev Docker images for storyboard webclient
|
||||
provides: gerritbot-container-image
|
||||
requires:
|
||||
- python-builder-3.8-bullseye-container-image
|
||||
- python-base-3.8-bullseye-container-image
|
||||
- python-builder-3.10-bullseye-container-image
|
||||
- python-base-3.10-bullseye-container-image
|
||||
required-projects: &gerritbot_opendev_required_projects
|
||||
- opendev/gerritlib
|
||||
vars: &gerritbot_opendev_image_vars
|
||||
|
@ -39,8 +39,8 @@
|
|||
description: Build OpenDev gerritbot Docker images and upload to Docker Hub.
|
||||
provides: gerritbot-container-image
|
||||
requires:
|
||||
- python-builder-3.8-bullseye-container-image
|
||||
- python-base-3.8-bullseye-container-image
|
||||
- python-builder-3.10-bullseye-container-image
|
||||
- python-base-3.10-bullseye-container-image
|
||||
required-projects: *gerritbot_opendev_required_projects
|
||||
vars: *gerritbot_opendev_image_vars
|
||||
secrets:
|
||||
|
@ -63,11 +63,15 @@
|
|||
jobs:
|
||||
- tox-pep8
|
||||
- tox-py38
|
||||
- tox-py310:
|
||||
nodeset: ubuntu-jammy
|
||||
- gerritbot-build-opendev-image
|
||||
gate:
|
||||
jobs:
|
||||
- tox-pep8
|
||||
- tox-py38
|
||||
- tox-py310:
|
||||
nodeset: ubuntu-jammy
|
||||
- gerritbot-upload-opendev-image
|
||||
promote:
|
||||
jobs:
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
# 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 opendevorg/python-builder:3.8-bullseye as builder
|
||||
FROM opendevorg/python-builder:3.10-bullseye as builder
|
||||
|
||||
COPY . /tmp/src
|
||||
RUN assemble
|
||||
|
||||
FROM opendevorg/python-base:3.8-bullseye as gerritbot
|
||||
FROM opendevorg/python-base:3.10-bullseye as gerritbot
|
||||
|
||||
COPY --from=builder /output/ /output
|
||||
RUN /output/install-from-bindep
|
||||
|
|
Loading…
Reference in New Issue