Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
d7e05ac7
Unverified
Commit
d7e05ac7
authored
Dec 23, 2025
by
Nick Cao
Committed by
GitHub
Dec 23, 2025
Browse files
[docker] Fix downloading sccache on aarch64 platform (#30070)
Signed-off-by:
Nick Cao
<
nickcao@nichi.co
>
parent
471ddb99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
docker/Dockerfile
docker/Dockerfile
+9
-3
No files found.
docker/Dockerfile
View file @
d7e05ac7
...
@@ -183,7 +183,7 @@ ARG nvcc_threads=8
...
@@ -183,7 +183,7 @@ ARG nvcc_threads=8
ENV
NVCC_THREADS=$nvcc_threads
ENV
NVCC_THREADS=$nvcc_threads
ARG
USE_SCCACHE
ARG
USE_SCCACHE
ARG
SCCACHE_DOWNLOAD_URL
=https://github.com/mozilla/sccache/releases/download/v0.8.1/sccache-v0.8.1-x86_64-unknown-linux-musl.tar.gz
ARG
SCCACHE_DOWNLOAD_URL
ARG
SCCACHE_ENDPOINT
ARG
SCCACHE_ENDPOINT
ARG
SCCACHE_BUCKET_NAME=vllm-build-sccache
ARG
SCCACHE_BUCKET_NAME=vllm-build-sccache
ARG
SCCACHE_REGION_NAME=us-west-2
ARG
SCCACHE_REGION_NAME=us-west-2
...
@@ -201,10 +201,16 @@ ENV SETUPTOOLS_SCM_PRETEND_VERSION="0.0.0+csrc.build"
...
@@ -201,10 +201,16 @@ ENV SETUPTOOLS_SCM_PRETEND_VERSION="0.0.0+csrc.build"
RUN
--mount
=
type
=
cache,target
=
/root/.cache/uv
\
RUN
--mount
=
type
=
cache,target
=
/root/.cache/uv
\
if
[
"
$USE_SCCACHE
"
=
"1"
]
;
then
\
if
[
"
$USE_SCCACHE
"
=
"1"
]
;
then
\
echo
"Installing sccache..."
\
echo
"Installing sccache..."
\
&&
case
"
${
TARGETPLATFORM
}
"
in
\
linux/arm64
)
SCCACHE_ARCH
=
"aarch64"
;;
\
linux/amd64
)
SCCACHE_ARCH
=
"x86_64"
;;
\
*
)
echo
"Unsupported TARGETPLATFORM for sccache:
${
TARGETPLATFORM
}
"
>
&2
;
exit
1
;;
\
esac
\
&&
export
SCCACHE_DOWNLOAD_URL
=
"
${
SCCACHE_DOWNLOAD_URL
:-
https
://github.com/mozilla/sccache/releases/download/v0.8.1/sccache-v0.8.1-
${
SCCACHE_ARCH
}
-unknown-linux-musl.tar.gz
}
"
\
&&
curl
-L
-o
sccache.tar.gz
${
SCCACHE_DOWNLOAD_URL
}
\
&&
curl
-L
-o
sccache.tar.gz
${
SCCACHE_DOWNLOAD_URL
}
\
&&
tar
-xzf
sccache.tar.gz
\
&&
tar
-xzf
sccache.tar.gz
\
&&
sudo mv
sccache-v0.8.1-
x86_64
-unknown-linux-musl/sccache /usr/bin/sccache
\
&&
sudo mv
sccache-v0.8.1-
${
SCCACHE_ARCH
}
-unknown-linux-musl
/sccache /usr/bin/sccache
\
&&
rm
-rf
sccache.tar.gz sccache-v0.8.1-
x86_64
-unknown-linux-musl
\
&&
rm
-rf
sccache.tar.gz sccache-v0.8.1-
${
SCCACHE_ARCH
}
-unknown-linux-musl
\
&&
if
[
!
-z
${
SCCACHE_ENDPOINT
}
]
;
then
export
SCCACHE_ENDPOINT
=
${
SCCACHE_ENDPOINT
}
;
fi
\
&&
if
[
!
-z
${
SCCACHE_ENDPOINT
}
]
;
then
export
SCCACHE_ENDPOINT
=
${
SCCACHE_ENDPOINT
}
;
fi
\
&&
export
SCCACHE_BUCKET
=
${
SCCACHE_BUCKET_NAME
}
\
&&
export
SCCACHE_BUCKET
=
${
SCCACHE_BUCKET_NAME
}
\
&&
export
SCCACHE_REGION
=
${
SCCACHE_REGION_NAME
}
\
&&
export
SCCACHE_REGION
=
${
SCCACHE_REGION_NAME
}
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment