-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into locals-meets-gcs
- Loading branch information
Showing
8 changed files
with
150 additions
and
37 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
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,10 +1,8 @@ | ||
# Use the official Golang image to create a build artifact. | ||
# This is based on Debian and includes the Go toolset. | ||
FROM golang | ||
#:1.19 | ||
#FROM golang:1.22 | ||
#FROM debian:buster | ||
# as builder | ||
# Declare the CONFIG argument at the beginning | ||
ARG CONFIG=base | ||
|
||
# Base stage for common setup | ||
FROM golang as base | ||
|
||
RUN apt update | ||
RUN apt install -y protobuf-compiler | ||
|
@@ -35,13 +33,24 @@ RUN python3 -m pip install grpcio-tools --break-system-packages | |
RUN go install google.golang.org/protobuf/cmd/[email protected] | ||
RUN go install google.golang.org/grpc/cmd/[email protected] | ||
|
||
|
||
# now that we've installed pre-reqs, build everything | ||
RUN make clean && make all | ||
RUN make clean && make go && make py && make build | ||
|
||
# just to test things out | ||
RUN apt update && apt install -y iputils-ping | ||
|
||
ENV PROJECT_ROOT=/app | ||
|
||
FROM base as driver | ||
|
||
# install necessary Python packages to run anything | ||
RUN python3 -m pip install dill --break-system-packages | ||
RUN cd python && python3 -m pip install -e . --break-system-packages | ||
|
||
# expose all the ports we may use | ||
#EXPOSE 50000-69999 | ||
# install basic necessities to actually do driver stuff | ||
RUN apt install -y nano | ||
|
||
# placeholder commands | ||
#CMD ["./bin/localobjstore", "&", "./bin/localscheduler", "&", "./bin/worker"] | ||
|
||
# take in a CONFIG argument which will tell us what to target (GCS, global scheduler, or worker) | ||
# using multi-stage builds: https://chat.openai.com/share/a5eb4076-e36a-4a1e-b4c8-9d56ea7a604e | ||
FROM ${CONFIG} as final |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
# start an interactive /bin/bash session on the first container returned by "docker ps" that | ||
# uses the "ray-node:driver" image | ||
docker exec -it $(docker ps | grep 'ray-node:driver' | awk '{print $1}' | head -1) /bin/bash |
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