|
1 | 1 | FROM registry.access.redhat.com/ubi8:8.10-1020
|
2 |
| - |
3 | 2 | ARG ORG=trustyai-explainability
|
4 | 3 | ARG BRANCH=main
|
5 | 4 | ARG ODS_CI_REPO=https://github.com/red-hat-data-services/ods-ci
|
6 |
| -# This git reference should always reference a stable commit from ods-ci that supports ODH |
7 |
| -# This hash corresponds to a March 24th, 2023 commit |
8 |
| -ARG ODS_CI_GITREF=a8cf770b37caa4ef7ce6596acc8bdd6866cc7772 |
9 | 5 | ARG OC_CLI_URL=https://mirror.openshift.com/pub/openshift-v4/amd64/clients/ocp/4.14.33/openshift-client-linux.tar.gz
|
10 | 6 |
|
11 | 7 | ENV HOME /root
|
@@ -36,18 +32,19 @@ COPY Pipfile Pipfile.lock $HOME/peak/
|
36 | 32 | ## Grab CI scripts from single-source-of-truth
|
37 | 33 | RUN mkdir -p $HOME/peak/operator-tests/trustyai-explainability/ &&\
|
38 | 34 | mkdir $HOME/kfdef/ &&\
|
39 |
| - cp -r $HOME/src/trustyai-explainability/tests/resources/ $HOME/peak/operator-tests/trustyai-explainability/resources &&\ |
40 |
| - cp $HOME/src/trustyai-explainability/tests/util $HOME/peak/operator-tests/trustyai-explainability &&\ |
41 |
| - cp -r $HOME/src/trustyai-explainability/tests/basictests $HOME/peak/operator-tests/trustyai-explainability/basictests &&\ |
42 | 35 | cp -r $HOME/src/trustyai-explainability/tests/setup/odh-*.yaml $HOME/kfdef/ &&\
|
43 | 36 | cp -r $HOME/src/trustyai-explainability/tests/setup/*setup $HOME/peak/ &&\
|
44 | 37 | cp -r $HOME/src/trustyai-explainability/tests/scripts/installandtest.sh $HOME/peak/
|
45 | 38 |
|
| 39 | +# Install poetry to support the exeuction of trustyai-tests |
| 40 | +RUN curl -sSL https://install.python-poetry.org | python3 - |
| 41 | +ENV PATH="${PATH}:$HOME/.local/bin" |
| 42 | +RUN cd $HOME/peak && \ |
| 43 | + git clone https://github.com/trustyai-explainability/trustyai-tests.git && \ |
| 44 | + cd trustyai-tests && \ |
| 45 | + poetry install |
| 46 | + |
46 | 47 | COPY scripts/install.sh $HOME/peak/
|
47 |
| -#COPY resources $HOME/peak/operator-tests/trustyai-explainability/resources |
48 |
| -#COPY util $HOME/peak/operator-tests/trustyai-explainability |
49 |
| -#COPY setup/odh-core.yaml $HOME/kfdef/ |
50 |
| -#COPY basictests $HOME/peak/operator-tests/trustyai-explainability/basictests |
51 | 48 |
|
52 | 49 | RUN chmod -R 777 $HOME/kfdef && \
|
53 | 50 | mkdir -p $HOME/.kube && \
|
|
0 commit comments