Skip to content

Commit

Permalink
Merge pull request #3081 from uselagoon/api-db-fix-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood authored Mar 26, 2022
2 parents 3d1c7a2 + 678fe81 commit c585cec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions services/api-db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ ENV LAGOON_VERSION=$LAGOON_VERSION

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

COPY ./docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/
RUN chown -R mysql /docker-entrypoint-initdb.d/ \
&& /bin/fix-permissions /docker-entrypoint-initdb.d/

USER mysql

ENV MARIADB_DATABASE=infrastructure \
Expand All @@ -15,6 +20,4 @@ ENV MARIADB_DATABASE=infrastructure \
MARIADB_CHARSET=utf8 \
MARIADB_COLLATION=utf8_general_ci

COPY ./docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/
RUN chown -R mysql /docker-entrypoint-initdb.d/; /bin/fix-permissions /docker-entrypoint-initdb.d/
COPY ./rerun_initdb.sh /rerun_initdb.sh

0 comments on commit c585cec

Please sign in to comment.