Skip to content

Commit f21e7d1

Browse files
committed
Mount in yum repos on docker build
1 parent ca07510 commit f21e7d1

File tree

6 files changed

+1
-18
lines changed

6 files changed

+1
-18
lines changed

olm/build-image.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,11 @@ version="1.19.1"
1010
registry="container-registry.oracle.com/olcne"
1111
git_commit="$(git rev-parse --short HEAD)"
1212

13-
repo_filename="ol_artifacts.repo"
14-
repo_file="/etc/yum.repos.d/$repo_filename"
15-
if [ -f "$repo_file" ]; then
16-
cp "$repo_file" ./
17-
echo 'priority=1' >> "$repo_filename"
18-
echo 'enabled=1' >> "$repo_filename"
19-
fi
20-
2113
for component in acmesolver cainjector controller startupapicheck webhook; do
2214
name="cert-manager-${component}"
2315
docker_tag="${registry}/${name}:${version}"
2416
"${CONTAINER_CLI}" build --pull \
17+
-v /etc/yum.repos.d:/etc/yum.repos.d \
2518
--build-arg https_proxy="${https_proxy}" \
2619
--build-arg VERSION="${version}" \
2720
--build-arg GIT_COMMIT="${git_commit}" \

olm/builds/Dockerfile.acmesolver

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ FROM container-registry.oracle.com/os/oraclelinux:9
33
ARG VERSION
44
ARG GIT_COMMIT
55

6-
COPY *.repo /etc/yum.repos.d/
7-
86
RUN dnf update -y && dnf install patch make git golang -y
97

108
WORKDIR /cert-manager

olm/builds/Dockerfile.cainjector

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ FROM container-registry.oracle.com/os/oraclelinux:9
33
ARG VERSION
44
ARG GIT_COMMIT
55

6-
COPY *.repo /etc/yum.repos.d/
7-
86
RUN dnf update -y && dnf install make git golang -y
97

108
WORKDIR /cert-manager

olm/builds/Dockerfile.controller

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ FROM container-registry.oracle.com/os/oraclelinux:9
33
ARG VERSION
44
ARG GIT_COMMIT
55

6-
COPY *.repo /etc/yum.repos.d/
7-
86
RUN dnf update -y && dnf install make git golang -y
97

108
WORKDIR /cert-manager

olm/builds/Dockerfile.startupapicheck

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ FROM container-registry.oracle.com/os/oraclelinux:9
33
ARG VERSION
44
ARG GIT_COMMIT
55

6-
COPY *.repo /etc/yum.repos.d/
7-
86
RUN dnf update -y && dnf install make git golang -y
97

108
WORKDIR /cert-manager

olm/builds/Dockerfile.webhook

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ FROM container-registry.oracle.com/os/oraclelinux:9
33
ARG VERSION
44
ARG GIT_COMMIT
55

6-
COPY *.repo /etc/yum.repos.d/
7-
86
RUN dnf update -y && dnf install make git golang -y
97

108
WORKDIR /cert-manager

0 commit comments

Comments
 (0)