Skip to content

Add arm64v8 to 2.1 (but not 2.2) #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,19 @@ for version in "${versions[@]}"; do
# $ wget -qO- 'https://dl.bintray.com/apache/cassandra/dists/311x/Release' | grep '^Architectures:'
# Architectures: i386 amd64
arches='amd64 i386'

# https://github.com/docker-library/cassandra/pull/116#issuecomment-326650640
# Exception (java.lang.RuntimeException) encountered during startup: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
# java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
if [ "$version" != '2.2' ]; then
# on arm64, 2.1 works fine
arches+=' arm64v8'
fi
if [[ "$version" != 2.* ]]; then
arches+=' arm64v8 ppc64le'
# on ppc64le, 2.x both fail
arches+=' ppc64le'
fi

arches="$(echo "$arches" | xargs -n1 | sort)"

echo
Expand Down