1
1
base_images :
2
- ci_tests-private-base_4.19 :
2
+ ci_rosa-aws-cli_latest :
3
+ name : rosa-aws-cli
4
+ namespace : ci
5
+ tag : latest
6
+ ci_tests-private-base_latest :
3
7
name : tests-private-base
4
8
namespace : ci
5
- tag : " 4.19"
9
+ tag : latest
10
+ ci_tests-private-baseui_latest :
11
+ name : tests-private-baseui
12
+ namespace : ci
13
+ tag : latest
6
14
cli :
7
15
name : " 4.19"
8
16
namespace : ocp
@@ -11,6 +19,10 @@ base_images:
11
19
name : network-observability-cli
12
20
namespace : netobserv
13
21
tag : ci
22
+ ocp_tools :
23
+ name : " 4.19"
24
+ namespace : ocp
25
+ tag : tools
14
26
upi-installer :
15
27
name : " 4.19"
16
28
namespace : ocp
@@ -23,30 +35,143 @@ build_root:
23
35
tag : rhel-9-golang-1.23-openshift-4.19
24
36
images :
25
37
- dockerfile_literal : |
26
- FROM bin AS builder
27
38
FROM registry.ci.openshift.org/netobserv/network-observability-cli:ci as netobservcli
28
- FROM registry.ci.openshift.org/ci/tests-private-base:4.19
29
- RUN mkdir -p /go/src/github.com/openshift
30
- COPY --from=builder /go/src/github.com/openshift/openshift-tests-private /go/src/github.com/openshift/openshift-tests-private
39
+
40
+ FROM registry.ci.openshift.org/ocp/4.19:tools
41
+ ENV ART_DNF_WRAPPER_POLICY=append
31
42
COPY --from=netobservcli /oc-netobserv /usr/bin/
32
- RUN chmod g+w /go/src/github.com/openshift/openshift-tests-private && \
43
+ RUN set -x && \
44
+ sh -c 'echo -e "[google-cloud-sdk]\nname=Google Cloud SDK\nbaseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg\n https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg" > /etc/yum.repos.d/google-cloud-sdk.repo' && \
45
+ sh -c 'echo -e "[azure-cli]\nname=Azure CLI\nbaseurl=https://packages.microsoft.com/yumrepos/azure-cli\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" >/etc/yum.repos.d/azure-cli.repo' && \
46
+ PACKAGES="azure-cli google-cloud-sdk git gzip zip util-linux openssh-clients httpd-tools skopeo java-11-openjdk-headless python3-pip" && \
47
+ yum config-manager --disable ubi-9-appstream ubi-9-baseos ubi-9-codeready-builder && \
48
+ yum update -y && \
49
+ yum install --setopt=tsflags=nodocs -y $PACKAGES && yum clean all && rm -rf /var/cache/yum/* && \
50
+ git config --system user.name test-private && \
51
+ git config --system user.email [email protected] && \
52
+ chmod g+w /etc/passwd && \
53
+ rm -rf /root/.config/gcloud
54
+ RUN yum remove python3-requests -y && pip3 uninstall PyYAML -y && pip3 install --upgrade setuptools pip && pip3 install dotmap minio pyyaml requests python-openstackclient && \
55
+ sh -c 'echo -e "[rhel9.2-baseos]\nname=rhel9.2-baseos\nbaseurl=http://download.eng.pek2.redhat.com/rhel-9/rel-eng/RHEL-9/latest-RHEL-9.2/compose/BaseOS/x86_64/os/\nenabled=0\ngpgcheck=1" >/etc/yum.repos.d/rhel9.2-baseos.repo' && \
56
+ yum -y --enablerepo=rhel9.2-baseos install sos
57
+ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
58
+ unzip -q awscliv2.zip && \
59
+ ./aws/install -b /bin && \
60
+ rm -rf ./aws awscliv2.zip
61
+ RUN set -x && export KREW_ROOT="/usr/local/krew" && cd "$(mktemp -d)" && \
62
+ OS="$(uname | tr '[:upper:]' '[:lower:]')" && \
63
+ ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" && \
64
+ KREW="krew-${OS}_${ARCH}" && \
65
+ curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" && \
66
+ tar zxvf "${KREW}.tar.gz" && \
67
+ ./"${KREW}" install krew && chmod -R 755 /usr/local/krew && cd / && export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" && which kubectl-krew && set +x
68
+ from : ocp_tools
69
+ inputs :
70
+ netobserv_network-observability-cli_ci :
71
+ as :
72
+ - registry.ci.openshift.org/netobserv/network-observability-cli:ci
73
+ to : tests-private-base
74
+ - dockerfile_literal : |
75
+ FROM this-is-ignored
76
+ ARG YQ_VERSION="v4.30.8"
77
+ ENV ART_DNF_WRAPPER_POLICY=append
78
+ RUN set -x && \
79
+ curl --silent --location https://rpm.nodesource.com/setup_lts.x | bash - && \
80
+ curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo && \
81
+ PACKAGES="openssh-clients httpd-tools nodejs yarn xorg-x11-server-Xvfb gtk2-devel gtk3-devel libnotify-devel nss libXScrnSaver alsa-lib" && \
82
+ yum install --setopt=tsflags=nodocs -y $PACKAGES && \
83
+ declare -A YQ_HASH=([amd64]='6c911103e0dcc54e2ba07e767d2d62bcfc77452b39ebaee45b1c46f062f4fd26' \
84
+ [arm64]='95092e8b5332890c46689679b5e4360d96873c025ad8bafd961688f28ea434c7') && \
85
+ arch="$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')" && \
86
+ YQ_URI="https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_${arch}" && \
87
+ curl -sSL "${YQ_URI}" -o /usr/local/bin/yq && \
88
+ echo "${YQ_HASH[$arch]} */usr/local/bin/yq" | sha256sum --strict --status --check && \
89
+ chmod +x /usr/local/bin/yq && \
90
+ yum clean all && rm -rf /var/cache/yum/*
91
+ from : root
92
+ to : tests-private-baseui
93
+ - dockerfile_literal : |
94
+ FROM bin as builder
95
+ FROM registry.ci.openshift.org/ci/rosa-aws-cli:latest as rosacli
96
+
97
+ FROM registry.ci.openshift.org/ci/tests-private-base:latest
98
+ COPY --from=builder /go/src/github.com/openshift/openshift-tests-private/bin/extended-platform-tests /usr/bin/
99
+ COPY --from=builder /go/src/github.com/openshift/openshift-tests-private/pipeline/handleresult.py /usr/bin/
100
+ COPY --from=rosacli /usr/bin/rosa /usr/bin/
101
+
102
+ RUN MIRRORURL=https://mirror2.openshift.com/pub/openshift-v4 && CLIENTURL=${MIRRORURL}/x86_64/clients/ocp/candidate && \
103
+ curl -s -k -L ${MIRRORURL}/x86_64/clients/ocp/ -o ocp.html && curl -s -k -L ${MIRRORURL}/x86_64/clients/ocp-dev-preview/ -o pre.html && \
104
+ ecver=$(grep -E "<a href=\"candidate-4\.18" pre.html |cut -d"\"" -f2|cut -d"/" -f1|sort -V|tail -1) && echo "V${ecver}V" && \
105
+ if [ "V${ecver}V" != "VV" ]; then CLIENTURL=${MIRRORURL}/x86_64/clients/ocp-dev-preview/${ecver}; fi && \
106
+ rcgaver=$(grep -E "<a href=\"4\.18" ocp.html |cut -d"\"" -f2|cut -d"/" -f1|sort -V|tail -1) && echo "V${rcgaver}V" && \
107
+ if [ "V${rcgaver}V" != "VV" ]; then CLIENTURL=${MIRRORURL}/x86_64/clients/ocp/${rcgaver}; fi && \
108
+ curl -s -k -L ${CLIENTURL}/openshift-client-linux-amd64-rhel9.tar.gz -o openshift-client-linux.tar.gz && \
109
+ curl -s -k -L ${CLIENTURL}/opm-linux-rhel9.tar.gz -o opm-linux.tar.gz && \
110
+ curl -s -k -L ${CLIENTURL}/oc-mirror.rhel9.tar.gz -o oc-mirror.tar.gz && \
111
+ tar -C /usr/bin -xzvf openshift-client-linux.tar.gz && rm -fr openshift-client-linux.tar.gz && \
112
+ tar -C /usr/bin -xzvf opm-linux.tar.gz && mv /usr/bin/opm-rhel9 /usr/bin/opm && rm -fr opm-linux.tar.gz && \
113
+ opm version && \
114
+ tar -C /usr/bin/ -xzvf oc-mirror.tar.gz && chmod +x /usr/bin/oc-mirror && rm -f oc-mirror.tar.gz && \
115
+ SDKURL=${MIRRORURL}/x86_64/clients/operator-sdk/pre-release && \
116
+ curl -s -k -L ${MIRRORURL}/x86_64/clients/operator-sdk/ -o sdk.html && \
117
+ optsdkver=$(grep -E "<a href=\"4\.18" sdk.html |cut -d"\"" -f2|cut -d"/" -f1|sort -V|tail -1) && echo ${optsdkver} && \
118
+ if [ "V${optsdkver}V" != "VV" ]; then SDKURL=${MIRRORURL}/x86_64/clients/operator-sdk/${optsdkver}; fi && \
119
+ curl -s -k -L ${SDKURL}/operator-sdk-linux-x86_64.tar.gz -o opt-sdk.tar.gz && \
120
+ tar -C ./ -xzvf opt-sdk.tar.gz && mv ./x86_64/operator-sdk /usr/bin && rm -fr opt-sdk.tar.gz ./x86_64 && \
121
+ opm version && oc-mirror --help && operator-sdk version && \
122
+ echo "try to install binary used by the cases" && oc version --client && \
123
+ oc image extract quay.io/hypershift/hypershift-operator:latest --file=/usr/bin/hypershift && mv hypershift /usr/bin/ && chmod 755 /usr/bin/hypershift && \
124
+ oc image extract quay.io/openshifttest/oc-compliance:latest --file /tmp/oc-compliance && mv oc-compliance /usr/bin/ && chmod 755 /usr/bin/oc-compliance && \
125
+ rosa -h && oc-compliance -h && \
126
+ oc image extract quay.io/openshifttest/openshift4-tools:v2 --file=/tmp/OpenShift4-tools.tar && tar -C /opt -xf OpenShift4-tools.tar && rm -fr OpenShift4-tools.tar && \
127
+ curl -s -L https://github.com/vmware/govmomi/releases/latest/download/govc_Linux_x86_64.tar.gz -o govc_Linux_x86_64.tar.gz && tar -C /usr/bin/ -xvf govc_Linux_x86_64.tar.gz govc && rm -f govc_Linux_x86_64.tar.gz && \
33
128
rm -rf /usr/bin/oc /usr/bin/kubectl
34
- WORKDIR /go/src/github.com/openshift/openshift-tests- private
129
+ from : ci_tests- private-base_latest
35
130
inputs :
36
131
bin :
37
132
as :
38
133
- bin
39
- ci_tests-private-base_4.19 :
134
+ ci_rosa-aws-cli_latest :
40
135
as :
41
- - registry.ci.openshift.org/ci/tests-private-base:4.19
42
- netobserv_network-observability-cli_ci :
136
+ - registry.ci.openshift.org/ci/rosa-aws-cli:latest
137
+ to : tests-private
138
+ - dockerfile_literal : |
139
+ FROM src AS builder
140
+ FROM this-is-ignored-and-not-used
141
+ RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm && \
142
+ yum install -y ./google-chrome-stable_current_*.rpm
143
+ WORKDIR /go/src/github.com/openshift/openshift-tests-private
144
+ COPY --from=builder /go/src/github.com/openshift/openshift-tests-private /go/src/github.com/openshift/openshift-tests-private
145
+ from : ci_tests-private-baseui_latest
146
+ inputs :
147
+ src :
43
148
as :
44
- - registry.ci.openshift.org/netobserv/network-observability-cli:ci
149
+ - src
150
+ to : tests-private-ui
151
+ - dockerfile_literal : |
152
+ FROM bin AS builder
153
+ FROM this-is-ignored-and-not-used
154
+ WORKDIR /go/src/github.com/openshift/openshift-tests-private
155
+ COPY --from=builder /go/src/github.com/openshift/openshift-tests-private /go/src/github.com/openshift/openshift-tests-private
156
+ RUN chmod g+w /go/src/github.com/openshift/openshift-tests-private && \
157
+ rm -rf /usr/bin/oc /usr/bin/kubectl
158
+ from : ci_tests-private-base_latest
159
+ inputs :
160
+ bin :
161
+ as :
162
+ - bin
45
163
to : tests-private-newpr
46
164
promotion :
47
165
to :
48
- - namespace : ci
49
- tag : " 4.19"
166
+ - disabled : true
167
+ excluded_images :
168
+ - tests-private-base
169
+ - tests-private-baseui
170
+ - tests-private
171
+ - tests-private-ui
172
+ - tests-private-newpr
173
+ name : " 4.19"
174
+ namespace : ocp
50
175
releases :
51
176
arm64-latest :
52
177
candidate :
@@ -105,7 +230,7 @@ tests:
105
230
optional : true
106
231
skip_if_only_changed : (frontend/)|(images/)|(pipeline/)|(test/extended/(disaster_recovery|hypershift|kata|psap/hypernto|winc|testdata|cluster_operator/hive|ocm_terraform|rosacli|util)/)|include\.go$
107
232
steps :
108
- cluster_profile : aws
233
+ cluster_profile : aws-2
109
234
test :
110
235
- ref : enable-qe-catalogsource
111
236
- as : pr-test
0 commit comments