1+ # Copyright 2024 The JAX Authors.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+ # ==============================================================================
15+ # This file contains all the docker specifc envs that are needed by the
16+ # ci/utilities/run_docker_container.sh script.
17+ os = $( uname -s | awk ' {print tolower($0) }')
18+ arch = $( uname -m)
19+
20+ # TODO: Set GPU Docker args and GPU Docker images
21+ # Linux x86 specifc settings
22+ if [[ $os == "linux" ]] && [[ $arch == "x86_64" ]]; then
23+ export JAXCI_DOCKER_IMAGE = " us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/ml-build:latest"
24+ fi
25+
26+ # Linux Aarch64 specifc settings
27+ if [[ $os == "linux" ]] && [[ $arch == "aarch64" ]]; then
28+ export JAXCI_DOCKER_IMAGE = " us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/linux-arm64-arc-container:latest"
29+ fi
30+
31+ # Windows specific settings
32+ if [[ $os =~ "msys_nt" ]]; then
33+ export JAXCI_DOCKER_IMAGE = " gcr.io/tensorflow-testing/tf-win2019-rbe@sha256:1082ef4299a72e44a84388f192ecefc81ec9091c146f507bc36070c089c0edcc"
34+ fi
35+
36+ # Mac specific settings
37+ if [[ $os == "macos" ]]; then
38+ # Mac builds do not run in Docker.
39+ export JAXCI_RUN_DOCKER_CONTAINER = 0
40+ fi
0 commit comments