mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 22:51:19 +08:00
ad4b03bf7f
* new path for python build * add flag * build tar using git archive * no exit from start_ray.sh * update Docker instructions * update build docker script * add git revision * fix typo * bug fixes and clarifications * mend * add objectmanager ports to docker instructions * rewording * Small updates to documentation.
33 lines
719 B
Bash
Executable File
33 lines
719 B
Bash
Executable File
#!/bin/bash
|
|
|
|
while [[ $# -gt 0 ]]
|
|
do
|
|
key="$1"
|
|
case $key in
|
|
--no-cache)
|
|
NO_CACHE="--no-cache"
|
|
;;
|
|
--skip-examples)
|
|
SKIP_EXAMPLES=YES
|
|
;;
|
|
*)
|
|
echo "Usage: build-docker.sh [ --no-cache ] [ --skip-examples ]"
|
|
exit 1
|
|
esac
|
|
shift
|
|
done
|
|
|
|
# Build base dependencies, allow caching
|
|
docker build $NO_CACHE -t ray-project/base-deps docker/base-deps
|
|
|
|
# Build the current Ray source
|
|
git rev-parse HEAD > ./docker/deploy/git-rev
|
|
git archive -o ./docker/deploy/ray.tar $(git rev-parse HEAD)
|
|
docker build --no-cache -t ray-project/deploy docker/deploy
|
|
rm ./docker/deploy/ray.tar ./docker/deploy/git-rev
|
|
|
|
|
|
if [ ! $SKIP_EXAMPLES ]; then
|
|
docker build $NO_CACHE -t ray-project/examples docker/examples
|
|
fi
|