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
10
10
COPY requirements.txt ./
11
11
RUN pip install -r requirements.txt
12
12
13
+ COPY tools/docker/finish_bazel_install.sh ./
14
+ RUN bash finish_bazel_install.sh
15
+
13
16
COPY ./ /addons
14
17
WORKDIR addons
15
18
RUN 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
7
7
COPY requirements.txt ./
8
8
RUN python3 -m pip install -r requirements.txt
9
9
10
+ COPY tools/docker/finish_bazel_install.sh ./
11
+ RUN bash finish_bazel_install.sh
12
+
13
+
10
14
COPY ./ /addons
11
15
WORKDIR addons
12
16
CMD ["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
45
45
COPY tools/ci_build/install/bazel.sh ./
46
46
RUN bash bazel.sh
47
47
48
+ COPY tools/docker/finish_bazel_install.sh ./
49
+ RUN bash finish_bazel_install.sh
50
+
48
51
COPY ./ /addons
49
52
WORKDIR /addons
50
53
RUN python ./configure.py --no-deps
You can’t perform that action at this time.
0 commit comments