-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ansible] Add Ubuntu 20.04 linux-riscv64 image (#3240)
* Add Ubuntu 20.04 linux-riscv64 image It will be used for cross-compilation and testing. * Fix runs of QEMU playbook check * Remove mercurial as it's not needed anymore and it's not available on RISC-V * Remove check for QEMU-playbook-check for QEMU * Revert part of Github Actions CI check for qemu playbooks * Add openjdk-11-jdk and openjdk-17-jdk as boot JDK * Install special JDK 19 for linux-riscv64 This special JDK 19 depends on older GLIBC which is available in Ubuntu 20.04. It's then usable inside a Ubuntu 20.04 container. * Put back QEMU-playbook-check label check * Update ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/adoptopenjdk_install/tasks/main.yml Co-authored-by: Stewart X Addison <[email protected]> * Update roles/docker/main.yml * Update docker/ubuntu.yml * Fix erroneous whitespace * Bump to gcc-10 for riscv64 --------- Co-authored-by: Stewart X Addison <[email protected]>
- Loading branch information
Showing
10 changed files
with
108 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM riscv64/ubuntu:20.04 | ||
|
||
ARG user=jenkins | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get -y install git curl ansible gpg | ||
|
||
COPY . /ansible | ||
|
||
RUN echo "localhost ansible_connection=local" > /ansible/hosts | ||
|
||
RUN set -eux; \ | ||
cd /ansible; \ | ||
ansible-playbook -i hosts ansible/playbooks/AdoptOpenJDK_Unix_Playbook/main.yml --skip-tags="debug,hosts_file,hostname,adoptopenjdk,jenkins,nagios,superuser,docker,swap_file,crontab,nvidia_cuda_toolkit,ntp_time" | ||
|
||
RUN rm -rf /ansible | ||
|
||
RUN groupadd -g 1000 ${user} | ||
RUN useradd -c "Jenkins user" -d /home/${user} -u 1000 -g 1000 -m ${user} | ||
|
||
ENV \ | ||
JDK11_BOOT_DIR="/usr/lib/jvm/java-11-openjdk-riscv64" \ | ||
JDK17_BOOT_DIR="/usr/lib/jvm/java-17-openjdk-riscv64" \ | ||
JDK19_BOOT_DIR="/usr/lib/jvm/jdk-19" \ | ||
JAVA_HOME="/usr/lib/jvm/java-11-openjdk-riscv64" |
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