feat: add MariaDB Images (#38)
This commit is contained in:
44
.github/workflows/mariadb.yml
vendored
Normal file
44
.github/workflows/mariadb.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
name: build mariadb
|
||||||
|
on:
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * 1"
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- mariadb/**
|
||||||
|
jobs:
|
||||||
|
push:
|
||||||
|
name: "yolks:mariadb_${{ matrix.tag }}"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
tag:
|
||||||
|
- '10.3'
|
||||||
|
- '10.4'
|
||||||
|
- '10.5'
|
||||||
|
- '10.6'
|
||||||
|
- '10.7'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: docker/setup-qemu-action@v1
|
||||||
|
- 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: ./mariadb
|
||||||
|
file: ./mariadb/${{ matrix.tag }}/Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
ghcr.io/parkervcp/yolks:mariadb_${{ matrix.tag }}
|
13
README.md
13
README.md
@@ -106,8 +106,19 @@ is tagged correctly.
|
|||||||
* [`java17`](/java/17)
|
* [`java17`](/java/17)
|
||||||
* `ghcr.io/parkervcp/yolks:java_17`
|
* `ghcr.io/parkervcp/yolks:java_17`
|
||||||
|
|
||||||
### [Mono](/mono)
|
### [MariaDB](/mariadb)
|
||||||
|
* [`MariaDB 10.3`](/mariadb/10.3)
|
||||||
|
* `ghcr.io/parkervcp/yolks:mariadb_10.3`
|
||||||
|
* [`MariaDB 10.4`](/mariadb/10.4)
|
||||||
|
* `ghcr.io/parkervcp/yolks:mariadb_10.4`
|
||||||
|
* [`MariaDB 10.5`](/mariadb/10.5)
|
||||||
|
* `ghcr.io/parkervcp/yolks:mariadb_10.5`
|
||||||
|
* [`MariaDB 10.6`](/mariadb/10.6)
|
||||||
|
* `ghcr.io/parkervcp/yolks:mariadb_10.6`
|
||||||
|
* [`MariaDB 10.7`](/mariadb/10.7)
|
||||||
|
* `ghcr.io/parkervcp/yolks:mariadb_10.7`
|
||||||
|
|
||||||
|
### [Mono](/mono)
|
||||||
* [`mono_latest`](/mono/latest)
|
* [`mono_latest`](/mono/latest)
|
||||||
* `ghcr.io/parkervcp/yolks:mono_latest`
|
* `ghcr.io/parkervcp/yolks:mono_latest`
|
||||||
|
|
||||||
|
19
mariadb/10.3/Dockerfile
Normal file
19
mariadb/10.3/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# -----------------------------------------------------
|
||||||
|
# MariaDB Image for Pterodactyl
|
||||||
|
# -----------------------------------------------------
|
||||||
|
FROM mariadb:10.3
|
||||||
|
|
||||||
|
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
RUN apt update -y \
|
||||||
|
&& apt install -y netcat \
|
||||||
|
&& useradd -d /home/container -m container -s /bin/bash
|
||||||
|
|
||||||
|
USER container
|
||||||
|
ENV USER=container HOME=/home/container
|
||||||
|
WORKDIR /home/container
|
||||||
|
|
||||||
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
CMD ["/bin/bash", "/entrypoint.sh"]
|
19
mariadb/10.4/Dockerfile
Normal file
19
mariadb/10.4/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# -----------------------------------------------------
|
||||||
|
# MariaDB Image for Pterodactyl
|
||||||
|
# -----------------------------------------------------
|
||||||
|
FROM mariadb:10.4
|
||||||
|
|
||||||
|
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
RUN apt update -y \
|
||||||
|
&& apt install -y netcat \
|
||||||
|
&& useradd -d /home/container -m container -s /bin/bash
|
||||||
|
|
||||||
|
USER container
|
||||||
|
ENV USER=container HOME=/home/container
|
||||||
|
WORKDIR /home/container
|
||||||
|
|
||||||
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
CMD ["/bin/bash", "/entrypoint.sh"]
|
19
mariadb/10.5/Dockerfile
Normal file
19
mariadb/10.5/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# -----------------------------------------------------
|
||||||
|
# MariaDB Image for Pterodactyl
|
||||||
|
# -----------------------------------------------------
|
||||||
|
FROM mariadb:10.5
|
||||||
|
|
||||||
|
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
RUN apt update -y \
|
||||||
|
&& apt install -y netcat \
|
||||||
|
&& useradd -d /home/container -m container -s /bin/bash
|
||||||
|
|
||||||
|
USER container
|
||||||
|
ENV USER=container HOME=/home/container
|
||||||
|
WORKDIR /home/container
|
||||||
|
|
||||||
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
CMD ["/bin/bash", "/entrypoint.sh"]
|
19
mariadb/10.6/Dockerfile
Normal file
19
mariadb/10.6/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# -----------------------------------------------------
|
||||||
|
# MariaDB Image for Pterodactyl
|
||||||
|
# -----------------------------------------------------
|
||||||
|
FROM mariadb:10.6
|
||||||
|
|
||||||
|
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
RUN apt update -y \
|
||||||
|
&& apt install -y netcat \
|
||||||
|
&& useradd -d /home/container -m container -s /bin/bash
|
||||||
|
|
||||||
|
USER container
|
||||||
|
ENV USER=container HOME=/home/container
|
||||||
|
WORKDIR /home/container
|
||||||
|
|
||||||
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
CMD ["/bin/bash", "/entrypoint.sh"]
|
19
mariadb/10.7/Dockerfile
Normal file
19
mariadb/10.7/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# -----------------------------------------------------
|
||||||
|
# MariaDB Image for Pterodactyl
|
||||||
|
# -----------------------------------------------------
|
||||||
|
FROM mariadb:10.7
|
||||||
|
|
||||||
|
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
RUN apt update -y \
|
||||||
|
&& apt install -y netcat \
|
||||||
|
&& useradd -d /home/container -m container -s /bin/bash
|
||||||
|
|
||||||
|
USER container
|
||||||
|
ENV USER=container HOME=/home/container
|
||||||
|
WORKDIR /home/container
|
||||||
|
|
||||||
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
CMD ["/bin/bash", "/entrypoint.sh"]
|
12
mariadb/entrypoint.sh
Normal file
12
mariadb/entrypoint.sh
Normal file
@@ -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=$(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||||
|
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||||
|
|
||||||
|
# Run the Server
|
||||||
|
eval ${MODIFIED_STARTUP}
|
Reference in New Issue
Block a user