Disable Scalable Vector Engine (XX:UseSVE=0) to fix issues on macOS and other ARM platforms

https://github.com/elastic/elasticsearch/issues/118583
This commit is contained in:
t3chn0m4g3
2025-01-06 15:50:08 +01:00
parent 653bb2ed1e
commit b221a9d96e
3 changed files with 12 additions and 6 deletions

View File

@ -18,8 +18,8 @@ RUN apt-get update -y && \
#
# Determine arch, get and install packages
ARCH=$(arch) && \
if [ "$ARCH" = "x86_64" ]; then LS_ARCH="amd64"; fi && \
if [ "$ARCH" = "aarch64" ]; then LS_ARCH="arm64"; fi && \
if [ "$ARCH" = "x86_64" ]; then LS_ARCH="amd64"; export _JAVA_OPTIONS=""; fi && \
if [ "$ARCH" = "aarch64" ]; then LS_ARCH="arm64"; export _JAVA_OPTIONS="-XX:UseSVE=0"; fi && \
echo "$ARCH" && \
mkdir -p /etc/listbot && \
cd /etc/listbot && \