mirror of
https://github.com/phpmyadmin/docker.git
synced 2026-08-24 10:13:22 -05:00
Enable remoteip for Apache
Co-Authored-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
co-authored by
William Desportes
parent
272944cc5a
commit
215f36692f
@@ -37,6 +37,10 @@ RUN set -ex; \
|
||||
| sort -u \
|
||||
| xargs -rt apt-mark manual; \
|
||||
\
|
||||
# start: Apache specific build
|
||||
a2enmod remoteip; \
|
||||
# end: Apache specific build
|
||||
\
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
ldd "$extdir"/*.so | grep -qzv "=> not found" || (echo "Sanity check failed: missing libraries:"; ldd "$extdir"/*.so | grep " => not found"; exit 1); \
|
||||
|
||||
@@ -38,6 +38,10 @@ RUN set -ex; \
|
||||
| sort -u \
|
||||
| xargs -rt apt-mark manual; \
|
||||
\
|
||||
# start: Apache specific build
|
||||
a2enmod remoteip; \
|
||||
# end: Apache specific build
|
||||
\
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
ldd "$extdir"/*.so | grep -qzv "=> not found" || (echo "Sanity check failed: missing libraries:"; ldd "$extdir"/*.so | grep " => not found"; exit 1); \
|
||||
|
||||
@@ -38,6 +38,7 @@ RUN set -ex; \
|
||||
| sort -u \
|
||||
| xargs -rt apt-mark manual; \
|
||||
\
|
||||
\
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
ldd "$extdir"/*.so | grep -qzv "=> not found" || (echo "Sanity check failed: missing libraries:"; ldd "$extdir"/*.so | grep " => not found"; exit 1); \
|
||||
|
||||
@@ -64,6 +64,7 @@ function create_variant() {
|
||||
cp docker-entrypoint.sh "$variant/docker-entrypoint.sh"
|
||||
if [ "$variant" != "apache" ]; then
|
||||
sed -i "/^# start: Apache specific settings$/,/^# end: Apache specific settings$/d" "$variant/docker-entrypoint.sh"
|
||||
sed -i "/^\s*# start: Apache specific build$/,/^\s*# end: Apache specific build$/d" "$variant/Dockerfile"
|
||||
fi
|
||||
|
||||
# Copy config.inc.php
|
||||
|
||||
Reference in New Issue
Block a user