-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rebuild images using bitnami upstream
- Loading branch information
1 parent
bc00484
commit 8272274
Showing
4 changed files
with
54 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |