Skip to content

Commit c4ef802

Browse files
authored
Pin oc version, ubi version (#263)
1 parent e9a0204 commit c4ef802

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

tests/Dockerfile

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
FROM registry.access.redhat.com/ubi8:8.10-901.1716497712
1+
FROM registry.access.redhat.com/ubi8:8.10-1020
22

33
ARG ORG=trustyai-explainability
44
ARG BRANCH=main
55
ARG ODS_CI_REPO=https://github.com/red-hat-data-services/ods-ci
66
# This git reference should always reference a stable commit from ods-ci that supports ODH
77
# This hash corresponds to a March 24th, 2023 commit
8-
ARG ODS_CI_GITREF=867a617bc224726cf98fa3354293f8e50b4f5eb5
9-
ARG OC_CLI_URL=https://mirror.openshift.com/pub/openshift-v4/amd64/clients/ocp/latest/openshift-client-linux.tar.gz
8+
ARG ODS_CI_GITREF=a8cf770b37caa4ef7ce6596acc8bdd6866cc7772
9+
ARG OC_CLI_URL=https://mirror.openshift.com/pub/openshift-v4/amd64/clients/ocp/4.14.33/openshift-client-linux.tar.gz
1010

1111
ENV HOME /root
1212
WORKDIR /root
1313

14-
RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm &&\
15-
dnf install -y jq bc git go-toolset python3.11 python3.11-pip python3.11-devel unzip && \
14+
RUN dnf install -y jq bc git go-toolset python3.11 python3.11-devel python3.11-pip unzip && \
1615
dnf clean all && \
1716
git clone https://github.com/opendatahub-io/peak $HOME/peak && \
1817
cd $HOME/peak && \
@@ -22,31 +21,13 @@ RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.n
2221
RUN curl -L https://github.com/mikefarah/yq/releases/download/v4.25.1/yq_linux_amd64 -o /usr/bin/yq &&\
2322
chmod +x /usr/bin/yq
2423

25-
RUN mkdir -p $HOME/src && \
26-
cd $HOME/src && \
27-
git clone --depth=1 --branch ${BRANCH} https://github.com/${ORG}/trustyai-explainability && \
28-
# Clone ods-ci repo at specified git ref for the ODH Dashboard webUI tests
29-
git clone --depth=1 ${ODS_CI_REPO} ods-ci && cd ods-ci && \
30-
git fetch origin ${ODS_CI_GITREF} && git checkout FETCH_HEAD && \
31-
chmod -R 777 $HOME/src
32-
3324
# Use a specific destination file name in case the url download name changes
3425
ADD ${OC_CLI_URL} $HOME/peak/oc-cli.tar.gz
3526
RUN tar -C /usr/local/bin -xvf $HOME/peak/oc-cli.tar.gz && \
3627
chmod +x /usr/local/bin/oc
3728

3829
COPY Pipfile Pipfile.lock $HOME/peak/
3930

40-
RUN pip3 install micropipenv &&\
41-
ln -s `which pip3` /usr/bin/pip &&\
42-
cd $HOME/peak &&\
43-
micropipenv install
44-
45-
# Install poetry to support the exeuction of ods-ci test framework
46-
RUN curl -sSL https://install.python-poetry.org | python3 -
47-
ENV PATH="${PATH}:$HOME/.local/bin"
48-
RUN cd $HOME/src/ods-ci && poetry install
49-
5031
## Grab CI scripts from single-source-of-truth
5132
RUN mkdir -p $HOME/peak/operator-tests/trustyai-explainability/ &&\
5233
mkdir $HOME/kfdef/ &&\

0 commit comments

Comments
 (0)