-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
114 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM alpine:3 | ||
|
||
RUN apk update; apk add ansible | ||
|
||
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" \ | ||
rm -rf /ansible; apk del ansible | ||
|
||
# ENV \ | ||
# JDK8_BOOT_DIR="/usr/lib/jvm/java-1.8.0-openjdk.x86_64" \ | ||
# JDK10_BOOT_DIR="/usr/lib/jvm/jdk-10" \ | ||
# JDK11_BOOT_DIR="/usr/lib/jvm/jdk-11" \ | ||
# JDK13_BOOT_DIR="/usr/lib/jvm/jdk-13" \ | ||
# JDK14_BOOT_DIR="/usr/lib/jvm/jdk-14" \ | ||
# JDKLATEST_BOOT_DIR="/usr/lib/jvm/jdk-14" \ | ||
# JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk.x86_64" |
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
10 changes: 10 additions & 0 deletions
10
ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/Alpine.yml
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,10 @@ | ||
--- | ||
########## | ||
# Alpine # | ||
########## | ||
|
||
############################ | ||
# Build Packages and tools # | ||
############################ | ||
- name: Call Build Packages and Tools Task | ||
include_tasks: build_packages_and_tools.yml |
60 changes: 60 additions & 0 deletions
60
ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/vars/Alpine.yml
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,60 @@ | ||
--- | ||
########## | ||
# Alpine # | ||
########## | ||
|
||
# Command Build Tool Packages | ||
Build_Tool_Packages: | ||
- alpine-sdk | ||
- alsa-lib | ||
- alsa-lib-dev | ||
- autoconf | ||
- bash | ||
- bison # OpenJ9 | ||
- cups-dev | ||
- cups-libs | ||
- flex # OpenJ9 | ||
- fontconfig | ||
- fontconfig-dev | ||
- freetype | ||
- freetype-dev | ||
- grep | ||
- libdwarf # OpenJ9 | ||
- libdwarf-dev # OpenJ9 | ||
- libx11 | ||
- libx11-dev | ||
- libxext | ||
- libxext-dev | ||
- libxrandr | ||
- libxrandr-dev | ||
- libxrender | ||
- libxrender-dev | ||
- libxt | ||
- libxt-dev | ||
- libxtst | ||
- libxtst-dev | ||
- linux-headers | ||
- numactl | ||
- numactl-dev # OpenJ9 | ||
- unzip | ||
- wget | ||
- which | ||
- xz | ||
- zip | ||
|
||
Test_Tool_Packages: | ||
- unzip | ||
- zlib | ||
- zlib-dev | ||
- perl | ||
- perl-dev | ||
- libcurl | ||
- curl-dev | ||
- openssl | ||
- openssl-dev | ||
- mercurial | ||
- xauth | ||
- xorg-server | ||
- xvfb | ||
|
||
# crontab_Patching: "/usr/bin/yum -y update" |
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