Skip to content

Commit 9b374fc

Browse files
committed
Remove CentOS from build targets
CentOS 8 reached End of Life (EOL) on Dec 31, 2021. Issue: [sc-13732] See: https://www.centos.org/centos-linux-eol/
1 parent 0f3cc32 commit 9b374fc

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

Makefile

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11

22
# Default values if not already set
33
PGOROOT ?= $(CURDIR)
4-
PGO_BASEOS ?= centos8
5-
BASE_IMAGE_OS ?= $(PGO_BASEOS)
4+
PGO_BASEOS ?= ubi8
65
PGO_IMAGE_PREFIX ?= crunchydata
76
PGO_IMAGE_TAG ?= $(PGO_BASEOS)-$(PGO_VERSION)
87
PGO_VERSION ?= $(shell git describe --tags)
98
PGO_PG_VERSION ?= 13
109
PGO_PG_FULLVERSION ?= 13.4
1110
PGO_KUBE_CLIENT ?= kubectl
12-
PACKAGER ?= yum
1311

1412
RELTMPDIR=/tmp/release.$(PGO_VERSION)
1513
RELFILE=/tmp/postgres-operator.$(PGO_VERSION).tar.gz
@@ -30,7 +28,6 @@ ifneq ("$(IMG_ROOTLESS_BUILD)", "true")
3028
IMGCMDSUDO=sudo --preserve-env
3129
endif
3230
IMGCMDSTEM=$(IMGCMDSUDO) buildah bud --layers $(SQUASH)
33-
DFSET=$(PGO_BASEOS)
3431

3532
# Default the buildah format to docker to ensure it is possible to pull the images from a docker
3633
# repository using docker (otherwise the images may not be recognized)
@@ -46,16 +43,9 @@ DOCKERBASEREGISTRY=
4643
BASE_IMAGE_OS=
4744
ifeq ("$(PGO_BASEOS)", "ubi8")
4845
BASE_IMAGE_OS=ubi8-minimal
49-
DFSET=rhel
5046
DOCKERBASEREGISTRY=registry.access.redhat.com/
5147
PACKAGER=microdnf
5248
endif
53-
ifeq ("$(PGO_BASEOS)", "centos8")
54-
BASE_IMAGE_OS=centos8
55-
DFSET=centos
56-
DOCKERBASEREGISTRY=centos:
57-
PACKAGER=dnf
58-
endif
5949

6050
DEBUG_BUILD ?= false
6151
GO ?= go
@@ -163,7 +153,6 @@ $(PGOROOT)/build/%/Dockerfile:
163153
-t $(PGO_IMAGE_PREFIX)/$*:$(PGO_IMAGE_TAG) \
164154
--build-arg BASEOS=$(PGO_BASEOS) \
165155
--build-arg BASEVER=$(PGO_VERSION) \
166-
--build-arg DFSET=$(DFSET) \
167156
--build-arg PACKAGER=$(PACKAGER) \
168157
--build-arg PGVERSION=$(PGO_PG_VERSION) \
169158
--build-arg PREFIX=$(PGO_IMAGE_PREFIX) \

build/crunchy-postgres-exporter/Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ FROM ${PREFIX}/pgo-base:${BASEOS}-${BASEVER}
66
ARG BASEOS
77
ARG PGVERSION
88
ARG PACKAGER
9-
ARG DFSET
109

1110
LABEL name="crunchy-postgres-exporter" \
1211
summary="Metrics exporter for PostgreSQL" \
@@ -15,14 +14,6 @@ LABEL name="crunchy-postgres-exporter" \
1514
io.k8s.display-name="Crunchy PostgreSQL Exporter" \
1615
io.openshift.tags="postgresql,postgres,monitoring,database,crunchy"
1716

18-
RUN if [ "$DFSET" = "centos" ] ; then \
19-
${PACKAGER} -y install epel-release \
20-
&& ${PACKAGER} install -y \
21-
--setopt=skip_missing_names_on_install=False \
22-
postgresql${PGVERSION} \
23-
&& ${PACKAGER} -y clean all ; \
24-
fi
25-
2617
RUN if [ "$BASEOS" = "ubi8" ] ; then \
2718
${PACKAGER} install -y \
2819
findutils \

build/pgo-base/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ COPY licenses /licenses
2525

2626
RUN ${PACKAGER} -y update && ${PACKAGER} -y clean all
2727

28-
RUN if [ "$BASEOS" = "centos8" ]; then \
29-
${PACKAGER} -qy module disable postgresql ; \
30-
fi
31-
3228
# Create module file to disable postgres module, microdnf cannot do this with the current version
3329
RUN if [ "$BASEOS" = "ubi8" ] ; then \
3430
echo "[postgresql]" >> /etc/dnf/modules.d/postgresql.module \

0 commit comments

Comments
 (0)