From df2a62f262607fd5593d44aecd0453e0df8d7af6 Mon Sep 17 00:00:00 2001 From: cytopia Date: Fri, 20 Apr 2018 16:51:25 +0200 Subject: [PATCH] Fix #10 WDSL via SOAP directory permissions --- Dockerfiles/base/Dockerfile-5.4 | 6 +++++- Dockerfiles/base/Dockerfile-5.5 | 6 +++++- Dockerfiles/base/Dockerfile-5.6 | 6 +++++- Dockerfiles/base/Dockerfile-7.0 | 6 +++++- Dockerfiles/base/Dockerfile-7.1 | 6 +++++- Dockerfiles/base/Dockerfile-7.2 | 6 +++++- Dockerfiles/base/data/docker-entrypoint.d/01-uid-gid.sh | 4 ++++ build/ansible/DOCKERFILES/Dockerfile-base.j2 | 6 +++++- 8 files changed, 39 insertions(+), 7 deletions(-) diff --git a/Dockerfiles/base/Dockerfile-5.4 b/Dockerfiles/base/Dockerfile-5.4 index 51e8da37..aabf29fe 100644 --- a/Dockerfiles/base/Dockerfile-5.4 +++ b/Dockerfiles/base/Dockerfile-5.4 @@ -46,7 +46,11 @@ RUN set -x \ ### RUN set -x \ && rm -rf /usr/local/etc/php-fpm.d \ - && mkdir -p /usr/local/etc/php-fpm.d + && mkdir -p /usr/local/etc/php-fpm.d \ + && mkdir -p /var/lib/php/session \ + && mkdir -p /var/lib/php/wsdlcache \ + && chown -R devilbox:devilbox /var/lib/php/session \ + && chown -R devilbox:devilbox /var/lib/php/wsdlcache ### diff --git a/Dockerfiles/base/Dockerfile-5.5 b/Dockerfiles/base/Dockerfile-5.5 index 6b944a6c..a1bc3537 100644 --- a/Dockerfiles/base/Dockerfile-5.5 +++ b/Dockerfiles/base/Dockerfile-5.5 @@ -46,7 +46,11 @@ RUN set -x \ ### RUN set -x \ && rm -rf /usr/local/etc/php-fpm.d \ - && mkdir -p /usr/local/etc/php-fpm.d + && mkdir -p /usr/local/etc/php-fpm.d \ + && mkdir -p /var/lib/php/session \ + && mkdir -p /var/lib/php/wsdlcache \ + && chown -R devilbox:devilbox /var/lib/php/session \ + && chown -R devilbox:devilbox /var/lib/php/wsdlcache ### diff --git a/Dockerfiles/base/Dockerfile-5.6 b/Dockerfiles/base/Dockerfile-5.6 index 075b4792..9f257f31 100644 --- a/Dockerfiles/base/Dockerfile-5.6 +++ b/Dockerfiles/base/Dockerfile-5.6 @@ -46,7 +46,11 @@ RUN set -x \ ### RUN set -x \ && rm -rf /usr/local/etc/php-fpm.d \ - && mkdir -p /usr/local/etc/php-fpm.d + && mkdir -p /usr/local/etc/php-fpm.d \ + && mkdir -p /var/lib/php/session \ + && mkdir -p /var/lib/php/wsdlcache \ + && chown -R devilbox:devilbox /var/lib/php/session \ + && chown -R devilbox:devilbox /var/lib/php/wsdlcache ### diff --git a/Dockerfiles/base/Dockerfile-7.0 b/Dockerfiles/base/Dockerfile-7.0 index 884abd79..6772aef5 100644 --- a/Dockerfiles/base/Dockerfile-7.0 +++ b/Dockerfiles/base/Dockerfile-7.0 @@ -46,7 +46,11 @@ RUN set -x \ ### RUN set -x \ && rm -rf /usr/local/etc/php-fpm.d \ - && mkdir -p /usr/local/etc/php-fpm.d + && mkdir -p /usr/local/etc/php-fpm.d \ + && mkdir -p /var/lib/php/session \ + && mkdir -p /var/lib/php/wsdlcache \ + && chown -R devilbox:devilbox /var/lib/php/session \ + && chown -R devilbox:devilbox /var/lib/php/wsdlcache ### diff --git a/Dockerfiles/base/Dockerfile-7.1 b/Dockerfiles/base/Dockerfile-7.1 index 869e5912..b7cb0407 100644 --- a/Dockerfiles/base/Dockerfile-7.1 +++ b/Dockerfiles/base/Dockerfile-7.1 @@ -46,7 +46,11 @@ RUN set -x \ ### RUN set -x \ && rm -rf /usr/local/etc/php-fpm.d \ - && mkdir -p /usr/local/etc/php-fpm.d + && mkdir -p /usr/local/etc/php-fpm.d \ + && mkdir -p /var/lib/php/session \ + && mkdir -p /var/lib/php/wsdlcache \ + && chown -R devilbox:devilbox /var/lib/php/session \ + && chown -R devilbox:devilbox /var/lib/php/wsdlcache ### diff --git a/Dockerfiles/base/Dockerfile-7.2 b/Dockerfiles/base/Dockerfile-7.2 index cb554fd8..fcf4ca89 100644 --- a/Dockerfiles/base/Dockerfile-7.2 +++ b/Dockerfiles/base/Dockerfile-7.2 @@ -46,7 +46,11 @@ RUN set -x \ ### RUN set -x \ && rm -rf /usr/local/etc/php-fpm.d \ - && mkdir -p /usr/local/etc/php-fpm.d + && mkdir -p /usr/local/etc/php-fpm.d \ + && mkdir -p /var/lib/php/session \ + && mkdir -p /var/lib/php/wsdlcache \ + && chown -R devilbox:devilbox /var/lib/php/session \ + && chown -R devilbox:devilbox /var/lib/php/wsdlcache ### diff --git a/Dockerfiles/base/data/docker-entrypoint.d/01-uid-gid.sh b/Dockerfiles/base/data/docker-entrypoint.d/01-uid-gid.sh index 75a8f471..39c7689c 100755 --- a/Dockerfiles/base/data/docker-entrypoint.d/01-uid-gid.sh +++ b/Dockerfiles/base/data/docker-entrypoint.d/01-uid-gid.sh @@ -62,6 +62,8 @@ set_uid() { log "info" "Changing user '${username}' uid to: ${uid}" "${debug}" run "usermod -u ${uid} ${username}" "${debug}" run "chown -R ${username} ${homedir}" "${debug}" + run "chown -R ${username} /var/lib/php/session" "${debug}" + run "chown -R ${username} /var/lib/php/wsdlcache" "${debug}" fi fi } @@ -102,6 +104,8 @@ set_gid() { log "info" "Changing group '${groupname}' gid to: ${gid}" "${debug}" run "groupmod -g ${gid} ${groupname}" "${debug}" run "chown -R :${groupname} ${homedir}" "${debug}" + run "chown -R :${groupname} /var/lib/php/session" "${debug}" + run "chown -R :${groupname} /var/lib/php/wsdlcache" "${debug}" fi fi } diff --git a/build/ansible/DOCKERFILES/Dockerfile-base.j2 b/build/ansible/DOCKERFILES/Dockerfile-base.j2 index 20bd01f6..431894d4 100644 --- a/build/ansible/DOCKERFILES/Dockerfile-base.j2 +++ b/build/ansible/DOCKERFILES/Dockerfile-base.j2 @@ -46,7 +46,11 @@ RUN set -x \ ### RUN set -x \ && rm -rf /usr/local/etc/php-fpm.d \ - && mkdir -p /usr/local/etc/php-fpm.d + && mkdir -p /usr/local/etc/php-fpm.d \ + && mkdir -p /var/lib/php/session \ + && mkdir -p /var/lib/php/wsdlcache \ + && chown -R devilbox:devilbox /var/lib/php/session \ + && chown -R devilbox:devilbox /var/lib/php/wsdlcache ###