Skip to content

Commit d88df37

Browse files
committed
Test vllm build
1 parent 7fae26f commit d88df37

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

tests/e2e-prow/rhoai/pipeline.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ export VLLM_API_KEY=$(cat /var/run/vllm/vllm-api-key-lcore-test || true)
1414

1515
[[ -n "$HUGGING_FACE_HUB_TOKEN" ]] && echo "✅ HUGGING_FACE_HUB_TOKEN is set" || { echo "❌ Missing HUGGING_FACE_HUB_TOKEN"; exit 1; }
1616
[[ -n "$VLLM_API_KEY" ]] && echo "✅ VLLM_API_KEY is set" || { echo "❌ Missing VLLM_API_KEY"; exit 1; }
17+
[[ -n "$ROBOT_USERNAME" ]] && echo "✅ ROBOT_USERNAME is set" || { echo "❌ Missing ROBOT_USERNAME"; exit 1; }
18+
[[ -n "$ROBOT_PASSWORD" ]] && echo "✅ ROBOT_PASSWORD is set" || { echo "❌ Missing ROBOT_PASSWORD"; exit 1; }
19+
20+
# Mirror upstream VLLM official AWS image
21+
22+
podman login --get-login || true
23+
buildah login --get-login || true
24+
25+
echo "Logging in Quay.io"
26+
buildah login quay.io -u $ROBOT_USERNAME -p $ROBOT_PASSWORD || true
27+
28+
sudo podman || true
29+
30+
echo "Mirroring vLLM..."
31+
oc image mirror \
32+
public.ecr.aws/q9t5s3a7/vllm-cpu-release-repo:latest \
33+
quay.io/rh-ee-cpompeia/vllm-cpu:latest
34+
35+
chmod +x ./scripts/build_vllm.sh
36+
./scripts/build_vllm.sh
1737

1838
# Basic info
1939
ls -A || true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
git clone https://github.com/vllm-project/vllm.git
2+
cd vllm
3+
4+
file="docker/Dockerfile.cpu"
5+
sed 's|\(target=[^, ]*\)|\1,z|g' "$file" > "${file}.patched"
6+
7+
DOCKER_BUILDKIT=1 podman build . \
8+
# --target cpu \
9+
--tag vllm-openai-lcore/cpu \
10+
--file docker/Dockerfile.cpu.patched \
11+
--build-arg max_jobs=1

0 commit comments

Comments
 (0)