Skip to content

Commit b93cecc

Browse files
authored
Build and push Aarch64 CPU image to ECR (#204)
Signed-off-by: Ioana Ghiban <[email protected]>
1 parent 6a46208 commit b93cecc

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

buildkite/test-template-ci.j2

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
{% set docker_image_torch_nightly = "public.ecr.aws/q9t5s3a7/vllm-ci-test-repo:$BUILDKITE_COMMIT-torch-nightly" %}
44
{% set docker_image_cu118 = "public.ecr.aws/q9t5s3a7/vllm-ci-test-repo:$BUILDKITE_COMMIT-cu118" %}
55
{% set docker_image_cpu = "public.ecr.aws/q9t5s3a7/vllm-ci-test-repo:$BUILDKITE_COMMIT-cpu" %}
6+
{% set docker_image_arm64_cpu = "public.ecr.aws/q9t5s3a7/vllm-ci-test-repo:$BUILDKITE_COMMIT-arm64-cpu" %}
67
{% if branch == "main" %}
78
{% set docker_image = "public.ecr.aws/q9t5s3a7/vllm-ci-postmerge-repo:$BUILDKITE_COMMIT" %}
89
{% set docker_image_latest = "public.ecr.aws/q9t5s3a7/vllm-ci-postmerge-repo:latest" %}
910
{% set docker_image_torch_nightly = "public.ecr.aws/q9t5s3a7/vllm-ci-postmerge-repo:$BUILDKITE_COMMIT-torch-nightly" %}
1011
{% set docker_image_cu118 = "public.ecr.aws/q9t5s3a7/vllm-ci-postmerge-repo:$BUILDKITE_COMMIT-cu118" %}
1112
{% set docker_image_cpu = "public.ecr.aws/q9t5s3a7/vllm-ci-postmerge-repo:$BUILDKITE_COMMIT-cpu" %}
13+
{% set docker_image_arm64_cpu = "public.ecr.aws/q9t5s3a7/vllm-ci-postmerge-repo:$BUILDKITE_COMMIT-arm64-cpu" %}
1214
{% set docker_image_hpu = "public.ecr.aws/q9t5s3a7/vllm-ci-postmerge-repo:$BUILDKITE_COMMIT-hpu" %}
1315
{% endif %}
1416
{% set docker_image_amd = "rocm/vllm-ci:$BUILDKITE_COMMIT" %}
@@ -545,6 +547,36 @@ steps:
545547
limit: 2
546548
{% endif %}
547549

550+
- label: ":docker: build image ARM64 CPU"
551+
key: image-build-arm64-cpu
552+
depends_on: ~
553+
agents:
554+
{% if branch == "main" %}
555+
queue: arm64_cpu_queue_postmerge
556+
{% else %}
557+
queue: arm64_cpu_queue_premerge
558+
{% endif %}
559+
commands:
560+
- "aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/q9t5s3a7"
561+
- |
562+
#!/bin/bash
563+
if [[ -z $(docker manifest inspect {{ docker_image_cpu }}) ]]; then
564+
echo "Image not found, proceeding with build..."
565+
else
566+
echo "Image found"
567+
exit 0
568+
fi
569+
- "docker build --file docker/Dockerfile.cpu --build-arg max_jobs=16 --build-arg buildkite_commit=$BUILDKITE_COMMIT --tag {{ docker_image_cpu }} --target vllm-test --progress plain ."
570+
- "docker push {{ docker_image_cpu }}"
571+
env:
572+
DOCKER_BUILDKIT: "1"
573+
retry:
574+
automatic:
575+
- exit_status: -1 # Agent was lost
576+
limit: 2
577+
- exit_status: -10 # Agent was lost
578+
limit: 2
579+
548580
{% for step in steps %}
549581
{% if step.fast_check_only != true %}
550582

0 commit comments

Comments
 (0)