Skip to content

Commit

Permalink
[ci] remove old prepare_docker (ray-project#41719)
Browse files Browse the repository at this point in the history
and directly tag images as `ha_integration`

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
  • Loading branch information
aslonnie authored Dec 8, 2023
1 parent b845a63 commit 50d81ac
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 33 deletions.
1 change: 0 additions & 1 deletion .buildkite/core.rayci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ steps:
instance_type: medium
commands:
- bazel run //ci/ray_ci:build_in_docker -- docker --python-version 3.8 --platform cpu --canonical-tag ha_integration
- docker tag rayproject/ray:ha_integration ray_ci:v1
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/tests/... core --only-tags ha_integration
depends_on:
- manylinux
Expand Down
1 change: 0 additions & 1 deletion .buildkite/serve.rayci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ steps:
instance_type: medium
commands:
- bazel run //ci/ray_ci:build_in_docker -- docker --python-version 3.8 --platform cpu --canonical-tag ha_integration
- docker tag rayproject/ray:ha_integration ray_ci:v1
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/serve/tests/... serve
--only-tags ha_integration
depends_on:
Expand Down
29 changes: 0 additions & 29 deletions ci/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,35 +177,6 @@ test_core() {
bazel test --config=ci --build_tests_only $(./ci/run/bazel_export_options) -- "${args[@]}"
}

prepare_docker() {
rm "${WORKSPACE_DIR}"/python/dist/* ||:
pushd "${WORKSPACE_DIR}/python"
pip install -e . --verbose
python setup.py bdist_wheel
tmp_dir="/tmp/prepare_docker_$RANDOM"
mkdir -p $tmp_dir
cp "${WORKSPACE_DIR}"/python/dist/*.whl $tmp_dir
wheel=$(ls "${WORKSPACE_DIR}"/python/dist/)
base_image=$(python -c "import sys; print(f'rayproject/ray-deps:nightly-py{sys.version_info[0]}{sys.version_info[1]}-cpu')")
echo "
FROM $base_image
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
COPY ./*.whl /
EXPOSE 8000
EXPOSE 10001
RUN pip install /${wheel}[serve]
RUN (sudo apt update || true) && sudo apt install curl -y
" > $tmp_dir/Dockerfile

pushd $tmp_dir
docker build . -t ray_ci:v1
popd

popd
}

# For running Serve tests on Windows.
test_serve() {
if [ "${OSTYPE}" = msys ]; then
Expand Down
4 changes: 2 additions & 2 deletions python/ray/tests/conftest_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def print_logs(self):
head_node_container_name = "gcs" + str(int(time.time()))

head_node = container(
image="ray_ci:v1",
image="rayproject/ray:ha_integration",
name=head_node_container_name,
network="{gcs_network.name}",
command=[
Expand Down Expand Up @@ -111,7 +111,7 @@ def print_logs(self):
)

worker_node = container(
image="ray_ci:v1",
image="rayproject/ray:ha_integration",
network="{gcs_network.name}",
command=[
"ray",
Expand Down

0 comments on commit 50d81ac

Please sign in to comment.