Browse Source

add typo3 cli shortcut

Olivier Massot 4 năm trước cách đây
mục cha
commit
fbbd79aab7
2 tập tin đã thay đổi với 9 bổ sung3 xóa
  1. 6 3
      docker/typo3/Dockerfile
  2. 3 0
      docker/typo3/conf/cli

+ 6 - 3
docker/typo3/Dockerfile

@@ -5,7 +5,7 @@ ARG COMPOSER_HASH
 # Configure php
 COPY /docker/typo3/conf/memory.ini /usr/local/etc/php/conf.d/
 COPY /docker/typo3/conf/apc.ini /usr/local/etc/php/conf.d/
-COPY /docker/typo3/conf/xdebug.ini /usr/local/etc/php/conf.d/
+#COPY /docker/typo3/conf/xdebug.ini /usr/local/etc/php/conf.d/
 
 # Configure apache
 COPY /docker/typo3/conf/typo3.conf /etc/apache2/sites-available/
@@ -27,8 +27,8 @@ RUN \
     docker-php-ext-enable opcache; \
 
     # Install and enable xdebug
-    pecl install xdebug-2.9.8; \
-    docker-php-ext-enable xdebug; \
+#    pecl install xdebug-2.9.8; \
+#    docker-php-ext-enable xdebug; \
 
     # Set locale
     echo 'fr_FR.UTF-8 UTF-8' > /etc/locale.gen; \
@@ -45,6 +45,9 @@ ENV LANG fr_FR.UTF-8
 ENV LANGUAGE fr_FR:fr
 ENV LC_ALL fr_FR.UTF-8
 
+# CLI shortcut
+COPY /docker/typo3/conf/cli /var/www/typo3/
+
 # Declare the entrypoint.sh file
 COPY ./docker/typo3/entrypoint.sh /entrypoint.sh
 RUN chmod +x /entrypoint.sh

+ 3 - 0
docker/typo3/conf/cli

@@ -0,0 +1,3 @@
+#!/bin/sh
+export TYPO3_CONTEXT='Development'
+php /var/www/typo3/public/typo3/sysext/core/bin/typo3 $*