Skip to content

Commit 43ba898

Browse files
authored
Merge branch 'master' into php-fpm-install-imap
2 parents 61d3874 + 3b0f271 commit 43ba898

23 files changed

Lines changed: 3284 additions & 35 deletions

.travis.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,21 @@ env:
1010
- PHP_VERSION=56 BUILD_SERVICE=workspace
1111
- PHP_VERSION=70 BUILD_SERVICE=workspace
1212
- PHP_VERSION=71 BUILD_SERVICE=workspace
13+
- PHP_VERSION=72 BUILD_SERVICE=workspace
1314

1415
- PHP_VERSION=56 BUILD_SERVICE=php-fpm
1516
- PHP_VERSION=70 BUILD_SERVICE=php-fpm
1617
- PHP_VERSION=71 BUILD_SERVICE=php-fpm
18+
- PHP_VERSION=72 BUILD_SERVICE=php-fpm
1719

1820
- PHP_VERSION=hhvm BUILD_SERVICE=hhvm
1921

2022
# - PHP_VERSION=56 BUILD_SERVICE=php-worker
2123
- PHP_VERSION=70 BUILD_SERVICE=php-worker
2224
- PHP_VERSION=71 BUILD_SERVICE=php-worker
25+
- PHP_VERSION=72 BUILD_SERVICE=php-worker
2326

24-
- PHP_VERSION=56 BUILD_SERVICE=mssql
25-
- PHP_VERSION=70 BUILD_SERVICE=mssql
26-
- PHP_VERSION=71 BUILD_SERVICE=mssql
27-
28-
- PHP_VERSION=56 BUILD_SERVICE=rethinkdb
29-
- PHP_VERSION=70 BUILD_SERVICE=rethinkdb
30-
- PHP_VERSION=71 BUILD_SERVICE=rethinkdb
31-
32-
- PHP_VERSION=56 BUILD_SERVICE=aerospike
33-
- PHP_VERSION=70 BUILD_SERVICE=aerospike
34-
- PHP_VERSION=71 BUILD_SERVICE=aerospike
35-
27+
- PHP_VERSION=NA BUILD_SERVICE="mssql rethinkdb aerospike"
3628
- PHP_VERSION=NA BUILD_SERVICE="applications blackfire minio percona nginx caddy apache2 mysql mariadb postgres postgres-postgis neo4j mongo redis"
3729
- PHP_VERSION=NA BUILD_SERVICE="adminer phpmyadmin pgadmin"
3830
- PHP_VERSION=NA BUILD_SERVICE="memcached beanstalkd beanstalkd-console rabbitmq elasticsearch certbot mailhog maildev selenium jenkins proxy proxy2 haproxy"

DOCUMENTATION/content/documentation/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,3 +1729,13 @@ This error sometimes happens because your Laravel application isn't running on t
17291729
## I get stuck when building nginx on `fetch http://mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz`
17301730

17311731
As stated on [#749](https://github.com/laradock/laradock/issues/749#issuecomment-293296687), removing the line `RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories` from `nginx/Dockerfile` solves the problem.
1732+
1733+
## Custom composer repo packagist url and npm registry url
1734+
1735+
In China, the origin source of composer and npm is very slow. You can add `WORKSPACE_NPM_REGISTRY` and `WORKSPACE_COMPOSER_REPO_PACKAGIST` config in `.env` to use your custom source.
1736+
1737+
Example:
1738+
```bash
1739+
WORKSPACE_NPM_REGISTRY=https://registry.npm.taobao.org
1740+
WORKSPACE_COMPOSER_REPO_PACKAGIST=https://packagist.phpcomposer.com
1741+
```

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ services:
2323
- INSTALL_PHPREDIS=${WORKSPACE_INSTALL_PHPREDIS}
2424
- INSTALL_MSSQL=${WORKSPACE_INSTALL_MSSQL}
2525
- INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
26+
- NPM_REGISTRY=${WORKSPACE_NPM_REGISTRY}
2627
- INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
2728
- INSTALL_DRUSH=${WORKSPACE_INSTALL_DRUSH}
2829
- INSTALL_DRUPAL_CONSOLE=${WORKSPACE_INSTALL_DRUPAL_CONSOLE}
2930
- INSTALL_AEROSPIKE=${WORKSPACE_INSTALL_AEROSPIKE}
3031
- INSTALL_V8JS=${WORKSPACE_INSTALL_V8JS}
3132
- COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
33+
- COMPOSER_REPO_PACKAGIST=${WORKSPACE_COMPOSER_REPO_PACKAGIST}
3234
- INSTALL_WORKSPACE_SSH=${WORKSPACE_INSTALL_WORKSPACE_SSH}
3335
- INSTALL_LARAVEL_ENVOY=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
3436
- INSTALL_LARAVEL_INSTALLER=${WORKSPACE_INSTALL_LARAVEL_INSTALLER}

env-example

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
APPLICATION=../
99

1010
### PHP Version ########################################################################################################
11-
# Select a PHP version of the Workspace and PHP-FPM containers (Does not apply to HHVM). Accepted values: 71 - 70 - 56
11+
# Select a PHP version of the Workspace and PHP-FPM containers (Does not apply to HHVM). Accepted values: 72 - 71 - 70 - 56
1212

13-
PHP_VERSION=71
13+
PHP_VERSION=72
1414

1515
### PHP Interpreter ####################################################################################################
1616
# Select the PHP Interpreter. Accepted values: hhvm - php-fpm
@@ -67,12 +67,14 @@ WORKSPACE_INSTALL_AMQP=false
6767
WORKSPACE_INSTALL_PHPREDIS=false
6868
WORKSPACE_INSTALL_MSSQL=false
6969
WORKSPACE_INSTALL_NODE=false
70+
WORKSPACE_NPM_REGISTRY=
7071
WORKSPACE_INSTALL_YARN=false
7172
WORKSPACE_INSTALL_DRUSH=false
7273
WORKSPACE_INSTALL_DRUPAL_CONSOLE=false
7374
WORKSPACE_INSTALL_AEROSPIKE=false
7475
WORKSPACE_INSTALL_V8JS=false
7576
WORKSPACE_COMPOSER_GLOBAL_INSTALL=false
77+
WORKSPACE_COMPOSER_REPO_PACKAGIST=
7678
WORKSPACE_INSTALL_WORKSPACE_SSH=false
7779
WORKSPACE_INSTALL_LARAVEL_ENVOY=false
7880
WORKSPACE_INSTALL_LARAVEL_INSTALLER=false

nginx/sites/app.conf.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ server {
1818
fastcgi_buffers 16 16k;
1919
fastcgi_buffer_size 32k;
2020
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
21+
#fixes timeouts
22+
fastcgi_read_timeout 600;
2123
include fastcgi_params;
2224
}
2325

nginx/sites/default.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ server {
1818
fastcgi_buffers 16 16k;
1919
fastcgi_buffer_size 32k;
2020
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
21+
#fixes timeouts
22+
fastcgi_read_timeout 600;
2123
include fastcgi_params;
2224
}
2325

nginx/sites/laravel.conf.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ server {
1818
fastcgi_buffers 16 16k;
1919
fastcgi_buffer_size 32k;
2020
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
21+
#fixes timeouts
22+
fastcgi_read_timeout 600;
2123
include fastcgi_params;
2224
}
2325

nginx/sites/symfony.conf.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ server {
2020
fastcgi_split_path_info ^(.+\.php)(/.*)$;
2121
include fastcgi_params;
2222
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
23+
#fixes timeouts
24+
fastcgi_read_timeout 600;
2325
fastcgi_param HTTPS off;
2426
}
2527

php-fpm/Dockerfile-56

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ ARG INSTALL_GMP=false
177177
RUN if [ ${INSTALL_GMP} = true ]; then \
178178
# Install the GMP extension
179179
apt-get update -yqq && \
180-
apt-get install -y libgmp-dev && \
180+
apt-get install -y libgmp-dev && \
181+
ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h && \
181182
docker-php-ext-install gmp \
182183
;fi
183184

@@ -324,7 +325,7 @@ ARG INSTALL_IMAGEMAGICK=false
324325
ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
325326
RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
326327
apt-get update -y && \
327-
apt-get install -y libmagickwand-dev imagemagick && \
328+
apt-get install -y libmagickwand-dev imagemagick && \
328329
pecl install imagick && \
329330
docker-php-ext-enable imagick \
330331
;fi
@@ -342,6 +343,12 @@ RUN if [ ${INSTALL_IMAP} = true ]; then \
342343
docker-php-ext-install imap \
343344
;fi
344345

346+
#####################################
347+
# Check PHP version:
348+
#####################################
349+
350+
RUN php -v | head -n 1 | grep -q "PHP 5.6."
351+
345352
#
346353
#--------------------------------------------------------------------------
347354
# Final Touch

php-fpm/Dockerfile-70

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,10 @@ RUN if [ ${INSTALL_MSSQL} = true ]; then \
318318
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
319319
&& curl https://packages.microsoft.com/config/debian/8/prod.list > /etc/apt/sources.list.d/mssql-release.list \
320320
&& apt-get update -yqq \
321-
322321
# Install Dependencies
323322
&& ACCEPT_EULA=Y apt-get install -y unixodbc unixodbc-dev libgss3 odbcinst msodbcsql locales \
324323
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
325324
&& locale-gen \
326-
327325
# Install pdo_sqlsrv and sqlsrv from PECL. Replace pdo_sqlsrv-4.1.8preview with preferred version.
328326
&& pecl install pdo_sqlsrv-4.1.8preview sqlsrv-4.1.8preview \
329327
&& docker-php-ext-enable pdo_sqlsrv sqlsrv \
@@ -366,6 +364,12 @@ RUN if [ ${INSTALL_IMAP} = true ]; then \
366364
docker-php-ext-install imap \
367365
;fi
368366

367+
#####################################
368+
# Check PHP version:
369+
#####################################
370+
371+
RUN php -v | head -n 1 | grep -q "PHP 7.0."
372+
369373
#
370374
#--------------------------------------------------------------------------
371375
# Final Touch

0 commit comments

Comments
 (0)