Skip to content

Commit fc46ac6

Browse files
authored
[release] hardcode debian requirements (ray-project#55214)
stop pretending that it is configurable. Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
1 parent f1eef5a commit fc46ac6

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

ci/build/build-anyscale-docker.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ DOCKER_BUILDKIT=1 docker build \
2525
DOCKER_BUILDKIT=1 docker build \
2626
--build-arg BASE_IMAGE="$DEST_IMAGE" \
2727
--build-arg PIP_REQUIREMENTS="$REQUIREMENTS" \
28-
--build-arg DEBIAN_REQUIREMENTS=requirements_debian_byod.txt \
2928
-t "$DEST_IMAGE" \
3029
-f release/ray_release/byod/byod.Dockerfile \
3130
release/ray_release/byod

release/ray_release/byod/build.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ def build_anyscale_base_byod_images(tests: List[Test]) -> None:
130130
f"BASE_IMAGE={byod_image}",
131131
"--build-arg",
132132
f"PIP_REQUIREMENTS={byod_requirements}",
133-
"--build-arg",
134-
"DEBIAN_REQUIREMENTS=requirements_debian_byod.txt",
135133
"-t",
136134
byod_image,
137135
"-f",

release/ray_release/byod/byod.Dockerfile

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,32 @@ ARG BASE_IMAGE
55
FROM "$BASE_IMAGE"
66

77
ARG PIP_REQUIREMENTS
8-
ARG DEBIAN_REQUIREMENTS
98

10-
COPY "$DEBIAN_REQUIREMENTS" .
119
RUN <<EOF
1210
#!/bin/bash
1311

14-
sudo apt-get update -y \
15-
&& sudo apt-get install -y --no-install-recommends $(cat requirements_debian_byod.txt) \
16-
&& sudo apt-get autoclean
12+
set -euo pipefail
13+
14+
DEBIAN_REQUIREMENTS=(
15+
apt-transport-https
16+
ca-certificates
17+
curl
18+
htop
19+
gnupg
20+
google-cloud-sdk
21+
libaio1
22+
libgl1-mesa-glx
23+
libglfw3
24+
libjemalloc-dev
25+
libosmesa6-dev
26+
patchelf
27+
unzip
28+
zip
29+
)
30+
31+
sudo apt-get update -y
32+
sudo apt-get install -y --no-install-recommends "${DEBIAN_REQUIREMENTS[@]}"
33+
sudo apt-get autoclean
1734

1835
rm -rf /tmp/wrk
1936
git clone --branch 4.2.0 https://github.com/wg/wrk.git /tmp/wrk

release/ray_release/byod/requirements_debian_byod.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)