-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
34 changed files
with
367 additions
and
77 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,50 @@ | ||
name: build apps | ||
|
||
on: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- /apps/** | ||
|
||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
jobs: | ||
push: | ||
name: "alpine:${{ matrix.oses }}" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
oses: | ||
- gitea | ||
- uptimekuma | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: docker/setup-qemu-action@v3 | ||
|
||
- uses: docker/setup-buildx-action@v3 | ||
with: | ||
buildkitd-flags: --debug | ||
|
||
- uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: docker/build-push-action@v5 | ||
with: | ||
context: ./apps/${{ matrix.oses }} | ||
file: ./apps/${{ matrix.oses }}/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: | | ||
ghcr.io/goover/apps:${{ matrix.oses }} |
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 |
---|---|---|
|
@@ -22,7 +22,6 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
oses: | ||
- gitea | ||
- discordpush | ||
- node16132 | ||
- 14pptr | ||
|
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
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,50 @@ | ||
FROM --platform=$TARGETOS/$TARGETARCH node:18-alpine | ||
|
||
LABEL author="Torsten Widmann" maintainer="info@goover.de" | ||
LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
RUN apk update \ | ||
&& apk upgrade | ||
|
||
RUN add --no-cache \ | ||
autoconf \ | ||
automake \ | ||
build-essential \ | ||
ca-certificates\ | ||
curl \ | ||
dnsutils \ | ||
ffmpeg \ | ||
g++ \ | ||
git \ | ||
gpg \ | ||
gnupg2 \ | ||
iproute2 \ | ||
iputils-ping \ | ||
libtool \ | ||
python3 \ | ||
python3-dev \ | ||
sqlite3 \ | ||
tzdata \ | ||
zip \ | ||
libnss3 \ | ||
libsqlite3-dev | ||
|
||
# updating npm | ||
RUN npm install npm@latest -g | ||
|
||
# add cloudflare repo | ||
RUN mkdir -p --mode=0755 /usr/share/keyrings \ | ||
&& curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null \ | ||
&& echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared bookworm main' | tee /etc/apt/sources.list.d/cloudflared.list \ | ||
&& apt update \ | ||
&& apt install -y cloudflared | ||
|
||
## Setup user and working directory | ||
RUN useradd -m -d /home/container -s /bin/bash container | ||
USER container | ||
ENV USER=container HOME=/home/container | ||
WORKDIR /home/container | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
CMD ["/bin/bash", "/entrypoint.sh"] |
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 @@ | ||
#!/bin/bash | ||
#System variables | ||
clear | ||
RED='\033[0;31m' | ||
GREEN='\033[0;32m' | ||
YELLOW='\033[1;33m' | ||
BLUE='\033[0;34m' | ||
NC='\033[0m' | ||
|
||
# Switch to the container's working directory | ||
cd /home/container || exit 1 | ||
|
||
# Wait for the container to fully initialize | ||
sleep 1 | ||
|
||
# Default the TZ environment variable to UTC. | ||
TZ=${TZ:-UTC} | ||
export TZ | ||
|
||
# Set environment variable that holds the Internal Docker IP | ||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') | ||
export INTERNAL_IP | ||
|
||
# system informations | ||
echo -e "${BLUE}-------------------------------------------------${NC}" | ||
echo -e "${RED}NodeJS Image by gOOvER${NC}" | ||
echo -e "${BLUE}-------------------------------------------------${NC}" | ||
echo -e "${YELLOW}Running on Alpine: ${RED} $(cat /etc/alpine-release)${NC}" | ||
echo -e "${YELLOW}Current timezone: ${RED} $(cat /etc/timezone)${NC}" | ||
echo -e "${YELLOW}NodeJS Version: ${RED} $(node -v) ${NC}" | ||
echo -e "${BLUE}-------------------------------------------------${NC}" | ||
|
||
# Replace Startup Variables | ||
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') | ||
echo ":/home/container$ ${MODIFIED_STARTUP}" | ||
|
||
# Run the Server | ||
eval ${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,50 @@ | ||
FROM --platform=$TARGETOS/$TARGETARCH node:20-alpine | ||
|
||
LABEL author="Torsten Widmann" maintainer="info@goover.de" | ||
LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
RUN apk update \ | ||
&& apk upgrade | ||
|
||
RUN add --no-cache \ | ||
autoconf \ | ||
automake \ | ||
build-essential \ | ||
ca-certificates\ | ||
curl \ | ||
dnsutils \ | ||
ffmpeg \ | ||
g++ \ | ||
git \ | ||
gpg \ | ||
gnupg2 \ | ||
iproute2 \ | ||
iputils-ping \ | ||
libtool \ | ||
python3 \ | ||
python3-dev \ | ||
sqlite3 \ | ||
tzdata \ | ||
zip \ | ||
libnss3 \ | ||
libsqlite3-dev | ||
|
||
# updating npm | ||
RUN npm install npm@latest -g | ||
|
||
# add cloudflare repo | ||
RUN mkdir -p --mode=0755 /usr/share/keyrings \ | ||
&& curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null \ | ||
&& echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared bookworm main' | tee /etc/apt/sources.list.d/cloudflared.list \ | ||
&& apt update \ | ||
&& apt install -y cloudflared | ||
|
||
## Setup user and working directory | ||
RUN useradd -m -d /home/container -s /bin/bash container | ||
USER container | ||
ENV USER=container HOME=/home/container | ||
WORKDIR /home/container | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
CMD ["/bin/bash", "/entrypoint.sh"] |
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 @@ | ||
#!/bin/bash | ||
#System variables | ||
clear | ||
RED='\033[0;31m' | ||
GREEN='\033[0;32m' | ||
YELLOW='\033[1;33m' | ||
BLUE='\033[0;34m' | ||
NC='\033[0m' | ||
|
||
# Switch to the container's working directory | ||
cd /home/container || exit 1 | ||
|
||
# Wait for the container to fully initialize | ||
sleep 1 | ||
|
||
# Default the TZ environment variable to UTC. | ||
TZ=${TZ:-UTC} | ||
export TZ | ||
|
||
# Set environment variable that holds the Internal Docker IP | ||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') | ||
export INTERNAL_IP | ||
|
||
# system informations | ||
echo -e "${BLUE}-------------------------------------------------${NC}" | ||
echo -e "${RED}NodeJS Image by gOOvER${NC}" | ||
echo -e "${BLUE}-------------------------------------------------${NC}" | ||
echo -e "${YELLOW}Running on Alpine: ${RED} $(cat /etc/alpine-release)${NC}" | ||
echo -e "${YELLOW}Current timezone: ${RED} $(cat /etc/timezone)${NC}" | ||
echo -e "${YELLOW}NodeJS Version: ${RED} $(node -v) ${NC}" | ||
echo -e "${BLUE}-------------------------------------------------${NC}" | ||
|
||
# Replace Startup Variables | ||
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') | ||
echo ":/home/container$ ${MODIFIED_STARTUP}" | ||
|
||
# Run the Server | ||
eval ${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
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,46 @@ | ||
FROM --platform=$TARGETOS/$TARGETARCH node:18-alpine | ||
|
||
LABEL author="Torsten Widmann" maintainer="info@goover.de" | ||
LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
RUN apk update \ | ||
&& apk upgrade | ||
|
||
RUN apk add --no-cache \ | ||
autoconf \ | ||
automake \ | ||
build-essential \ | ||
ca-certificates\ | ||
curl \ | ||
dnsutils \ | ||
ffmpeg \ | ||
g++ \ | ||
git \ | ||
gpg \ | ||
gnupg2 \ | ||
iproute2 \ | ||
iputils-ping \ | ||
libtool \ | ||
python3 \ | ||
python3-dev \ | ||
sqlite3 \ | ||
tzdata \ | ||
zip \ | ||
libnss3 \ | ||
libsqlite3-dev | ||
|
||
# updating npm | ||
RUN npm install npm@latest -g | ||
|
||
# add cloudflare repo | ||
RUN curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o /usr/bin/cloudflared | ||
|
||
## Setup user and working directory | ||
RUN useradd -m -d /home/container -s /bin/bash container | ||
USER container | ||
ENV USER=container HOME=/home/container | ||
WORKDIR /home/container | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
CMD ["/bin/bash", "/entrypoint.sh"] |
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 @@ | ||
#!/bin/bash | ||
#System variables | ||
clear | ||
RED='\033[0;31m' | ||
GREEN='\033[0;32m' | ||
YELLOW='\033[1;33m' | ||
BLUE='\033[0;34m' | ||
NC='\033[0m' | ||
|
||
# Switch to the container's working directory | ||
cd /home/container || exit 1 | ||
|
||
# Wait for the container to fully initialize | ||
sleep 1 | ||
|
||
# Default the TZ environment variable to UTC. | ||
TZ=${TZ:-UTC} | ||
export TZ | ||
|
||
# Set environment variable that holds the Internal Docker IP | ||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') | ||
export INTERNAL_IP | ||
|
||
# system informations | ||
echo -e "${BLUE}-------------------------------------------------${NC}" | ||
echo -e "${RED}Uptime Kuma Image by gOOvER${NC}" | ||
echo -e "${BLUE}-------------------------------------------------${NC}" | ||
echo -e "${YELLOW}Running on Alpine: ${RED} $(cat /etc/alpine-release)${NC}" | ||
echo -e "${YELLOW}Current timezone: ${RED} $(cat /etc/timezone)${NC}" | ||
echo -e "${YELLOW}NodeJS Version: ${RED} $(node -v) ${NC}" | ||
echo -e "${BLUE}-------------------------------------------------${NC}" | ||
|
||
# Replace Startup Variables | ||
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') | ||
echo ":/home/container$ ${MODIFIED_STARTUP}" | ||
|
||
# Run the Server | ||
eval ${MODIFIED_STARTUP} |
Oops, something went wrong.