Skip to content

Commit 5228a25

Browse files
Sachin-Yeshwanthandrewschoen
authored andcommitted
updated Dockerfile and rpms.in.yaml
1 parent 5a3acc3 commit 5228a25

File tree

3 files changed

+11471
-354
lines changed

3 files changed

+11471
-354
lines changed

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ COPY snmp_notifier snmp_notifier
77

88
WORKDIR snmp_notifier
99

10-
# The base image has glibc-langpack-en which causes issues with glibc-static installation.
11-
# So removing it will resolve the issue in the hermetic build
12-
RUN dnf remove -y glibc-langpack-en \
13-
&& dnf install -y glibc glibc-devel glibc-static
10+
RUN dnf install -y glibc-static
1411

1512
# Build the binary
1613
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -mod=readonly \
@@ -48,7 +45,6 @@ LABEL io.openshift.tags="1.2.1"
4845
LABEL cpe=cpe:/a:redhat:ceph_storage:8::el9
4946
LABEL org.opencontainers.image.created="${BUILD_DATE}"
5047

51-
5248
RUN chmod +x "$OPBIN"
5349

5450
EXPOSE 9464

rpms.in.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ arches:
1010
- ppc64le
1111
- s390x
1212

13+
context:
14+
containerfile:
15+
file: Dockerfile
16+
stageName: builder
17+
1318
packages:
1419
- glibc-static
1520

16-
allowerasing: true
21+
reinstallPackages:
22+
- '*'

0 commit comments

Comments
 (0)