File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed
Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ RUN bash bazel.sh
1010COPY requirements.txt ./
1111RUN pip install -r requirements.txt
1212
13+ COPY tools/docker/finish_bazel_install.sh ./
14+ RUN bash finish_bazel_install.sh
15+
1316COPY ./ /addons
1417WORKDIR addons
1518RUN bash tools/ci_testing/addons_cpu.sh --no-deps
Original file line number Diff line number Diff line change 1+ set -e
2+ # hack to have the dependecies in the docker cache
3+ # and have much faster local build with docker
4+ # can be removed once docker buildx/buildkit is stable
5+ # and we'll use "RUN --mount=cache ..." instead
6+ cd /tmp
7+ git clone https://github.com/tensorflow/addons.git
8+ cd addons
9+ python ./configure.py --no-deps
10+ bazel build --nobuild -- //tensorflow_addons/...
11+ cd ..
12+ rm -rf ./addons
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ RUN python3 -m pip install -r build-requirements.txt
77COPY requirements.txt ./
88RUN python3 -m pip install -r requirements.txt
99
10+ COPY tools/docker/finish_bazel_install.sh ./
11+ RUN bash finish_bazel_install.sh
12+
13+
1014COPY ./ /addons
1115WORKDIR addons
1216CMD ["bash" , "tools/ci_testing/addons_gpu.sh" ]
Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ RUN apt-get update && apt-get install sudo
4545COPY tools/ci_build/install/bazel.sh ./
4646RUN bash bazel.sh
4747
48+ COPY tools/docker/finish_bazel_install.sh ./
49+ RUN bash finish_bazel_install.sh
50+
4851COPY ./ /addons
4952WORKDIR /addons
5053RUN python ./configure.py --no-deps
You can’t perform that action at this time.
0 commit comments