Skip to content

Commit

Permalink
[ci] add dockerignore file (ray-project#42464)
Browse files Browse the repository at this point in the history
do not include stuff that is not required for testing

Signed-off-by: Lonnie Liu <[email protected]>
  • Loading branch information
aslonnie authored Jan 18, 2024
1 parent a420131 commit b003909
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/ray_ci/tests.env.Dockerfile.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git
bazel-*
11 changes: 11 additions & 0 deletions java/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ run_timeout() {
}

pushd "$ROOT_DIR"/..

if [[ ! -d ".git" ]]; then
# git is removed, but we need one for the git diff check to work, so create
# a dummy one here.
git init
git config --global user.email "[email protected]"
git config --global user.name "nobody"
git add .
git commit -a -m "capture for diff"
fi

echo "Build java maven deps."
bazel build //java:gen_maven_deps

Expand Down

0 comments on commit b003909

Please sign in to comment.