Skip to content
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

Add Alpine support #1

Merged
merged 12 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
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
53 changes: 51 additions & 2 deletions .github/workflows/adoptium-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
packages: write

jobs:
java-docker-images:
build:
name: "java-docker-images:adoptium_${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/vega-network-main/adoptium
ghcr.io/en0tuk/adoptium
tags: |
${{ matrix.tag }}

Expand All @@ -57,3 +57,52 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta_adoptium.outputs.tags }}
labels: ${{ steps.meta_adoptium.outputs.labels }}

build-alpine:
name: "java-docker-images:adoptium_${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
matrix:
tag:
- 8-alpine
- 11-alpine
- 17-alpine
- 19-alpine
- 21-alpine
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2

- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta_adoptium
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/en0tuk/adoptium
tags: |
${{ matrix.tag }}

- name: Build and push images
uses: docker/build-push-action@v3
with:
context: .
file: ./Adoptium/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta_adoptium.outputs.tags }}
labels: ${{ steps.meta_adoptium.outputs.labels }}
53 changes: 51 additions & 2 deletions .github/workflows/amazon-corretto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
packages: write

jobs:
java-docker-images:
build:
name: "java-docker-images:corretto_${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/vega-network-main/amazon-corretto
ghcr.io/en0tuk/amazon-corretto
tags: |
${{ matrix.tag }}

Expand All @@ -57,3 +57,52 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta_corretto.outputs.tags }}
labels: ${{ steps.meta_corretto.outputs.labels }}

build-alpine:
name: "java-docker-images:corretto_${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
matrix:
tag:
- 8-alpine
- 11-alpine
- 17-alpine
- 19-alpine
- 21-alpine
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2

- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta_corretto
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/en0tuk/amazon-corretto
tags: |
${{ matrix.tag }}

- name: Build and push images
uses: docker/build-push-action@v3
with:
context: .
file: ./Amazon Corretto/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta_corretto.outputs.tags }}
labels: ${{ steps.meta_corretto.outputs.labels }}
2 changes: 1 addition & 1 deletion .github/workflows/azul-zulu-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/vega-network-main/azul-zulu
ghcr.io/en0tuk/azul-zulu
tags: |
${{ matrix.tag }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/graalvm-ce-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/vega-network-main/graalvm-ce
ghcr.io/en0tuk/graalvm-ce
tags: |
${{ matrix.tag }}

Expand Down
50 changes: 48 additions & 2 deletions .github/workflows/openjdk-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
packages: write

jobs:
java-docker-images:
build:
name: "java-docker-images:openjdk_${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/vega-network-main/openjdk
ghcr.io/en0tuk/openjdk
tags: |
${{ matrix.tag }}

Expand All @@ -56,3 +56,49 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta_openjdk.outputs.tags }}
labels: ${{ steps.meta_openjdk.outputs.labels }}

build-alpine:
name: "java-docker-images:openjdk_${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
matrix:
tag:
- 17-alpine
- 19-alpine
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2

- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta_openjdk
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/en0tuk/openjdk
tags: |
${{ matrix.tag }}

- name: Build and push images
uses: docker/build-push-action@v3
with:
context: .
file: ./OpenJDK/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta_openjdk.outputs.tags }}
labels: ${{ steps.meta_openjdk.outputs.labels }}
23 changes: 23 additions & 0 deletions Adoptium/11-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: Java
# Minimum Panel Version: 1.7.0
# ----------------------------------
FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:11-jdk-alpine

MAINTAINER vovamod, <[email protected]>

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV DEBIAN_FRONTEND=noninteractive

RUN apk update --no-cache \
&& apk add curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2


RUN adduser -D -h /home/container container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./../entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]
23 changes: 23 additions & 0 deletions Adoptium/17-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: Java
# Minimum Panel Version: 1.7.0
# ----------------------------------
FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:17-jdk-alpine

MAINTAINER vovamod, <[email protected]>

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV DEBIAN_FRONTEND=noninteractive

RUN apk update --no-cache \
&& apk add curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2


RUN adduser -D -h /home/container container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./../entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]
23 changes: 23 additions & 0 deletions Adoptium/19-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: Java
# Minimum Panel Version: 1.7.0
# ----------------------------------
FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:19-jdk-alpine

MAINTAINER vovamod, <[email protected]>

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV DEBIAN_FRONTEND=noninteractive

RUN apk update --no-cache \
&& apk add curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2


RUN adduser -D -h /home/container container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./../entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]
23 changes: 23 additions & 0 deletions Adoptium/21-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: Java
# Minimum Panel Version: 1.7.0
# ----------------------------------
FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:21-jdk-alpine

MAINTAINER vovamod, <[email protected]>

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV DEBIAN_FRONTEND=noninteractive

RUN apk update --no-cache \
&& apk add curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2


RUN adduser -D -h /home/container container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./../entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]
23 changes: 23 additions & 0 deletions Adoptium/8-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: Java
# Minimum Panel Version: 1.7.0
# ----------------------------------
FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:8-jdk-alpine

MAINTAINER vovamod, <[email protected]>

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:UTF-8' LC_ALL='en_US.UTF-8'
ENV DEBIAN_FRONTEND=noninteractive

RUN apk update --no-cache \
&& apk add curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2


RUN adduser -D -h /home/container container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./../entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]
10 changes: 5 additions & 5 deletions Adoptium/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
## Versions

### [Java 11 | Version: 11.0.21+9-LTS](https://github.com/vega-network-main/java-docker-images/tree/main/Adoptium/11)
> ghcr.io/vega-network-main/adoptium:8
> ghcr.io/en0tuk/adoptium:8

### [Java 11 | Version: 11.0.21+9-LTS](https://github.com/vega-network-main/java-docker-images/tree/main/Adoptium/11)
> ghcr.io/vega-network-main/adoptium:11
> ghcr.io/en0tuk/adoptium:11

### [Java 17 | Version: 17.0.9+9-LTS](https://github.com/vega-network-main/java-docker-images/tree/main/Adoptium/17)
> ghcr.io/vega-network-main/adoptium:17
> ghcr.io/en0tuk/adoptium:17

### [Java 19 | Version: 19.0.2+7](https://github.com/vega-network-main/java-docker-images/tree/main/Adoptium/19)
> ghcr.io/vega-network-main/adoptium:19
> ghcr.io/en0tuk/adoptium:19

### [Java 21 | Version: 21+35-LTS](https://github.com/vega-network-main/java-docker-images/tree/main/Adoptium/21)
> ghcr.io/vega-network-main/adoptium:21
> ghcr.io/en0tuk/adoptium:21
23 changes: 23 additions & 0 deletions Amazon Corretto/11-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: Java
# Minimum Panel Version: 1.7.0
# ----------------------------------
FROM --platform=$TARGETOS/$TARGETARCH amazoncorretto:11.0.21-alpine

MAINTAINER vovamod, <[email protected]>

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:UTF-8' LC_ALL='en_US.UTF-8'
ENV DEBIAN_FRONTEND=noninteractive

RUN apk update --no-cache \
&& apk add curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2


RUN adduser -D -h /home/container container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./../entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]
Loading