Skip to content

Commit

Permalink
ubi: add squid release
Browse files Browse the repository at this point in the history
This allows building redhat and ibm containers for 8 (squid)

Fixes: #2209

Signed-off-by: Guillaume Abrioux <[email protected]>
  • Loading branch information
guits committed May 28, 2024
1 parent e5230d3 commit 6cc0c0f
Show file tree
Hide file tree
Showing 36 changed files with 126 additions and 0 deletions.
Empty file.
1 change: 1 addition & 0 deletions ceph-releases/squid/centos-arm64/__GANESHA_PACKAGES__
Empty file.
1 change: 1 addition & 0 deletions ceph-releases/squid/centos/__GANESHA_PACKAGES__
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nfs-ganesha-5.5-1.el__ENV_[DISTRO_VERSION]__s nfs-ganesha-ceph-5.5-1.el__ENV_[DISTRO_VERSION]__s nfs-ganesha-rgw-5.5-1.el__ENV_[DISTRO_VERSION]__s nfs-ganesha-rados-grace-5.5-1.el__ENV_[DISTRO_VERSION]__s nfs-ganesha-rados-urls-5.5-1.el__ENV_[DISTRO_VERSION]__s sssd-client dbus-daemon rpcbind
15 changes: 15 additions & 0 deletions ceph-releases/squid/ubi9-ibm/__DOCKERFILE_BRANDING__
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ln -s /usr/share/ceph/mgr/dashboard/frontend/dist-ibm /usr/share/ceph/mgr/dashboard/frontend/dist && \
sed -i \
-e "s|registry.redhat.io/rhceph/rhceph-8-rhel9:|cp.icr.io/cp/ibm-ceph/ceph-8-rhel9:|" \
-e "s|registry.redhat.io/openshift4/ose-prometheus:|cp.icr.io/cp/ibm-ceph/prometheus:|" \
-e "s|registry.redhat.io/openshift-logging/logging-loki-rhel8:|cp.icr.io/cp/ibm-ceph/logging-loki-rhel8:|" \
-e "s|registry.redhat.io/rhceph/rhceph-promtail-rhel9:|cp.icr.io/cp/ibm-ceph/promtail-rhel9:|" \
-e "s|registry.redhat.io/openshift4/ose-prometheus-node-exporter:|cp.icr.io/cp/ibm-ceph/prometheus-node-exporter:|" \
-e "s|registry.redhat.io/rhceph/grafana-rhel9:|cp.icr.io/cp/ibm-ceph/grafana-rhel9:|" \
-e "s|registry.redhat.io/openshift4/ose-prometheus-alertmanager:|cp.icr.io/cp/ibm-ceph/prometheus-alertmanager:|" \
-e "s|registry.redhat.io/rhceph/rhceph-haproxy-rhel9:|cp.icr.io/cp/ibm-ceph/haproxy-rhel9:|" \
-e "s|registry.redhat.io/rhceph/keepalived-rhel9:|cp.icr.io/cp/ibm-ceph/keepalived-rhel9:|" \
-e "s|registry.redhat.io/rhceph/snmp-notifier-rhel9:|cp.icr.io/cp/ibm-ceph/snmp-notifier-rhel9:|" \
-e "s|registry.redhat.io/rhceph/ceph-nvmeof-rhel9:|cp.icr.io/cp/ibm-ceph/nvmeof-rhel9:|" \
-e "s|default='registry.redhat.io'|default='cp.icr.io'|" \
/usr/share/ceph/mgr/cephadm/module.py && \
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
microdnf update -y --setopt=install_weak_deps=0 --nodocs && \
microdnf install -y --setopt=install_weak_deps=0 --nodocs util-linux python3-saml python3-setuptools udev device-mapper __CEPH_BASE_PACKAGES__
10 changes: 10 additions & 0 deletions ceph-releases/squid/ubi9-ibm/daemon-base/__DOCKERFILE_LABELS__
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Atomic specific labels
LABEL version="8"

# Build specific labels
LABEL com.redhat.component="ibm-ceph-container"
LABEL name="ibm-ceph"
LABEL description="IBM Storage Ceph 8"
LABEL summary="Provides the latest IBM Storage Ceph 8 in a fully featured and supported base image."
LABEL io.k8s.display-name="IBM Storage Ceph 8"
LABEL io.openshift.tags="ibm ceph"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
echo 'Postinstall cleanup' && \
( microdnf clean all && \
rpm -q __CEPH_BASE_PACKAGES__ && \
rm -f /etc/profile.d/lang.sh )
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
RUN rm -f /etc/yum.repos.d/ubi.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm -q __CEPH_BASE_PACKAGES__
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Editing /etc/redhat-storage-server release file
RUN echo "IBM Storage Ceph 8 (Container)" > /etc/redhat-storage-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENV ACCEPT_EULA YES
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ceph-radosgw__ENV_[CEPH_POINT_RELEASE]__ libradosstriper1__ENV_[CEPH_POINT_RELEASE]__
Empty file.
7 changes: 7 additions & 0 deletions ceph-releases/squid/ubi9-ibm/daemon-base/container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://osbs.readthedocs.io/en/latest/users.html#compose
---

compose:
packages: []
pulp_repos: true
ignore_absent_pulp_repos: true
25 changes: 25 additions & 0 deletions ceph-releases/squid/ubi9-ibm/daemon-base/content_sets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This file defines which Pulp content sets (yum repositories) OSBS needs in
# order to build this image. This also helps determine which images are
# vulnerable to specific CVEs. Generally you should only need to update this
# file when:
# 1. You start depending on a new product
# 2. You are preparing new product release and your content sets will change
#
# See https://osbs.readthedocs.io/en/latest/users.html#content-sets for more
# information on maintaining this file.
---
x86_64:
- rhel-9-for-x86_64-baseos-rpms
- rhel-9-for-x86_64-appstream-rpms
- rhceph-8-tools-for-rhel-9-x86_64-rpms
- codeready-builder-for-rhel-9-x86_64-rpms
ppc64le:
- rhel-9-for-ppc64le-baseos-rpms
- rhel-9-for-ppc64le-appstream-rpms
- rhceph-8-tools-for-rhel-9-ppc64le-rpms
- codeready-builder-for-rhel-9-ppc64le-rpms
s390x:
- rhel-9-for-s390x-baseos-rpms
- rhel-9-for-s390x-appstream-rpms
- rhceph-8-tools-for-rhel-9-s390x-rpms
- codeready-builder-for-rhel-9-s390x-rpms
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm -q __DAEMON_PACKAGES__
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
microdnf update -y --setopt=install_weak_deps=0 --nodocs && \
microdnf install -y --setopt=install_weak_deps=0 --nodocs util-linux python3-saml python3-setuptools udev device-mapper __CEPH_BASE_PACKAGES__
10 changes: 10 additions & 0 deletions ceph-releases/squid/ubi9-redhat/daemon-base/__DOCKERFILE_LABELS__
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Atomic specific labels
LABEL version="8"

# Build specific labels
LABEL com.redhat.component="rhceph-container"
LABEL name="rhceph"
LABEL description="Red Hat Ceph Storage 8"
LABEL summary="Provides the latest Red Hat Ceph Storage 8 on RHEL 9 in a fully featured and supported base image."
LABEL io.k8s.display-name="Red Hat Ceph Storage 8 on RHEL 9"
LABEL io.openshift.tags="rhceph ceph"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
echo 'Postinstall cleanup' && \
( microdnf clean all && \
rpm -q __CEPH_BASE_PACKAGES__ && \
rm -f /etc/profile.d/lang.sh )
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
RUN rm -f /etc/yum.repos.d/ubi.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm -q __CEPH_BASE_PACKAGES__
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Editing /etc/redhat-storage-server release file
RUN echo "Red Hat Ceph Storage Server 8 (Container)" > /etc/redhat-storage-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ceph-radosgw__ENV_[CEPH_POINT_RELEASE]__ libradosstriper1__ENV_[CEPH_POINT_RELEASE]__
Empty file.
7 changes: 7 additions & 0 deletions ceph-releases/squid/ubi9-redhat/daemon-base/container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://osbs.readthedocs.io/en/latest/users.html#compose
---

compose:
packages: []
pulp_repos: true
ignore_absent_pulp_repos: true
25 changes: 25 additions & 0 deletions ceph-releases/squid/ubi9-redhat/daemon-base/content_sets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This file defines which Pulp content sets (yum repositories) OSBS needs in
# order to build this image. This also helps determine which images are
# vulnerable to specific CVEs. Generally you should only need to update this
# file when:
# 1. You start depending on a new product
# 2. You are preparing new product release and your content sets will change
#
# See https://osbs.readthedocs.io/en/latest/users.html#content-sets for more
# information on maintaining this file.
---
x86_64:
- rhel-9-for-x86_64-baseos-rpms
- rhel-9-for-x86_64-appstream-rpms
- rhceph-8-tools-for-rhel-9-x86_64-rpms
- codeready-builder-for-rhel-9-x86_64-rpms
ppc64le:
- rhel-9-for-ppc64le-baseos-rpms
- rhel-9-for-ppc64le-appstream-rpms
- rhceph-8-tools-for-rhel-9-ppc64le-rpms
- codeready-builder-for-rhel-9-ppc64le-rpms
s390x:
- rhel-9-for-s390x-baseos-rpms
- rhel-9-for-s390x-appstream-rpms
- rhceph-8-tools-for-rhel-9-s390x-rpms
- codeready-builder-for-rhel-9-s390x-rpms
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm -q __DAEMON_PACKAGES__

0 comments on commit 6cc0c0f

Please sign in to comment.