-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CRYPTO-172: Add support for Linux-riscv64 (#264)
* Add support for Linux-riscv64 Java supports RISC-V since version 19. Given Apache Common Crypto is a commonly used library in the Java ecosystem, it's important for it to support RISC-V as well. This patch adds the linux-riscv64 target similarly to linux-aarch64
- Loading branch information
Showing
10 changed files
with
150 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# This file creates a Docker image for use in building linux-aarch64 on CI | ||
|
||
FROM ubuntu:20.04 | ||
|
||
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-arm64 | ||
ENV MAVEN_HOME=/opt/maven | ||
ENV PATH=${MAVEN_HOME}/bin:${PATH} | ||
# Install 64-bit dependencies and tooling. | ||
RUN apt-get update -qq && apt-get -y -qq install \ | ||
openjdk-17-jre-headless \ | ||
libssl-dev \ | ||
curl \ | ||
# Bug workaround see https://github.com/docker-library/openjdk/issues/19. | ||
&& /var/lib/dpkg/info/ca-certificates-java.postinst configure | ||
|
||
# Do this separately to make upgrades easier | ||
RUN curl -L https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz \ | ||
| tar xzf - -C /opt && ln -s /opt/apache-maven-3.8.8 /opt/maven | ||
|
||
# Ensure we are in the correct directory (this will be overlaid by the virtual mount) | ||
WORKDIR /home/crypto | ||
|
||
CMD /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# This file creates a Docker image for use in building linux-riscv64 on CI | ||
|
||
FROM riscv64/ubuntu:20.04 | ||
|
||
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-riscv64 | ||
ENV MAVEN_HOME=/opt/maven | ||
ENV PATH=${MAVEN_HOME}/bin:${PATH} | ||
# Install 64-bit dependencies and tooling. | ||
RUN apt-get update -qq && apt-get -y -qq install \ | ||
openjdk-17-jre-headless \ | ||
libssl-dev \ | ||
curl \ | ||
# Bug workaround see https://github.com/docker-library/openjdk/issues/19. | ||
&& /var/lib/dpkg/info/ca-certificates-java.postinst configure | ||
|
||
# Do this separately to make upgrades easier | ||
RUN curl -L https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz \ | ||
| tar xzf - -C /opt && ln -s /opt/apache-maven-3.8.8 /opt/maven | ||
|
||
# Ensure we are in the correct directory (this will be overlaid by the virtual mount) | ||
WORKDIR /home/crypto | ||
|
||
CMD /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters