feat: migrate alpine java images to debian (#14)

* feat: migrate alpine java images to debian

Migrates all Java images to Debian-based variations which resolves the  musl libc vs. Glibc library issues. This especially concerns Forge servers.

* fix(images): install libstdc++6

Installs libstdc++6 package that is a dependency for many Minecraft plugins
This commit is contained in:
Alex 2021-08-23 18:04:35 +03:00 committed by GitHub
parent fa73c27ee5
commit 4f55fd09d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 31 additions and 25 deletions

View file

@ -20,19 +20,20 @@
# SOFTWARE.
#
FROM --platform=$BUILDPLATFORM adoptopenjdk/openjdk11:alpine-jre
FROM --platform=$BUILDPLATFORM openjdk:11-slim
LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
LABEL org.opencontainers.image.licenses=MIT
RUN apk add --update --no-cache libstdc++ ca-certificates curl fontconfig git openssl sqlite tar tzdata \
&& adduser -D -h /home/container container
RUN apt-get update -y \
&& apt-get install -y curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
CMD [ "/bin/bash", "/entrypoint.sh" ]

View file

@ -20,19 +20,20 @@
# SOFTWARE.
#
FROM --platform=$BUILDPLATFORM adoptopenjdk/openjdk11-openj9:alpine-jre
FROM --platform=$BUILDPLATFORM adoptopenjdk/openjdk11-openj9:debianslim
LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
LABEL org.opencontainers.image.licenses=MIT
RUN apk add --update --no-cache libstdc++ ca-certificates curl fontconfig git openssl sqlite tar tzdata \
&& adduser -D -h /home/container container
RUN apt-get update -y \
&& apt-get install -y curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
CMD [ "/bin/bash", "/entrypoint.sh" ]

View file

@ -20,19 +20,20 @@
# SOFTWARE.
#
FROM --platform=$BUILDPLATFORM adoptopenjdk/openjdk16:alpine-jre
FROM --platform=$BUILDPLATFORM openjdk:16-slim
LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
LABEL org.opencontainers.image.licenses=MIT
RUN apk add --update --no-cache libstdc++ ca-certificates curl fontconfig git openssl sqlite tar tzdata \
&& adduser -D -h /home/container container
RUN apt-get update -y \
&& apt-get install -y curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
CMD [ "/bin/bash", "/entrypoint.sh" ]

View file

@ -20,19 +20,20 @@
# SOFTWARE.
#
FROM --platform=$BUILDPLATFORM adoptopenjdk/openjdk16-openj9:alpine-jre
FROM --platform=$BUILDPLATFORM adoptopenjdk/openjdk16-openj9:debianslim
LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
LABEL org.opencontainers.image.licenses=MIT
RUN apk add --update --no-cache libstdc++ ca-certificates curl fontconfig git openssl sqlite tar tzdata \
&& adduser -D -h /home/container container
RUN apt-get update -y \
&& apt-get install -y curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
CMD [ "/bin/bash", "/entrypoint.sh" ]

View file

@ -20,19 +20,20 @@
# SOFTWARE.
#
FROM --platform=$BUILDPLATFORM adoptopenjdk/openjdk8:alpine-jre
FROM --platform=$BUILDPLATFORM openjdk:8-slim-buster
LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
LABEL org.opencontainers.image.licenses=MIT
RUN apk add --update --no-cache libstdc++ ca-certificates curl fontconfig git openssl sqlite tar tzdata \
&& adduser -D -h /home/container container
RUN apt-get update -y \
&& apt-get install -y curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
CMD [ "/bin/bash", "/entrypoint.sh" ]

View file

@ -20,19 +20,20 @@
# SOFTWARE.
#
FROM --platform=$BUILDPLATFORM adoptopenjdk/openjdk8-openj9:alpine-jre
FROM --platform=$BUILDPLATFORM adoptopenjdk/openjdk8-openj9:debianslim
LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
LABEL org.opencontainers.image.licenses=MIT
RUN apk add --update --no-cache libstdc++ ca-certificates curl fontconfig git openssl sqlite tar tzdata \
&& adduser -D -h /home/container container
RUN apt-get update -y \
&& apt-get install -y curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2 libstdc++6 \
&& useradd -d /home/container -m container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
CMD [ "/bin/bash", "/entrypoint.sh" ]

View file

@ -1,4 +1,4 @@
#!/bin/ash
#!/bin/bash
#
# Copyright (c) 2021 Matthew Penner