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:
parent
fa73c27ee5
commit
4f55fd09d9
7 changed files with 31 additions and 25 deletions
|
@ -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" ]
|
||||
|
|
|
@ -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" ]
|
||||
|
|
|
@ -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" ]
|
||||
|
|
|
@ -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" ]
|
||||
|
|
|
@ -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" ]
|
||||
|
|
|
@ -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" ]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/ash
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Copyright (c) 2021 Matthew Penner
|
||||
|
|
Loading…
Reference in a new issue