mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
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:
@ -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 && \
|
||||
|
4
docker/elk/logstash/dist/entrypoint.sh
vendored
4
docker/elk/logstash/dist/entrypoint.sh
vendored
@ -101,4 +101,8 @@ if [ "$TPOT_TYPE" != "SENSOR" ];
|
||||
fi
|
||||
echo
|
||||
|
||||
ARCH=$(arch)
|
||||
if [ "$ARCH" = "aarch64" ]; then
|
||||
export _JAVA_OPTIONS="-XX:UseSVE=0";
|
||||
fi
|
||||
exec /usr/share/logstash/bin/logstash --config.reload.automatic
|
||||
|
Reference in New Issue
Block a user