Skip to content

Commit

Permalink
Download bazel beforehand
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Aug 28, 2023
1 parent 7c24fbf commit 9f0430d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/windows/x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,8 @@ COPY WORKSPACE .
COPY mediapipe_api mediapipe_api
COPY third_party third_party

# cache bazel
COPY docker/windows/x86_64/cache_bazel.bat cache_bazel.bat
RUN cache_bazel.bat

CMD ["cmd"]
10 changes: 10 additions & 0 deletions docker/windows/x86_64/cache_bazel.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SET /A tries=4

:repeat
IF %tries% LEQ 0 GOTO return

SET /A tries-=1
bazel --version && (GOTO return) || (GOTO repeat)

:return
EXIT /B

0 comments on commit 9f0430d

Please sign in to comment.