mirror of
https://github.com/ossf/scorecard.git
synced 2024-11-05 05:17:00 +03:00
a004ffb107
* draft * fixes * commi 1 * delete file * clean * clean 2 * linter * fix score * handle err * in-proress score * fixes
31 lines
1.7 KiB
Plaintext
31 lines
1.7 KiB
Plaintext
# Copyright 2021 Security Scorecard Authors
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# Taken from https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/dockerfiles/dockerfiles/ppc64le/cpu-ppc64le-jupyter.Dockerfile
|
|
|
|
ARG CACHE_STOP=1
|
|
RUN if [ ${TF_PACKAGE} = tensorflow-gpu ]; then \
|
|
BASE=https://powerci.osuosl.org/job/TensorFlow_PPC64LE_GPU_Release_Build/lastSuccessfulBuild/; \
|
|
elif [ ${TF_PACKAGE} = tf-nightly-gpu ]; then \
|
|
BASE=https://powerci.osuosl.org/job/TensorFlow_PPC64LE_GPU_Nightly_Artifact/lastSuccessfulBuild/; \
|
|
elif [ ${TF_PACKAGE} = tensorflow ]; then \
|
|
BASE=https://powerci.osuosl.org/job/TensorFlow_PPC64LE_CPU_Release_Build/lastSuccessfulBuild/; \
|
|
elif [ ${TF_PACKAGE} = tf-nightly ]; then \
|
|
BASE=https://powerci.osuosl.org/job/TensorFlow_PPC64LE_CPU_Nightly_Artifact/lastSuccessfulBuild/; \
|
|
fi; \
|
|
MAJOR=`python3 -c 'import sys; print(sys.version_info[0])'`; \
|
|
MINOR=`python3 -c 'import sys; print(sys.version_info[1])'`; \
|
|
PACKAGE=$(wget -qO- ${BASE}"api/xml?xpath=//fileName&wrapper=artifacts" | grep -o "[^<>]*cp${MAJOR}${MINOR}[^<>]*.whl"); \
|
|
wget ${BASE}"artifact/tensorflow_pkg/"${PACKAGE}; \
|
|
python3 -m pip install --no-cache-dir ${PACKAGE} |