-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
build.Dockerfile
40 lines (29 loc) · 971 Bytes
/
build.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ARG DOCKER_IMAGE_BASE_BUILD
FROM $DOCKER_IMAGE_BASE_BUILD
ARG BUILDKITE_PULL_REQUEST
ARG BUILDKITE_COMMIT
ARG BUILDKITE_PULL_REQUEST_BASE_BRANCH
ENV BUILDKITE_PULL_REQUEST=${BUILDKITE_PULL_REQUEST}
ENV BUILDKITE_COMMIT=${BUILDKITE_COMMIT}
ENV BUILDKITE_PULL_REQUEST_BASE_BRANCH=${BUILDKITE_PULL_REQUEST_BASE_BRANCH}
ENV TRAVIS_COMMIT=${BUILDKITE_COMMIT}
# Set compiler here to build Ray with CLANG/LLVM
ENV CC=clang
ENV CXX=clang++-12
# Move out of working dir /ray
# Delete stale data
WORKDIR /
RUN rm -rf /ray
RUN mkdir /ray
WORKDIR /ray
# Below should be re-run each time
COPY . .
RUN env
# init also calls install-dependencies.sh
RUN BUILD=1 bash --login -i ./ci/ci.sh init
RUN bash --login -i ./ci/ci.sh build
# Check that importing ray works
RUN bash --login -i -c -- "python3 -c 'import ray'"
# Run determine test to run
RUN bash --login -i -c "python ./ci/pipeline/determine_tests_to_run.py --output=json > affected_set.json"
RUN cat affected_set.json