updated php to 7.4, updated grav to 1.7.14
This commit is contained in:
@@ -2,3 +2,6 @@ COMPOSE_PROJECT_NAME=figureslibres.cc
|
|||||||
|
|
||||||
PROJECT_ROOT=./public_html
|
PROJECT_ROOT=./public_html
|
||||||
LOG_ROOT=./log
|
LOG_ROOT=./log
|
||||||
|
|
||||||
|
|
||||||
|
XDEBUG_INI=./ressources/xdebug.ini
|
||||||
|
|||||||
+10
-8
@@ -1,4 +1,4 @@
|
|||||||
FROM php:7.3-fpm
|
FROM php:7.4-fpm
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
libfreetype6-dev \
|
libfreetype6-dev \
|
||||||
@@ -6,19 +6,21 @@ RUN apt-get update && apt-get install -y \
|
|||||||
libmcrypt-dev \
|
libmcrypt-dev \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
zip \
|
zip \
|
||||||
libzip-dev && \
|
libzip-dev
|
||||||
# docker-php-ext-install -j$(nproc) iconv && \
|
|
||||||
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
|
RUN docker-php-ext-configure gd && \
|
||||||
apt-get install -y imagemagick libmagickwand-dev && \
|
apt-get install -y imagemagick libmagickwand-dev && \
|
||||||
pecl install imagick && docker-php-ext-enable imagick && \
|
pecl install imagick && docker-php-ext-enable imagick && \
|
||||||
docker-php-ext-install -j$(nproc) gd && \
|
docker-php-ext-install -j$(nproc) gd && \
|
||||||
docker-php-ext-install zip && \
|
docker-php-ext-install zip && \
|
||||||
docker-php-ext-install opcache && \
|
docker-php-ext-install opcache && \
|
||||||
docker-php-ext-install bcmath && \
|
docker-php-ext-install bcmath && \
|
||||||
apt-get install -y git vim && \
|
apt-get install -y git vim
|
||||||
pecl install redis-4.3.0 && \
|
|
||||||
pecl install xdebug-2.7.0 && \
|
RUN pecl install redis-5.3.4 && docker-php-ext-enable redis
|
||||||
docker-php-ext-enable redis xdebug
|
|
||||||
|
RUN pecl install xdebug-3.0.4 && \
|
||||||
|
docker-php-ext-enable xdebug
|
||||||
|
|
||||||
RUN export COMPOSER_HOME=/usr/local/composer && \
|
RUN export COMPOSER_HOME=/usr/local/composer && \
|
||||||
curl -sS https://getcomposer.org/installer \
|
curl -sS https://getcomposer.org/installer \
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
PS1='\e[36m\e[1mPHP-7.3\e[0m:\e[90m\w\e[0m\n$ '
|
PS1='\e[36m\e[1mPHP-7.4\e[0m:\e[90m\w\e[0m\n$ '
|
||||||
bind '"\e[A": history-search-backward'
|
bind '"\e[A": history-search-backward'
|
||||||
bind '"\e[B": history-search-forward'
|
bind '"\e[B": history-search-forward'
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ sudo systemctl start docker
|
|||||||
### build
|
### build
|
||||||
only before the first run (may take some time)
|
only before the first run (may take some time)
|
||||||
```
|
```
|
||||||
sudo docker-compose build
|
sudo docker-compose build --no-cache
|
||||||
```
|
```
|
||||||
### run
|
### run
|
||||||
then each time you want to launch the app
|
then each time you want to launch the app
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- php-root-data:/root
|
- php-root-data:/root
|
||||||
- "${PROJECT_ROOT}:/var/www/html"
|
- "${PROJECT_ROOT}:/var/www/html"
|
||||||
|
- "${XDEBUG_INI}:/usr/local/etc/php/conf.d/xdebug.ini"
|
||||||
networks:
|
networks:
|
||||||
- server
|
- server
|
||||||
|
|
||||||
|
|||||||
+1
-1
Submodule public_html updated: 3d5bc71a7c...bd4137e00d
@@ -0,0 +1,18 @@
|
|||||||
|
[xdebug]
|
||||||
|
xdebug.remote_enable=1
|
||||||
|
;Should use host.docker.internal but not working on linux
|
||||||
|
xdebug.remote_host=172.20.0.1
|
||||||
|
;Not working on docker context
|
||||||
|
xdebug.remote_connect_back=0
|
||||||
|
;9000 is already bound by php-fpm
|
||||||
|
xdebug.remote_port=9001
|
||||||
|
xdebug.remote_handler=dbgp
|
||||||
|
xdebug.remote_mode=req
|
||||||
|
xdebug.remote_autostart=true
|
||||||
|
; ?=XDEBUG_SESSION_START=1
|
||||||
|
;Log file is mounted on volume so you can follow it
|
||||||
|
xdebug.remote_log=/var/log/xdebug-error.log
|
||||||
|
xdebug.profiler_enable_trigger=1
|
||||||
|
xdebug.profiler_enable=0
|
||||||
|
xdebug.profiler_output_dir=/var/log/
|
||||||
|
; Example: http://localhost:8080/test?XDEBUG_PROFILE=1
|
||||||
Reference in New Issue
Block a user