Skip to content

Commit

Permalink
chore: rebuild images using bitnami upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood committed Oct 1, 2024
1 parent bc00484 commit 8272274
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 33 deletions.
27 changes: 7 additions & 20 deletions services/api-db/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
ARG UPSTREAM_REPO
ARG UPSTREAM_TAG
FROM ${UPSTREAM_REPO:-uselagoon}/mariadb-10.6:${UPSTREAM_TAG:-latest}
FROM bitnami/mysql:8.0.34

ARG LAGOON_VERSION
ENV LAGOON_VERSION=$LAGOON_VERSION

USER root
RUN apk add --no-cache openssh-keygen

COPY ./legacy-migration-scripts/* /legacy-migration-scripts/
RUN chown -R mysql /legacy-migration-scripts/ \
&& /bin/fix-permissions /legacy-migration-scripts/

USER mysql

ENV MARIADB_DATABASE=infrastructure \
MARIADB_USER=api \
MARIADB_PASSWORD=api \
MARIADB_CHARSET=utf8 \
MARIADB_COLLATION=utf8_general_ci

COPY ./rerun_initdb.sh /rerun_initdb.sh
COPY ./legacy_rerun_initdb.sh /legacy_rerun_initdb.sh
ENV ALLOW_EMPTY_PASSWORD=yes \
MYSQL_USER=api \
MYSQL_PASSWORD=api \
MYSQL_DATABASE=infrastructure \
MYSQL_AUTHENTICATION_PLUGIN=mysql_native_password \
MYSQL_SQL_MODE=NO_ENGINE_SUBSTITUTION
24 changes: 24 additions & 0 deletions services/api-db/legacy.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
ARG UPSTREAM_REPO
ARG UPSTREAM_TAG
FROM ${UPSTREAM_REPO:-uselagoon}/mariadb-10.6:${UPSTREAM_TAG:-latest}

ARG LAGOON_VERSION
ENV LAGOON_VERSION=$LAGOON_VERSION

USER root
RUN apk add --no-cache openssh-keygen

COPY ./legacy-migration-scripts/* /legacy-migration-scripts/
RUN chown -R mysql /legacy-migration-scripts/ \
&& /bin/fix-permissions /legacy-migration-scripts/

USER mysql

ENV MARIADB_DATABASE=infrastructure \
MARIADB_USER=api \
MARIADB_PASSWORD=api \
MARIADB_CHARSET=utf8 \
MARIADB_COLLATION=utf8_general_ci

COPY ./rerun_initdb.sh /rerun_initdb.sh
COPY ./legacy_rerun_initdb.sh /legacy_rerun_initdb.sh
19 changes: 6 additions & 13 deletions services/keycloak-db/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
ARG UPSTREAM_REPO
ARG UPSTREAM_TAG
FROM ${UPSTREAM_REPO:-uselagoon}/mariadb-10.6:${UPSTREAM_TAG:-latest}
FROM bitnami/mysql:8.0.34

ARG LAGOON_VERSION
ENV LAGOON_VERSION=$LAGOON_VERSION

ENV MARIADB_DATABASE=keycloak \
MARIADB_USER=keycloak \
MARIADB_PASSWORD=keycloak \
MARIADB_CHARSET=utf8 \
MARIADB_COLLATION=utf8_general_ci

COPY my_query-cache.cnf /etc/mysql/conf.d/my_query-cache.cnf
USER root
RUN fix-permissions /etc/mysql/conf.d/
USER mysql
ENV ALLOW_EMPTY_PASSWORD=yes \
MYSQL_USER=keycloak \
MYSQL_PASSWORD=keycloak \
MYSQL_DATABASE=keycloak \
MYSQL_AUTHENTICATION_PLUGIN=mysql_native_password
17 changes: 17 additions & 0 deletions services/keycloak-db/legacy.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG UPSTREAM_REPO
ARG UPSTREAM_TAG
FROM ${UPSTREAM_REPO:-uselagoon}/mariadb-10.6:${UPSTREAM_TAG:-latest}

ARG LAGOON_VERSION
ENV LAGOON_VERSION=$LAGOON_VERSION

ENV MARIADB_DATABASE=keycloak \
MARIADB_USER=keycloak \
MARIADB_PASSWORD=keycloak \
MARIADB_CHARSET=utf8 \
MARIADB_COLLATION=utf8_general_ci

COPY my_query-cache.cnf /etc/mysql/conf.d/my_query-cache.cnf
USER root
RUN fix-permissions /etc/mysql/conf.d/
USER mysql

0 comments on commit 8272274

Please sign in to comment.