-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile-debian.esh
42 lines (36 loc) · 1.62 KB
/
Dockerfile-debian.esh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM ghcr.io/bfren/debian-s6:<%= ${DEBIAN_NAME} %>-<%= ${BASE_VERSION} %>
ARG BF_IMAGE
ARG BF_PUBLISHING
ARG BF_VERSION
EXPOSE 3306
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y apt-transport-https ca-certificates
ADD https://mariadb.org/mariadb_release_signing_key.pgp <%= ${MARIADB_KEYRING} %>
RUN chmod 0444 <%= ${MARIADB_KEYRING} %>
ENV \
# set to "1" to give the application user permission to access all databases and manage users
# should NOT be used in production, but is extremely useful for a dev server
BF_DB_USER_SUPER=0 \
# set to "1" to compress backup sql files
BF_DB_BACKUP_COMPRESS_FILES=0 \
# the period of time to keep backups before auto-deleting them (Nu duration)
BF_DB_BACKUP_KEEP_FOR=28day \
# set to "1" to enable SSL support
BF_DB_SSL_ENABLE=0 \
# the period of time before self-generated SSL certificates will expire (Nu duration)
BF_DB_SSL_EXPIRY=36500day \
# the size in bits of the CA SSL private key
BF_DB_SSL_CA_KEY_BITS=4096 \
# the size in bits of the server SSL private key
BF_DB_SSL_SERVER_KEY_BITS=4096 \
# the size in bits of the client SSL private key
BF_DB_SSL_CLIENT_KEY_BITS=4096 \
# see https://mariadb.com/kb/en/server-system-variables/#character_set_server
BF_DB_CHARACTER_SET=utf8 \
# see https://mariadb.com/kb/en/server-system-variables/#collation_server
BF_DB_COLLATION=utf8_general_ci \
# see https://mariadb.com/kb/en/server-system-variables/#log_warnings
BF_DB_LOG_WARNINGS=3
COPY ./overlay /
COPY ./<%= ${MARIADB_MINOR} %>/overlay /
RUN bf-install
VOLUME [ "/backup", "/data", "/ssl" ]