Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.18 fix ci env #5765

Open
wants to merge 2 commits into
base: openshift-4.18
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci_images/dnf_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ if ls "${ART_REPOS_PREFIX}"* 1> /dev/null 2>&1; then
EXTRA_DNF_ARGS="--disableplugin=subscription-manager"
fi

$0.real "${EXTRA_DNF_ARGS}" "$@"
$0.real ${EXTRA_DNF_ARGS} "$@"
5 changes: 5 additions & 0 deletions ci_images/rhel-8/ci-openshift-build-root/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,8 @@ RUN mkdir -p $GOPATH && \
# Some image building tools don't create a missing WORKDIR
RUN mkdir -p /go/src/github.com/openshift/origin
WORKDIR /go/src/github.com/openshift/origin

# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc
5 changes: 5 additions & 0 deletions ci_images/rhel-8/ci-openshift-build-root/Dockerfile.previous
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,8 @@ RUN mkdir -p $GOPATH && \
# Some image building tools don't create a missing WORKDIR
RUN mkdir -p /go/src/github.com/openshift/origin
WORKDIR /go/src/github.com/openshift/origin

# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc
7 changes: 6 additions & 1 deletion ci_images/rhel-8/ci-openshift-golang-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,9 @@ ADD .oit/unsigned.repo $DNF_WRAPPER_DIR/

# Some image building tools don't create a missing WORKDIR
RUN mkdir -p /go/src/github.com/openshift/origin
WORKDIR /go/src/github.com/openshift/origin
WORKDIR /go/src/github.com/openshift/origin

# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc
5 changes: 5 additions & 0 deletions ci_images/rhel-9/ci-openshift-build-root/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,8 @@ RUN mkdir -p $GOPATH && \
# Some image building tools don't create a missing WORKDIR
RUN mkdir -p /go/src/github.com/openshift/origin
WORKDIR /go/src/github.com/openshift/origin

# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc
5 changes: 5 additions & 0 deletions ci_images/rhel-9/ci-openshift-build-root/Dockerfile.previous
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,8 @@ RUN mkdir -p $GOPATH && \
# Some image building tools don't create a missing WORKDIR
RUN mkdir -p /go/src/github.com/openshift/origin
WORKDIR /go/src/github.com/openshift/origin

# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc
4 changes: 4 additions & 0 deletions ci_images/rhel-9/ci-openshift-golang-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ ENV PATH=$DNF_WRAPPER_DIR:$PATH
# it is not running on a build farm.
ADD .oit/unsigned.repo $DNF_WRAPPER_DIR/

# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc
16 changes: 8 additions & 8 deletions images/ci-openshift-build-root-latest.rhel8.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-8/ci-openshift-build-root/Dockerfile
git:
Expand All @@ -14,6 +16,10 @@ content:
mirror: true
mirror_manifest_list: true
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-8-golang-{GO_LATEST}-ci-build-root-multi-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel8.ocp.svc"
from:
member: ci-openshift-golang-builder-latest.rhel8
labels:
Expand Down Expand Up @@ -41,12 +47,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
17 changes: 9 additions & 8 deletions images/ci-openshift-build-root-latest.rhel9.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-9/ci-openshift-build-root/Dockerfile
git:
Expand All @@ -14,6 +16,11 @@ content:
mirror: true
mirror_manifest_list: true
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-9-golang-{GO_LATEST}-ci-build-root-multi-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

from:
member: ci-openshift-golang-builder-latest.rhel9
labels:
Expand Down Expand Up @@ -41,12 +48,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
17 changes: 9 additions & 8 deletions images/ci-openshift-build-root-previous.rhel8.disabled
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-8/ci-openshift-build-root/Dockerfile.previous
git:
Expand All @@ -14,6 +16,11 @@ content:
mirror: true
mirror_manifest_list: true
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-8-golang-{GO_PREVIOUS}-ci-build-root-multi-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

from:
member: ci-openshift-golang-builder-previous.rhel8
labels:
Expand Down Expand Up @@ -41,12 +48,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
17 changes: 9 additions & 8 deletions images/ci-openshift-build-root-previous.rhel9.disabled
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-9/ci-openshift-build-root/Dockerfile.previous
git:
Expand All @@ -14,6 +16,11 @@ content:
mirror: true
mirror_manifest_list: true
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-9-golang-{GO_PREVIOUS}-ci-build-root-multi-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

from:
member: ci-openshift-golang-builder-previous.rhel9
labels:
Expand Down Expand Up @@ -41,12 +48,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
17 changes: 9 additions & 8 deletions images/ci-openshift-golang-builder-latest.rhel8.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-8/ci-openshift-golang-builder/Dockerfile
git:
Expand All @@ -14,6 +16,11 @@ content:
mirror: true
mirror_manifest_list: true
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-8-golang-{GO_LATEST}-builder-multi-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

from:
stream: rhel-8-golang-{GO_LATEST}
labels:
Expand Down Expand Up @@ -42,12 +49,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
17 changes: 9 additions & 8 deletions images/ci-openshift-golang-builder-latest.rhel9.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-9/ci-openshift-golang-builder/Dockerfile
git:
Expand All @@ -14,6 +16,11 @@ content:
mirror: true
mirror_manifest_list: true
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-9-golang-{GO_LATEST}-builder-multi-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

from:
stream: rhel-9-golang-{GO_LATEST}
labels:
Expand Down Expand Up @@ -41,12 +48,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
17 changes: 9 additions & 8 deletions images/ci-openshift-golang-builder-previous.rhel8.disabled
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-8/ci-openshift-golang-builder/Dockerfile
git:
Expand All @@ -14,6 +16,11 @@ content:
mirror: true
mirror_manifest_list: true
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-8-golang-{GO_PREVIOUS}-builder-multi-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

from:
stream: rhel-8-golang-{GO_PREVIOUS}
labels:
Expand Down Expand Up @@ -42,12 +49,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
17 changes: 9 additions & 8 deletions images/ci-openshift-golang-builder-previous.rhel9.disabled
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-9/ci-openshift-golang-builder/Dockerfile
git:
Expand All @@ -14,6 +16,11 @@ content:
mirror: true
mirror_manifest_list: true
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-9-golang-{GO_PREVIOUS}-builder-multi-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

from:
stream: rhel-9-golang-{GO_PREVIOUS}
labels:
Expand Down Expand Up @@ -41,12 +48,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down