Migrate statsd sidecar container images to quay.io

The migration of the zookeeper-statsd image itself already happened as
it was our test case. That said I found a small typo that needs fixing
(and will clean up the extra image that was created later). We also
update zookeeper-statsd to pull the base python image from quay.io

The real fun happens with haproxy-statsd. We update the image to pull
the python base image from quay.io and set it up to publish to quay.io
itself.

Change-Id: Ie0c119ac309837baef850236f7d5ba6b9da97ce0
This commit is contained in:
Clark Boylan 2023-05-05 12:00:00 -07:00
parent 7f88fc7d4a
commit 4a762a6a8a
5 changed files with 14 additions and 9 deletions

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM docker.io/opendevorg/python-base:3.11-bullseye
FROM quay.io/opendevorg/python-base:3.11-bullseye
COPY haproxy-statsd.py /usr/local/bin
RUN pip install statsd

View File

@ -16,7 +16,7 @@
# Mon May 1 19:42:37 UTC 2023 - trigger rebuild
FROM docker.io/opendevorg/python-base:3.9-bullseye
FROM quay.io/opendevorg/python-base:3.9-bullseye
COPY zookeeper-statsd.py /usr/local/bin
RUN pip install statsd

View File

@ -46,7 +46,7 @@ services:
{% if haproxy_run_statsd %}
haproxy-statsd:
restart: always
image: docker.io/opendevorg/haproxy-statsd:latest
image: quay.io/opendevorg/haproxy-statsd:latest
network_mode: host
user: "1000:1000"
volumes:

View File

@ -2,13 +2,18 @@
- job:
name: system-config-build-image-haproxy-statsd
description: Build a haproxy-statsd image.
parent: system-config-build-image
parent: system-config-build-container-image
requires: python-base-3.11-bullseye-container-image
provides: haproxy-statsd-container-image
vars: &haproxy-statsd_vars
docker_images:
promote_container_image_job: system-config-upload-image-haproxy-statsd
container_images:
- context: docker/haproxy-statsd
repository: opendevorg/haproxy-statsd
registry: quay.io
repository: quay.io/opendevorg/haproxy-statsd
namespace: opendevorg
repo_shortname: haproxy-statsd
repo_description: Tool to report HaProxy stats to statsd
# Duplicate in the run-gitea job
files: &haproxy-statsd_files
- docker/haproxy-statsd/
@ -17,7 +22,7 @@
- job:
name: system-config-upload-image-haproxy-statsd
description: Build and upload a haproxy-statsd image.
parent: system-config-upload-image
parent: system-config-upload-container-image
requires: python-base-3.11-bullseye-container-image
provides: haproxy-statsd-container-image
vars: *haproxy-statsd_vars
@ -26,6 +31,6 @@
- job:
name: system-config-promote-image-haproxy-statsd
description: Promote a previously published haproxy-statsd image to latest.
parent: system-config-promote-image
parent: system-config-promote-container-image
vars: *haproxy-statsd_vars
files: *haproxy-statsd_files

View File

@ -11,7 +11,7 @@
registry: quay.io
repository: quay.io/opendevorg/zookeeper-statsd
namespace: opendevorg
repo_shortname: zookeeker-statsd
repo_shortname: zookeeper-statsd
repo_description: Tool to report ZooKeeper stats to statsd
files: &zookeeper-statsd_files
- docker/zookeeper-statsd/