@@ -20,15 +20,18 @@ COPY management-api-shim-4.x ./management-api-shim-4.x
20
20
RUN mvn -q -ff package -DskipTests
21
21
22
22
FROM --platform=$BUILDPLATFORM maven:3.6.3-jdk-8-slim as netty4150
23
- RUN mvn dependency:get -DgroupId=io.netty -DartifactId=netty-all -Dversion=4.1.50.Final -Dtransitive=false
23
+ RUN mvn dependency:get -DgroupId=io.netty -DartifactId=netty-transport-native-epoll -Dversion=4.1.50.Final -Dclassifier=linux-aarch64
24
+ # RUN mvn dependency:get -DgroupId=io.netty -DartifactId=netty-all -Dversion=4.1.50.Final -Dtransitive=false
24
25
25
26
FROM --platform=linux/amd64 cassandra:3.11 as oss311-amd64
26
27
27
28
FROM --platform=linux/arm64 cassandra:3.11 as oss311-arm64
28
- # Netty arm64 epoll support was not added until 4.1.50 (https://github.com/netty/netty/pull/9804)
29
- # Only replace this dependency for arm64 to avoid regressions
30
- RUN rm /opt/cassandra/lib/netty-all-*.jar
31
- COPY --from=netty4150 /root/.m2/repository/io/netty/netty-all/4.1.50.Final/netty-all-4.1.50.Final.jar /opt/cassandra/lib/netty-all-4.1.50.Final.jar
29
+ # The management api agent uses epoll, but Netty did not include arm64 binaries
30
+ # until version 4.1.50 (https://github.com/netty/netty/pull/9804)
31
+ # Only add this dependency for arm64 to avoid regressions
32
+ COPY --from=netty4150 /root/.m2/repository/io/netty/netty-transport-native-epoll/4.1.50.Final/netty-transport-native-epoll-4.1.50.Final-linux-aarch64.jar /opt/cassandra/lib/
33
+ # RUN rm /opt/cassandra/lib/netty-all-*.jar
34
+ # COPY --from=netty4150 /root/.m2/repository/io/netty/netty-all/4.1.50.Final/netty-all-4.1.50.Final.jar /opt/cassandra/lib/netty-all-4.1.50.Final.jar
32
35
33
36
FROM oss311-${TARGETARCH} as oss311
34
37
@@ -72,8 +75,9 @@ FROM --platform=linux/amd64 cassandra:4.0 as oss40-amd64
72
75
FROM --platform=linux/arm64 cassandra:4.0 as oss40-arm64
73
76
# Netty arm64 epoll support was not added until 4.1.50 (https://github.com/netty/netty/pull/9804)
74
77
# Only replace this dependency for arm64 to avoid regressions
75
- RUN rm /opt/cassandra/lib/netty-all-*.jar
76
- COPY --from=netty4150 /root/.m2/repository/io/netty/netty-all/4.1.50.Final/netty-all-4.1.50.Final.jar /opt/cassandra/lib/netty-all-4.1.50.Final.jar
78
+ # RUN rm /opt/cassandra/lib/netty-all-*.jar
79
+ COPY --from=netty4150 /root/.m2/repository/io/netty/netty-transport-native-epoll/4.1.50.Final/netty-transport-native-epoll-4.1.50.Final-linux-aarch64.jar /opt/cassandra/lib/
80
+ # COPY --from=netty4150 /root/.m2/repository/io/netty/netty-all/4.1.50.Final/netty-all-4.1.50.Final.jar /opt/cassandra/lib/netty-all-4.1.50.Final.jar
77
81
78
82
FROM oss40-${TARGETARCH} as oss40
79
83
0 commit comments