Skip to content

Commit

Permalink
Ref #187 - Make custom ini files writable in rootless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Apr 2, 2024
1 parent 6a68779 commit 2335c31
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
7 changes: 6 additions & 1 deletion Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ RUN set -ex; \
echo 'upload_max_filesize=${UPLOAD_LIMIT}'; \
echo 'date.timezone=${TZ}'; \
echo 'session.save_path=${SESSION_SAVE_PATH}'; \
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini; \
\
{ \
echo ''; \
} > $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini; \
chown www-data:www-data $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini;

# Calculate download URL
ENV VERSION %%VERSION%%
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ RUN set -ex; \
echo 'upload_max_filesize=${UPLOAD_LIMIT}'; \
echo 'date.timezone=${TZ}'; \
echo 'session.save_path=${SESSION_SAVE_PATH}'; \
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini; \
\
{ \
echo ''; \
} > $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini; \
chown www-data:www-data $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini;

# Calculate download URL
ENV VERSION %%VERSION%%
Expand Down
7 changes: 6 additions & 1 deletion apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ RUN set -ex; \
echo 'upload_max_filesize=${UPLOAD_LIMIT}'; \
echo 'date.timezone=${TZ}'; \
echo 'session.save_path=${SESSION_SAVE_PATH}'; \
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini; \
\
{ \
echo ''; \
} > $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini; \
chown www-data:www-data $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini;

# Calculate download URL
ENV VERSION 5.2.1
Expand Down
7 changes: 6 additions & 1 deletion fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ RUN set -ex; \
echo 'upload_max_filesize=${UPLOAD_LIMIT}'; \
echo 'date.timezone=${TZ}'; \
echo 'session.save_path=${SESSION_SAVE_PATH}'; \
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini; \
\
{ \
echo ''; \
} > $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini; \
chown www-data:www-data $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini;

# Calculate download URL
ENV VERSION 5.2.1
Expand Down
7 changes: 6 additions & 1 deletion fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ RUN set -ex; \
echo 'upload_max_filesize=${UPLOAD_LIMIT}'; \
echo 'date.timezone=${TZ}'; \
echo 'session.save_path=${SESSION_SAVE_PATH}'; \
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini; \
\
{ \
echo ''; \
} > $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini; \
chown www-data:www-data $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini;

# Calculate download URL
ENV VERSION 5.2.1
Expand Down

0 comments on commit 2335c31

Please sign in to comment.