Update Hound to Use Python 3.11 Base Images

This commits update hound Dockerfile to use Python 3.11 images instead
of older 3.9 one. It's part of the effort to update Python version to
3.10 or later.

Change-Id: Idf5076709c55d3327c69c6e8160a8348b6640ca7
This commit is contained in:
Gene Kuo 2023-04-20 15:26:28 +09:00
parent 28905d028b
commit 9f86500913
3 changed files with 10 additions and 6 deletions

View File

@ -12,7 +12,7 @@
# implied. # implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
FROM docker.io/opendevorg/python-base:3.9-bullseye AS builder FROM docker.io/opendevorg/python-base:3.11-bullseye AS builder
WORKDIR /tmp WORKDIR /tmp
@ -25,7 +25,7 @@ RUN git clone https://github.com/hound-search/hound \
&& cd hound \ && cd hound \
&& make && make
FROM docker.io/opendevorg/python-base:3.9-bullseye FROM docker.io/opendevorg/python-base:3.11-bullseye
COPY --from=builder /tmp/hound/.build/bin/hound /usr/local/bin COPY --from=builder /tmp/hound/.build/bin/hound /usr/local/bin
COPY --from=builder /tmp/hound/.build/bin/houndd /usr/local/bin COPY --from=builder /tmp/hound/.build/bin/houndd /usr/local/bin

View File

@ -2,7 +2,7 @@
- job: - job:
name: system-config-build-image-hound name: system-config-build-image-hound
description: Build a hound image. description: Build a hound image.
requires: python-base-3.9-bullseye-container-image requires: python-base-3.11-bullseye-container-image
provides: hound-container-image provides: hound-container-image
parent: system-config-build-image parent: system-config-build-image
vars: &hound_vars vars: &hound_vars
@ -15,7 +15,7 @@
- job: - job:
name: system-config-upload-image-hound name: system-config-upload-image-hound
description: Build and upload a hound image. description: Build and upload a hound image.
requires: python-base-3.9-bullseye-container-image requires: python-base-3.11-bullseye-container-image
provides: hound-container-image provides: hound-container-image
parent: system-config-upload-image parent: system-config-upload-image
vars: *hound_vars vars: *hound_vars

View File

@ -115,7 +115,7 @@
- system-config-build-image-hound: - system-config-build-image-hound:
dependencies: dependencies:
- name: opendev-buildset-registry - name: opendev-buildset-registry
- name: system-config-build-image-python-base-3.9-bullseye - name: system-config-build-image-python-base-3.11-bullseye
soft: true soft: true
- system-config-build-image-etherpad - system-config-build-image-etherpad
- system-config-build-image-mailman - system-config-build-image-mailman
@ -260,7 +260,11 @@
- name: opendev-buildset-registry - name: opendev-buildset-registry
- name: system-config-upload-image-jinja-init - name: system-config-upload-image-jinja-init
soft: true soft: true
- system-config-upload-image-hound - system-config-upload-image-hound:
dependencies:
- name: opendev-buildset-registry
- name: system-config-build-image-python-base-3.11-bullseye
soft: true
- system-config-upload-image-assets - system-config-upload-image-assets
- system-config-upload-image-etherpad - system-config-upload-image-etherpad
- system-config-upload-image-mailman - system-config-upload-image-mailman