mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Docker builds on Travis (#343)
* attempt to build on travis using docker * run tests in foreground * add examples to travis tests * test from current checkout * attempt to fix docker version issues * try build with xenial * attempt docker upgrade * avoid hang on configuration files * matrix osx and linux w/ docker * restore non-test docker builds * fix typo * tuning and cleanup * add missing file * comment cleanup
This commit is contained in:
committed by
Robert Nishihara
parent
33d03e56db
commit
583df08957
@@ -0,0 +1,19 @@
|
||||
# Base image for tests. This differs from the deploy image in that
|
||||
# rather than downloading source code from github it instead adds
|
||||
# it from a tar file creaetd by test/travis-ci/install.sh
|
||||
|
||||
FROM ubuntu:xenial
|
||||
RUN apt-get update
|
||||
RUN apt-get -y install apt-utils
|
||||
RUN apt-get -y install sudo
|
||||
RUN apt-get install -y git cmake build-essential autoconf curl libtool python-dev python-numpy python-pip libboost-all-dev unzip graphviz
|
||||
RUN pip install ipython typing funcsigs subprocess32 protobuf==3.0.0a2 colorama graphviz cloudpickle
|
||||
RUN adduser --gecos --ingroup ray-user --disabled-login --gecos ray-user
|
||||
RUN adduser ray-user sudo
|
||||
RUN sed -i "s|%sudo\tALL=(ALL:ALL) ALL|%sudo\tALL=NOPASSWD: ALL|" /etc/sudoers
|
||||
ADD ray.tar /home/ray-user/ray
|
||||
RUN chown -R ray-user.ray-user /home/ray-user/ray
|
||||
USER ray-user
|
||||
WORKDIR /home/ray-user/ray
|
||||
RUN ./setup.sh
|
||||
RUN ./build.sh
|
||||
Reference in New Issue
Block a user