forked from pelican-eggs/yolks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mono latest and libfreetype6 to java (pelican-eggs#18)
Changes codestyle of Java images
- Loading branch information
Showing
11 changed files
with
98 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: build mono | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- mono/** | ||
jobs: | ||
push: | ||
name: "yolks:mono_${{ matrix.tag }}" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
tag: | ||
- latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: docker/setup-buildx-action@v1 | ||
with: | ||
version: "v0.5.1" | ||
buildkitd-flags: --debug | ||
- uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.REGISTRY_TOKEN }} | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
context: ./mono | ||
file: ./mono/${{ matrix.tag }}/Dockerfile | ||
platforms: linux/amd64 | ||
push: true | ||
tags: | | ||
ghcr.io/parkervcp/yolks:mono_${{ matrix.tag }} |
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 |
---|---|---|
|
@@ -5,9 +5,9 @@ LABEL author="Michael Parker" maintainer="[email protected]" | |
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get install -y curl ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 \ | ||
&& useradd -d /home/container -m container | ||
RUN apt update -y \ | ||
&& apt install -y curl ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 \ | ||
&& useradd -d /home/container -m container | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
|
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 |
---|---|---|
|
@@ -2,9 +2,9 @@ FROM --platform=$TARGETOS/$TARGETARCH adoptopenjdk/openjdk11-openj9:debia | |
|
||
LABEL author="Michael Parker" maintainer="[email protected]" | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get install -y curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2 \ | ||
&& useradd -d /home/container -m container | ||
RUN apt update -y \ | ||
&& apt install -y curl ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 \ | ||
&& useradd -d /home/container -m container | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
|
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 |
---|---|---|
|
@@ -5,9 +5,9 @@ LABEL author="Michael Parker" maintainer="[email protected]" | |
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get install -y curl ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 \ | ||
&& useradd -d /home/container -m container | ||
RUN apt update -y \ | ||
&& apt install -y curl ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 \ | ||
&& useradd -d /home/container -m container | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
|
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 |
---|---|---|
|
@@ -2,9 +2,9 @@ FROM --platform=$TARGETOS/$TARGETARCH adoptopenjdk/openjdk16-openj9:debia | |
|
||
LABEL author="Michael Parker" maintainer="[email protected]" | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get install -y curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2 \ | ||
&& useradd -d /home/container -m container | ||
RUN apt update -y \ | ||
&& apt install -y curl ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 \ | ||
&& useradd -d /home/container -m container | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
|
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 |
---|---|---|
|
@@ -5,9 +5,9 @@ LABEL author="Michael Parker" maintainer="[email protected]" | |
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get install -y curl ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 \ | ||
&& useradd -d /home/container -m container | ||
RUN apt update -y \ | ||
&& apt install -y curl ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 \ | ||
&& useradd -d /home/container -m container | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
|
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 |
---|---|---|
|
@@ -5,9 +5,9 @@ LABEL author="Michael Parker" maintainer="[email protected]" | |
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get install -y curl ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 \ | ||
&& useradd -d /home/container -m container | ||
RUN apt update -y \ | ||
&& apt install -y curl ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 \ | ||
&& useradd -d /home/container -m container | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
|
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 |
---|---|---|
|
@@ -2,9 +2,9 @@ FROM --platform=$TARGETOS/$TARGETARCH adoptopenjdk/openjdk8-openj9:debian | |
|
||
LABEL author="Michael Parker" maintainer="[email protected]" | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get install -y curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2 \ | ||
&& useradd -d /home/container -m container | ||
RUN apt update -y \ | ||
&& apt install -y curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2 libfreetype6 \ | ||
&& useradd -d /home/container -m container | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
|
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,12 @@ | ||
#!/bin/bash | ||
cd /home/container | ||
|
||
# Make internal Docker IP address available to processes. | ||
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` | ||
|
||
# Replace Startup Variables | ||
MODIFIED_STARTUP="eval $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')" | ||
echo ":/home/container$ ${MODIFIED_STARTUP}" | ||
|
||
# Run the Server | ||
${MODIFIED_STARTUP} |
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,22 @@ | ||
# ---------------------------------- | ||
# Mono Latest Image | ||
# Minimum Panel Version: 1.2.x | ||
# ---------------------------------- | ||
FROM ghcr.io/parkervcp/yolks:debian | ||
|
||
LABEL author="Torsten Widmann" maintainer="[email protected]" | ||
|
||
RUN apt update \ | ||
&& apt -y upgrade | ||
RUN apt install -y fontconfig dirmngr | ||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | ||
RUN sh -c 'echo "deb https://download.mono-project.com/repo/debian stable-buster main" > /etc/apt/sources.list.d/mono-official-stable.list' | ||
RUN apt update | ||
RUN apt install mono-complete -y | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
WORKDIR /home/container | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
CMD ["/bin/bash", "/entrypoint.sh"] |