forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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.
- Loading branch information
1 parent
b91d9cb
commit ad4b03b
Showing
7 changed files
with
368 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,32 @@ | ||
#!/bin/bash | ||
|
||
docker build -t ray-project/base-deps docker/base-deps | ||
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 | ||
|
||
tar --exclude './docker' -c . > ./docker/deploy/ray.tar | ||
# 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 build -t ray-project/examples docker/examples | ||
rm ./docker/deploy/ray.tar ./docker/deploy/git-rev | ||
|
||
|
||
if [ ! $SKIP_EXAMPLES ]; then | ||
docker build $NO_CACHE -t ray-project/examples docker/examples | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.