1
- FROM registry.access.redhat.com/ubi8:8.10-901.1716497712
1
+ FROM registry.access.redhat.com/ubi8:8.10-1020
2
2
3
3
ARG ORG=trustyai-explainability
4
4
ARG BRANCH=main
5
5
ARG ODS_CI_REPO=https://github.com/red-hat-data-services/ods-ci
6
6
# This git reference should always reference a stable commit from ods-ci that supports ODH
7
7
# 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
10
10
11
11
ENV HOME /root
12
12
WORKDIR /root
13
13
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 && \
16
15
dnf clean all && \
17
16
git clone https://github.com/opendatahub-io/peak $HOME/peak && \
18
17
cd $HOME/peak && \
@@ -22,31 +21,13 @@ RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.n
22
21
RUN curl -L https://github.com/mikefarah/yq/releases/download/v4.25.1/yq_linux_amd64 -o /usr/bin/yq &&\
23
22
chmod +x /usr/bin/yq
24
23
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
-
33
24
# Use a specific destination file name in case the url download name changes
34
25
ADD ${OC_CLI_URL} $HOME/peak/oc-cli.tar.gz
35
26
RUN tar -C /usr/local/bin -xvf $HOME/peak/oc-cli.tar.gz && \
36
27
chmod +x /usr/local/bin/oc
37
28
38
29
COPY Pipfile Pipfile.lock $HOME/peak/
39
30
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
-
50
31
# # Grab CI scripts from single-source-of-truth
51
32
RUN mkdir -p $HOME/peak/operator-tests/trustyai-explainability/ &&\
52
33
mkdir $HOME/kfdef/ &&\
0 commit comments