Skip to content

Commit

Permalink
fix: add user www-data to group mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
pifou25 committed May 16, 2024
1 parent 13dcdbc commit 62efd06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ CMD ["/root/init.sh"]
#
FROM base as full_jeedom
ARG JEEDOM_REPO
ARG JEEDOM_VERSION
# localhost didn't work for mysql, should try 127.0.0.1
ENV MYSQL_HOST=localhost

# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN groupadd -r mysql && useradd -r -g mysql mysql

RUN mkdir -p '/var/run/mysqld' && \
chown www-data:mysql '/var/run/mysqld' && \
RUN groupadd -r mysql && useradd -r -g mysql mysql && \
mkdir -p '/var/run/mysqld' && \
usermod -a -G mysql www-data && \
chmod 774 '/var/run/mysqld'

RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -q -y \

Check failure on line 171 in build/Dockerfile

View workflow job for this annotation

GitHub Actions / initStep

DL3008 warning: Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`
Expand Down

0 comments on commit 62efd06

Please sign in to comment.