Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: generate random password for db root #68

Merged
merged 3 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ARG PUREFTPD_VERSION=1.0.50
ARG ALPINE_VERSION=3.17
ARG XX_VERSION=1.2.1

FROM --platform=${BUILDPLATFORM} tonistiigi/xx:${XX_VERSION} AS xx

FROM --platform=${BUILDPLATFORM} crazymax/alpine-s6:${ALPINE_VERSION}-2.2.0.3 AS src
COPY --from=xx / /
RUN apk --update --no-cache add git patch
Expand All @@ -14,7 +16,6 @@ RUN git fetch origin "${PUREFTPD_VERSION}" && git checkout -q FETCH_HEAD
COPY patchs /src
RUN patch -p1 < ../minimal.patch

FROM --platform=${BUILDPLATFORM} tonistiigi/xx:${XX_VERSION} AS xx
FROM --platform=${BUILDPLATFORM} crazymax/alpine-s6:${ALPINE_VERSION}-2.2.0.3 AS builder
COPY --from=xx / /
RUN apk --update --no-cache add autoconf automake binutils clang14 file make pkgconf tar xz
Expand Down
4 changes: 2 additions & 2 deletions examples/mariadb/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
db:
image: mariadb:10.4
image: mariadb:10
container_name: pureftpd_db
networks:
- pureftpd
Expand All @@ -9,7 +9,7 @@ services:
- "./users.sql:/docker-entrypoint-initdb.d/users.sql"
environment:
- "TZ=Europe/Paris"
- "MYSQL_ALLOW_EMPTY_PASSWORD=yes"
- "MARIADB_RANDOM_ROOT_PASSWORD=yes"
- "MYSQL_DATABASE=pureftpd"
- "MYSQL_USER=pureftpd"
- "MYSQL_PASSWORD=asupersecretpassword"
Expand Down
Loading