Skip to content

Commit

Permalink
Update the docker image to python3.11
Browse files Browse the repository at this point in the history
OpenDev is trying to get consumers of these images to update to newer
iterations so that old images can be dropped from the build list. OSC
is successfully running voting python3.11 unittest jobs at this point.
This should make it safe to update the Docker container image for OSC
to python3.11 without risk of regressions.

Making this update should bring some (small) performance updates as
py311 is generally quicker than py310. As mentioned before it will also
allow OpenDev to reduce the set of images that are being built.

Change-Id: I01e3c9e27f92205979ea6562b23f0f7f3b431728
  • Loading branch information
cboylan committed Oct 31, 2023
1 parent 0fb1cae commit 4673c89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@
description: Build Docker images.
allowed-projects: openstack/python-openstackclient
requires:
- python-builder-3.10-bookworm-container-image
- python-base-3.10-bookworm-container-image
- python-builder-3.11-bookworm-container-image
- python-base-3.11-bookworm-container-image
provides: osc-container-image
vars: &osc_image_vars
docker_images:
Expand All @@ -175,8 +175,8 @@
description: Build Docker images and upload to Docker Hub.
allowed-projects: openstack/python-openstackclient
requires:
- python-builder-3.10-bookworm-container-image
- python-base-3.10-bookworm-container-image
- python-builder-3.11-bookworm-container-image
- python-base-3.11-bookworm-container-image
provides: osc-container-image
secrets:
- name: docker_credentials
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM docker.io/opendevorg/python-builder:3.10-bookworm as builder
FROM docker.io/opendevorg/python-builder:3.11-bookworm as builder

COPY . /tmp/src
RUN assemble

FROM docker.io/opendevorg/python-base:3.10-bookworm
FROM docker.io/opendevorg/python-base:3.11-bookworm

COPY --from=builder /output/ /output
RUN /output/install-from-bindep
Expand Down

0 comments on commit 4673c89

Please sign in to comment.