[Bugfix] Fix openEuler dockerfile error (#6871)

### What this PR does / why we need it?
This pull request addresses several issues within the openEuler
Dockerfiles : `Dockerfile.a3.openEuler` and `Dockerfile.openEuler` to
ensure correct installation and setup of the Mooncake dependency. The
changes primarily involve fixing incorrect file paths for the
mooncake_installer.sh script and streamlining the declaration of the
MOONCAKE_TAG build argument, leading to more robust and accurate
container builds.
### Does this PR introduce _any_ user-facing change?

### How was this patch tested?

- vLLM version: v0.16.0
- vLLM main:
15d76f74e2

Signed-off-by: wjunLu <wjunlu217@gmail.com>
This commit is contained in:
wjunLu
2026-02-28 20:55:18 +08:00
committed by GitHub
parent 5ffae03156
commit 64fba51275
3 changed files with 8 additions and 6 deletions

View File

@@ -89,8 +89,10 @@ jobs:
fi
branch="${branch:-main}"
else
# For branch push / schedule / workflow_dispatch, use the triggering branch name
branch="${{ github.ref_name }}"
# For PR events github.ref_name is "<PR_number>/merge" which has no cached image;
# use base_ref (target branch) instead. For push/schedule, base_ref is empty so
# fall back to ref_name which is the actual branch name.
branch="${{ github.base_ref || github.ref_name }}"
fi
# Replace / with - for use in image tags
branch="${branch//\//-}"

View File

@@ -22,7 +22,7 @@ ARG MOONCAKE_TAG="v0.3.8.post1"
WORKDIR /workspace
COPY ./tools/mooncake_installer.sh /vllm-workspace/vllm-ascend/
COPY ./tools/mooncake_installer.sh /vllm-workspace/
SHELL ["/bin/bash", "-c"]
@@ -30,7 +30,7 @@ SHELL ["/bin/bash", "-c"]
RUN yum update -y && \
yum install -y git vim wget net-tools gcc gcc-c++ make cmake numactl-devel jemalloc clang && \
git clone --depth 1 --branch ${MOONCAKE_TAG} https://github.com/kvcache-ai/Mooncake /vllm-workspace/Mooncake && \
cp /vllm-workspace/mooncake_installer.sh /vllm-workspace/Mooncake/ && \
mv /vllm-workspace/mooncake_installer.sh /vllm-workspace/Mooncake/ && \
ARCH=$(uname -m) && \
source /usr/local/Ascend/ascend-toolkit/set_env.sh && \
export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/${ARCH}-linux/devlib:/usr/local/Ascend/ascend-toolkit/latest/${ARCH}-linux/lib64:$LD_LIBRARY_PATH && \

View File

@@ -18,10 +18,11 @@
FROM quay.io/ascend/cann:8.5.0-910b-openeuler24.03-py3.11
ARG PIP_INDEX_URL="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
ARG MOONCAKE_TAG="v0.3.8.post1"
WORKDIR /workspace
COPY ./tools/mooncake_installer.sh /vllm-workspace/vllm-ascend/
COPY ./tools/mooncake_installer.sh /vllm-workspace/
SHELL ["/bin/bash", "-c"]
@@ -56,7 +57,6 @@ RUN git clone --depth 1 $VLLM_REPO --branch $VLLM_TAG /vllm-workspace/vllm && \
python3 -m pip cache purge
# Install vllm-ascend
ARG MOONCAKE_TAG="v0.3.8.post1"
ARG SOC_VERSION="ascend910b1"
ENV SOC_VERSION=$SOC_VERSION \
TASK_QUEUE_ENABLE=1 \