2020-08-31 10:57:17 -07:00
|
|
|
# The development Docker image build a self-contained Ray instance suitable
|
|
|
|
# for developers that need the source code to actively modify.
|
2016-08-02 17:03:28 -07:00
|
|
|
|
2020-08-31 10:57:17 -07:00
|
|
|
FROM rayproject/ray-deps:latest
|
2016-12-31 17:21:33 -08:00
|
|
|
ADD ray.tar /ray
|
2017-02-28 18:57:51 -08:00
|
|
|
ADD git-rev /ray/git-rev
|
2020-08-31 10:57:17 -07:00
|
|
|
# Install dependencies needed to build ray
|
2021-02-26 06:57:30 +08:00
|
|
|
RUN sudo apt-get update && sudo apt-get install -y curl unzip cmake gcc g++ && sudo apt-get clean
|
|
|
|
RUN sudo chown -R ray:users /ray && cd /ray && git init && ./ci/travis/install-bazel.sh --system
|
2020-11-25 13:30:10 -05:00
|
|
|
ENV PATH=$PATH:/home/ray/bin
|
2020-06-17 09:32:55 -07:00
|
|
|
RUN echo 'build --remote_cache="https://storage.googleapis.com/ray-bazel-cache"' >> $HOME/.bazelrc
|
|
|
|
RUN echo 'build --remote_upload_local_results=false' >> $HOME/.bazelrc
|
2020-06-03 12:16:03 -07:00
|
|
|
WORKDIR /ray/
|
|
|
|
# The result of bazel build is reused in pip install. It if run first to allow
|
|
|
|
# for failover to serial build if parallel build requires too much resources.
|
|
|
|
RUN bazel build //:ray_pkg || bazel build --jobs 1 //:ray_pkg
|
|
|
|
WORKDIR /ray/python/
|
2018-02-22 11:15:03 -08:00
|
|
|
RUN pip install -e .
|
2016-12-31 17:21:33 -08:00
|
|
|
WORKDIR /ray
|