mirror of
https://github.com/wassname/ray.git
synced 2026-07-10 05:38:53 +08:00
[docker] Mirror Functionality of CI scripts & Fix docs (#10349)
* first-pass * add back build examples * remove unnecessary test * add gcc and more formatting * doc fixing * small fixes
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# The development Docker image build a self-contained Ray instance suitable
|
||||
# for developers that need the source code to actively modify.
|
||||
|
||||
FROM rayproject/ray-deps:latest
|
||||
ADD ray.tar /ray
|
||||
ADD git-rev /ray/git-rev
|
||||
# Install dependencies needed to build ray
|
||||
RUN apt-get update && apt-get install -y curl unzip cmake gcc && apt-get clean
|
||||
RUN cd /ray && git init && ./ci/travis/install-bazel.sh --system
|
||||
ENV PATH=$PATH:/root/bin
|
||||
RUN echo 'build --remote_cache="https://storage.googleapis.com/ray-bazel-cache"' >> $HOME/.bazelrc
|
||||
RUN echo 'build --remote_upload_local_results=false' >> $HOME/.bazelrc
|
||||
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/
|
||||
RUN pip install -e .
|
||||
WORKDIR /ray
|
||||
Reference in New Issue
Block a user