Formatting fixup

This commit is contained in:
Greyscale 2024-08-07 13:30:30 +02:00
parent 702fab1301
commit f1cae7e4a1
8 changed files with 111 additions and 106 deletions

View file

@ -53,7 +53,6 @@ jobs:
docker_hub_token: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: "Setup: Login to Private Registry"
if: secrets.PRIVATE_REGISTRY
uses: docker/login-action@v3
with:
registry: ${{ secrets.PRIVATE_REGISTRY }}

View file

@ -1,3 +1,4 @@
# checkov:skip=CKV_DOCKER_3 If its good enough for upstream mariadb, its good enough for me.
ARG MARIADB_VERSION
FROM mariadb:$MARIADB_VERSION AS mariadb

View file

@ -1,3 +1,4 @@
# checkov:skip=CKV_DOCKER_3 If its good enough for upstream postgres, its good enough for me.
ARG PGSQL_VERSION
FROM postgres:$PGSQL_VERSION-alpine AS postgres
@ -13,8 +14,13 @@ RUN apk add --no-cache runit && \
# Current packages don't exist in other repositories
libavif \
&& \
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ --allow-untrusted gnu-libiconv \
apk \
--no-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
#--allow-untrusted \
add \
# Packages \
gnu-libiconv \
nano \
curl \
tini \

View file

@ -1,3 +1,4 @@
# checkov:skip=CKV_DOCKER_3 user cannot be determined at this stage.
FROM ubuntu:jammy AS mariadb-traptest
LABEL maintainer="Matthew Baggett <matthew@baggett.me>" \
@ -8,4 +9,5 @@ COPY traptest.sh /usr/local/bin/traptest
RUN chmod +x /usr/local/bin/traptest
ENTRYPOINT ["/usr/local/bin/traptest"]
CMD []
HEALTHCHECK NONE # Healthchecks are not relevant for this image
STOPSIGNAL SIGINT

View file

@ -10,9 +10,10 @@ Every 600 seconds after that, it dumps the database and persists it to s3 if the
This is extremely not meant for production workloads or anything you want to keep. QA systems, silly side projects, anything you don't want to pay Bezos for RDS for.
On that note, please consider using Minio or any other S3 provider than AWS.
## Configuration:
## Configuration
### MariaDB
```yaml
MARIADB_RANDOM_ROOT_PASSWORD: "yes"
MARIADB_USER: example
@ -27,6 +28,7 @@ On that note, please consider using Minio or any other S3 provider than AWS.
```
### Postgres
```yaml
POSTGRES_USER: example
POSTGRES_PASSWORD: changeme

View file

@ -1,5 +0,0 @@
All:
PostgreSQL:
MariaDB: