|
@@ -58,6 +58,9 @@ RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;"); \
|
|
|
RUN pecl install xdebug-2.7.2; \
|
|
RUN pecl install xdebug-2.7.2; \
|
|
|
docker-php-ext-enable xdebug;
|
|
docker-php-ext-enable xdebug;
|
|
|
|
|
|
|
|
|
|
+######## For create organization ########
|
|
|
|
|
+RUN mkdir -p /env;
|
|
|
|
|
+
|
|
|
######## Php conf ########
|
|
######## Php conf ########
|
|
|
|
|
|
|
|
COPY /.ssh /root/.ssh
|
|
COPY /.ssh /root/.ssh
|
|
@@ -65,6 +68,7 @@ COPY /docker/php/conf/memory.ini /usr/local/etc/php/conf.d
|
|
|
COPY /docker/php/conf/apc.ini /usr/local/etc/php/conf.d
|
|
COPY /docker/php/conf/apc.ini /usr/local/etc/php/conf.d
|
|
|
COPY /docker/php/conf/execution_time.ini /usr/local/etc/php/conf.d
|
|
COPY /docker/php/conf/execution_time.ini /usr/local/etc/php/conf.d
|
|
|
COPY /docker/php/conf/xdebug.ini /usr/local/etc/php/conf.d
|
|
COPY /docker/php/conf/xdebug.ini /usr/local/etc/php/conf.d
|
|
|
|
|
+COPY /docker/adminassos/conf/nocturial.xml /home/config_oa/
|
|
|
|
|
|
|
|
######## FACL and Start ########
|
|
######## FACL and Start ########
|
|
|
|
|
|
|
@@ -73,5 +77,6 @@ WORKDIR /var/www/html
|
|
|
CMD HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1); \
|
|
CMD HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1); \
|
|
|
setfacl -dR -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX app/cache app/logs && setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX app/cache app/logs; \
|
|
setfacl -dR -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX app/cache app/logs && setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX app/cache app/logs; \
|
|
|
chown -R www-data:www-data /var/www/html/web; \
|
|
chown -R www-data:www-data /var/www/html/web; \
|
|
|
|
|
+ chown -R www-data:www-data /env; \
|
|
|
php-fpm
|
|
php-fpm
|
|
|
|
|
|