mariadb and postgres and all of that

This commit is contained in:
2021-02-20 22:40:49 +01:00
parent 276e41fde2
commit 3538f407e8
7 changed files with 35 additions and 14 deletions

View File

@@ -98,4 +98,4 @@ spec:
claimRef:
kind: PersistentVolumeClaim
name: mariadb-data
namespace: default
namspace: live-env

View File

@@ -6,6 +6,8 @@ RUN groupadd -r mysql && useradd -r -g mysql mysql
# https://bugs.debian.org/830696 (apt uses gpgv by default in newer releases, rather than gpg)
RUN set -ex; \
sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list; \
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list; \
apt-get update; \
if ! which gpg; then \
apt-get install -y --no-install-recommends gnupg; \
@@ -93,6 +95,7 @@ RUN set -ex; \
| xargs -rt -0 sed -Ei 's/^(bind-address|log)/#&/'; \
# don't reverse lookup hostnames, they are usually another container
echo '[mysqld]\nskip-host-cache\nskip-name-resolve' > /etc/mysql/conf.d/docker.cnf; \
mkdir -p /run/mysqld; \
apt-get clean -y;
VOLUME /var/lib/mysql