Compare commits
98 Commits
Author | SHA1 | Date | |
---|---|---|---|
8a1b3c45c8 | |||
ef267a64e6 | |||
0d086024a8 | |||
92e7a8559d | |||
3c36fc7d16 | |||
de57f728cc | |||
9aecc53dba | |||
f64360ab74 | |||
27f2ffdd6c | |||
716282b504 | |||
b74c54f804 | |||
8203e5da29 | |||
bad3b76963 | |||
cc1d6aaebf | |||
a9f84bfa61 | |||
67e9a517f3 | |||
964494255d | |||
c68bbd4f83 | |||
713799c17b | |||
fc5ab30d4f | |||
89a1ac652e | |||
d732318e52 | |||
ccf85148e8 | |||
378900ee38 | |||
30c91c7f94 | |||
e943d90ca2 | |||
d847c1a8c5 | |||
ace85c38d7 | |||
be48366190 | |||
a1d7d46573 | |||
0da0f302d3 | |||
a010010d97 | |||
44f1d456b2 | |||
0edeb8fb71 | |||
77c8429ea1 | |||
3ba74dd1c3 | |||
fb617deb86 | |||
5a25b786f3 | |||
88d06bb838 | |||
bc6ba25790 | |||
3889363443 | |||
42c580af1f | |||
a954732145 | |||
f608c6a45d | |||
53558480e8 | |||
76b046f321 | |||
818d61ab54 | |||
c6fe34db11 | |||
dec428a748 | |||
9cea74dc6f | |||
a190f11e8f | |||
f3e3bbe2b7 | |||
91041e9c56 | |||
84db9b079d | |||
64573a407f | |||
ed6be69cc1 | |||
838156b1bd | |||
9bdeaa3682 | |||
c84db7d4d7 | |||
2c9563d2cd | |||
dab5ff1ac6 | |||
5a0c905457 | |||
b6204e5933 | |||
ba23f41322 | |||
497878557c | |||
fe2631649c | |||
c64be9969f | |||
24361ca818 | |||
b5314e5769 | |||
461e05d677 | |||
aff7d9d615 | |||
0573bbc58a | |||
1673c44136 | |||
1ded4a657e | |||
4dc4a4e680 | |||
52bd45e1b8 | |||
3cb43e6139 | |||
b7ede26634 | |||
559acc278b | |||
1f2643f52c | |||
ed92e61818 | |||
ae64a619b7 | |||
4184f45fbd | |||
ab3a325ea3 | |||
b8a971e634 | |||
4893347980 | |||
f01cab7742 | |||
f64adc2114 | |||
ff640a0ca2 | |||
bdf2a285a7 | |||
47bb995cad | |||
da8f0d0864 | |||
c2caf730db | |||
b2de93cc1b | |||
cd80ca59df | |||
28e82813c4 | |||
2de32fe97f | |||
ee89ff96d5 |
@ -1,7 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "Laradock",
|
"name": "Laradock",
|
||||||
"dockerComposeFile": ["../docker-compose.yml"],
|
"dockerComposeFile": "../docker-compose.yml",
|
||||||
"runServices": ["nginx", "postgres", "pgadmin"],
|
"remoteUser": "laradock",
|
||||||
|
"runServices": [
|
||||||
|
"nginx",
|
||||||
|
"postgres",
|
||||||
|
"pgadmin"
|
||||||
|
],
|
||||||
"service": "workspace",
|
"service": "workspace",
|
||||||
"workspaceFolder": "/var/www",
|
"workspaceFolder": "/var/www",
|
||||||
"shutdownAction": "stopCompose",
|
"shutdownAction": "stopCompose",
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,5 +15,6 @@
|
|||||||
|
|
||||||
/.devcontainer/*
|
/.devcontainer/*
|
||||||
!/.devcontainer/devcontainer.example.json
|
!/.devcontainer/devcontainer.example.json
|
||||||
|
!/.devcontainer/docker-compose.extend-example.yml
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
@ -12,12 +12,14 @@ env:
|
|||||||
- PHP_VERSION=7.1 BUILD_SERVICE=workspace
|
- PHP_VERSION=7.1 BUILD_SERVICE=workspace
|
||||||
- PHP_VERSION=7.2 BUILD_SERVICE=workspace
|
- PHP_VERSION=7.2 BUILD_SERVICE=workspace
|
||||||
- PHP_VERSION=7.3 BUILD_SERVICE=workspace
|
- PHP_VERSION=7.3 BUILD_SERVICE=workspace
|
||||||
|
- PHP_VERSION=7.4 BUILD_SERVICE=workspace
|
||||||
|
|
||||||
- PHP_VERSION=5.6 BUILD_SERVICE=php-fpm
|
- PHP_VERSION=5.6 BUILD_SERVICE=php-fpm
|
||||||
- PHP_VERSION=7.0 BUILD_SERVICE=php-fpm
|
- PHP_VERSION=7.0 BUILD_SERVICE=php-fpm
|
||||||
- PHP_VERSION=7.1 BUILD_SERVICE=php-fpm
|
- PHP_VERSION=7.1 BUILD_SERVICE=php-fpm
|
||||||
- PHP_VERSION=7.2 BUILD_SERVICE=php-fpm
|
- PHP_VERSION=7.2 BUILD_SERVICE=php-fpm
|
||||||
- PHP_VERSION=7.3 BUILD_SERVICE=php-fpm
|
- PHP_VERSION=7.3 BUILD_SERVICE=php-fpm
|
||||||
|
- PHP_VERSION=7.4 BUILD_SERVICE=php-fpm
|
||||||
|
|
||||||
- PHP_VERSION=hhvm BUILD_SERVICE=hhvm
|
- PHP_VERSION=hhvm BUILD_SERVICE=hhvm
|
||||||
|
|
||||||
@ -26,6 +28,13 @@ env:
|
|||||||
- PHP_VERSION=7.1 BUILD_SERVICE=php-worker
|
- PHP_VERSION=7.1 BUILD_SERVICE=php-worker
|
||||||
- PHP_VERSION=7.2 BUILD_SERVICE=php-worker
|
- PHP_VERSION=7.2 BUILD_SERVICE=php-worker
|
||||||
- PHP_VERSION=7.3 BUILD_SERVICE=php-worker
|
- PHP_VERSION=7.3 BUILD_SERVICE=php-worker
|
||||||
|
- PHP_VERSION=7.4 BUILD_SERVICE=php-worker
|
||||||
|
|
||||||
|
- PHP_VERSION=7.0 BUILD_SERVICE=laravel-horizon
|
||||||
|
- PHP_VERSION=7.1 BUILD_SERVICE=laravel-horizon
|
||||||
|
- PHP_VERSION=7.2 BUILD_SERVICE=laravel-horizon
|
||||||
|
- PHP_VERSION=7.3 BUILD_SERVICE=laravel-horizon
|
||||||
|
- PHP_VERSION=7.4 BUILD_SERVICE=laravel-horizon
|
||||||
|
|
||||||
- PHP_VERSION=NA BUILD_SERVICE=solr
|
- PHP_VERSION=NA BUILD_SERVICE=solr
|
||||||
- PHP_VERSION=NA BUILD_SERVICE="mssql rethinkdb aerospike"
|
- PHP_VERSION=NA BUILD_SERVICE="mssql rethinkdb aerospike"
|
||||||
|
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"Dockerfile-*": "dockerfile"
|
||||||
|
},
|
||||||
|
}
|
@ -314,6 +314,29 @@ Note: If `.php-fpm/xdebug` doesn't execute and gives `Permission Denied` error t
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<a name="Install-pcov"></a>
|
||||||
|
## Install pcov
|
||||||
|
|
||||||
|
1 - First install `pcov` in the Workspace and the PHP-FPM Containers:
|
||||||
|
<br>
|
||||||
|
a) open the `.env` file
|
||||||
|
<br>
|
||||||
|
b) search for the `WORKSPACE_INSTALL_PCOV` argument under the Workspace Container
|
||||||
|
<br>
|
||||||
|
c) set it to `true`
|
||||||
|
<br>
|
||||||
|
d) search for the `PHP_FPM_INSTALL_PCOV` argument under the PHP-FPM Container
|
||||||
|
<br>
|
||||||
|
e) set it to `true`
|
||||||
|
|
||||||
|
2 - Re-build the containers `docker-compose build workspace php-fpm`
|
||||||
|
|
||||||
|
Note that pcov is only supported on PHP 7.1 or newer. For more information on setting up pcov optimally, check the recommended section
|
||||||
|
of the [README](https://github.com/krakjoe/pcov)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Install-phpdbg"></a>
|
<a name="Install-phpdbg"></a>
|
||||||
## Install phpdbg
|
## Install phpdbg
|
||||||
@ -1500,6 +1523,13 @@ To add locales to the container:
|
|||||||
|
|
||||||
4 - Check enabled locales with `docker-compose exec php-fpm locale -a`
|
4 - Check enabled locales with `docker-compose exec php-fpm locale -a`
|
||||||
|
|
||||||
|
Update the locale setting, default is `POSIX`
|
||||||
|
|
||||||
|
1 - Open the `.env` file and set `PHP_FPM_DEFAULT_LOCALE` to `en_US.UTF8` or other locale you want.
|
||||||
|
|
||||||
|
2 - Re-build your PHP-FPM Container `docker-compose build php-fpm`.
|
||||||
|
|
||||||
|
3 - Check the default locale with `docker-compose exec php-fpm locale`
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
@ -1889,7 +1919,9 @@ To install Supervisor in the Workspace container
|
|||||||
|
|
||||||
2 - Set `WORKSPACE_INSTALL_SUPERVISOR` and `WORKSPACE_INSTALL_PYTHON` to `true`.
|
2 - Set `WORKSPACE_INSTALL_SUPERVISOR` and `WORKSPACE_INSTALL_PYTHON` to `true`.
|
||||||
|
|
||||||
3 - Re-build the container `docker-compose build workspace` Or `docker-composer up --build -d workspace`
|
3 - Create supervisor configuration file (for ex., named `laravel-worker.conf`) for Laravel Queue Worker in `php-worker/supervisord.d/` by simply copy from `laravel-worker.conf.example`
|
||||||
|
|
||||||
|
4 - Re-build the container `docker-compose build workspace` Or `docker-composer up --build -d workspace`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -2004,6 +2036,26 @@ YAML PHP extension allows you to easily parse and create YAML structured data. I
|
|||||||
4 - Re-build the container `docker-compose build php-fpm`<br>
|
4 - Re-build the container `docker-compose build php-fpm`<br>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<a name="Install-AST"></a>
|
||||||
|
## Install AST PHP extension
|
||||||
|
AST exposes the abstract syntax tree generated by PHP 7+. This extension is required by tools such as `Phan`, a static analyzer for PHP.
|
||||||
|
|
||||||
|
1 - Open the `.env` file
|
||||||
|
|
||||||
|
2 - Search for the `WORKSPACE_INSTALL_AST` argument under the Workspace Container
|
||||||
|
|
||||||
|
3 - Set it to `true`
|
||||||
|
|
||||||
|
4 - Re-build the container `docker-compose build workspace`
|
||||||
|
|
||||||
|
**Note** If you need a specific version of AST then search for the `WORKSPACE_AST_VERSION` argument under the Workspace Container and set it to the desired version and continue step 4.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="phpstorm-debugging"></a>
|
<a name="phpstorm-debugging"></a>
|
||||||
## PHPStorm Debugging Guide
|
## PHPStorm Debugging Guide
|
||||||
|
@ -8,6 +8,7 @@ weight: 2
|
|||||||
|
|
||||||
- [Git](https://git-scm.com/downloads)
|
- [Git](https://git-scm.com/downloads)
|
||||||
- [Docker](https://www.docker.com/products/docker/) `>= 17.12`
|
- [Docker](https://www.docker.com/products/docker/) `>= 17.12`
|
||||||
|
- [gcloud](https://cloud.google.com/sdk/install)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,6 +22,17 @@ Choose the setup the best suits your needs.
|
|||||||
- [A.2) Don't have a PHP project yet](#A2)
|
- [A.2) Don't have a PHP project yet](#A2)
|
||||||
- [B) Setup for Multiple Projects](#B)
|
- [B) Setup for Multiple Projects](#B)
|
||||||
|
|
||||||
|
### Setup gcloud for docker registry
|
||||||
|
|
||||||
|
```
|
||||||
|
gcloud auth configure-docker
|
||||||
|
```
|
||||||
|
|
||||||
|
and login to gcloud for use the registry and auth the permission.
|
||||||
|
|
||||||
|
```
|
||||||
|
gcloud auth login
|
||||||
|
```
|
||||||
|
|
||||||
<a name="A"></a>
|
<a name="A"></a>
|
||||||
### A) Setup for Single Project
|
### A) Setup for Single Project
|
||||||
|
@ -156,7 +156,7 @@ Laradock exists thanks to all the people who contribute.
|
|||||||
|
|
||||||
### Code Contributors
|
### Code Contributors
|
||||||
|
|
||||||
<a href="https://github.com/undefined/undefined/graphs/contributors"><img src="https://opencollective.com/laradock/contributors.svg?width=890&button=false" /></a>
|
<a href="https://github.com/laradock/laradock/graphs/contributors"><img src="https://opencollective.com/laradock/contributors.svg?width=890&button=false" /></a>
|
||||||
|
|
||||||
### Financial Contributors
|
### Financial Contributors
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM webdevops/apache:ubuntu-16.04
|
FROM webdevops/apache:ubuntu-18.04
|
||||||
|
|
||||||
LABEL maintainer="Eric Pfeiffer <computerfr33k@users.noreply.github.com>"
|
LABEL maintainer="Eric Pfeiffer <computerfr33k@users.noreply.github.com>"
|
||||||
|
|
||||||
|
@ -59,10 +59,13 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./workspace
|
context: ./workspace
|
||||||
args:
|
args:
|
||||||
|
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
||||||
|
- UBUNTU_SOURCE=${UBUNTU_SOURCE}
|
||||||
- LARADOCK_PHP_VERSION=${PHP_VERSION}
|
- LARADOCK_PHP_VERSION=${PHP_VERSION}
|
||||||
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
|
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
|
||||||
- INSTALL_SUBVERSION=${WORKSPACE_INSTALL_SUBVERSION}
|
- INSTALL_SUBVERSION=${WORKSPACE_INSTALL_SUBVERSION}
|
||||||
- INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
|
- INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
|
||||||
|
- INSTALL_PCOV=${WORKSPACE_INSTALL_PCOV}
|
||||||
- INSTALL_PHPDBG=${WORKSPACE_INSTALL_PHPDBG}
|
- INSTALL_PHPDBG=${WORKSPACE_INSTALL_PHPDBG}
|
||||||
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
|
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
|
||||||
- INSTALL_SSH2=${WORKSPACE_INSTALL_SSH2}
|
- INSTALL_SSH2=${WORKSPACE_INSTALL_SSH2}
|
||||||
@ -70,6 +73,7 @@ services:
|
|||||||
- INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP}
|
- INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP}
|
||||||
- INSTALL_XSL=${WORKSPACE_INSTALL_XSL}
|
- INSTALL_XSL=${WORKSPACE_INSTALL_XSL}
|
||||||
- INSTALL_LDAP=${WORKSPACE_INSTALL_LDAP}
|
- INSTALL_LDAP=${WORKSPACE_INSTALL_LDAP}
|
||||||
|
- INSTALL_SMB=${WORKSPACE_INSTALL_SMB}
|
||||||
- INSTALL_IMAP=${WORKSPACE_INSTALL_IMAP}
|
- INSTALL_IMAP=${WORKSPACE_INSTALL_IMAP}
|
||||||
- INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO}
|
- INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO}
|
||||||
- INSTALL_AMQP=${WORKSPACE_INSTALL_AMQP}
|
- INSTALL_AMQP=${WORKSPACE_INSTALL_AMQP}
|
||||||
@ -77,6 +81,7 @@ services:
|
|||||||
- INSTALL_GEARMAN=${WORKSPACE_INSTALL_GEARMAN}
|
- INSTALL_GEARMAN=${WORKSPACE_INSTALL_GEARMAN}
|
||||||
- INSTALL_PHPREDIS=${WORKSPACE_INSTALL_PHPREDIS}
|
- INSTALL_PHPREDIS=${WORKSPACE_INSTALL_PHPREDIS}
|
||||||
- INSTALL_MSSQL=${WORKSPACE_INSTALL_MSSQL}
|
- INSTALL_MSSQL=${WORKSPACE_INSTALL_MSSQL}
|
||||||
|
- NVM_NODEJS_ORG_MIRROR=${WORKSPACE_NVM_NODEJS_ORG_MIRROR}
|
||||||
- INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
|
- INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
|
||||||
- NPM_REGISTRY=${WORKSPACE_NPM_REGISTRY}
|
- NPM_REGISTRY=${WORKSPACE_NPM_REGISTRY}
|
||||||
- INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
|
- INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
|
||||||
@ -88,6 +93,7 @@ services:
|
|||||||
- INSTALL_WP_CLI=${WORKSPACE_INSTALL_WP_CLI}
|
- INSTALL_WP_CLI=${WORKSPACE_INSTALL_WP_CLI}
|
||||||
- INSTALL_DRUPAL_CONSOLE=${WORKSPACE_INSTALL_DRUPAL_CONSOLE}
|
- INSTALL_DRUPAL_CONSOLE=${WORKSPACE_INSTALL_DRUPAL_CONSOLE}
|
||||||
- INSTALL_AEROSPIKE=${WORKSPACE_INSTALL_AEROSPIKE}
|
- INSTALL_AEROSPIKE=${WORKSPACE_INSTALL_AEROSPIKE}
|
||||||
|
- INSTALL_OCI8=${WORKSPACE_INSTALL_OCI8}
|
||||||
- INSTALL_V8JS=${WORKSPACE_INSTALL_V8JS}
|
- INSTALL_V8JS=${WORKSPACE_INSTALL_V8JS}
|
||||||
- COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
|
- COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
|
||||||
- COMPOSER_AUTH=${WORKSPACE_COMPOSER_AUTH}
|
- COMPOSER_AUTH=${WORKSPACE_COMPOSER_AUTH}
|
||||||
@ -114,6 +120,9 @@ services:
|
|||||||
- INSTALL_MYSQL_CLIENT=${WORKSPACE_INSTALL_MYSQL_CLIENT}
|
- INSTALL_MYSQL_CLIENT=${WORKSPACE_INSTALL_MYSQL_CLIENT}
|
||||||
- INSTALL_PING=${WORKSPACE_INSTALL_PING}
|
- INSTALL_PING=${WORKSPACE_INSTALL_PING}
|
||||||
- INSTALL_SSHPASS=${WORKSPACE_INSTALL_SSHPASS}
|
- INSTALL_SSHPASS=${WORKSPACE_INSTALL_SSHPASS}
|
||||||
|
- INSTALL_INOTIFY=${WORKSPACE_INSTALL_INOTIFY}
|
||||||
|
- INSTALL_FSWATCH=${WORKSPACE_INSTALL_FSWATCH}
|
||||||
|
- INSTALL_AST=${WORKSPACE_INSTALL_AST}
|
||||||
- INSTALL_YAML=${WORKSPACE_INSTALL_YAML}
|
- INSTALL_YAML=${WORKSPACE_INSTALL_YAML}
|
||||||
- INSTALL_MAILPARSE=${WORKSPACE_INSTALL_MAILPARSE}
|
- INSTALL_MAILPARSE=${WORKSPACE_INSTALL_MAILPARSE}
|
||||||
- PUID=${WORKSPACE_PUID}
|
- PUID=${WORKSPACE_PUID}
|
||||||
@ -122,6 +131,7 @@ services:
|
|||||||
- NODE_VERSION=${WORKSPACE_NODE_VERSION}
|
- NODE_VERSION=${WORKSPACE_NODE_VERSION}
|
||||||
- YARN_VERSION=${WORKSPACE_YARN_VERSION}
|
- YARN_VERSION=${WORKSPACE_YARN_VERSION}
|
||||||
- DRUSH_VERSION=${WORKSPACE_DRUSH_VERSION}
|
- DRUSH_VERSION=${WORKSPACE_DRUSH_VERSION}
|
||||||
|
- AST_VERSION=${WORKSPACE_AST_VERSION}
|
||||||
- TZ=${WORKSPACE_TIMEZONE}
|
- TZ=${WORKSPACE_TIMEZONE}
|
||||||
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
|
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
|
||||||
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
|
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
|
||||||
@ -158,11 +168,13 @@ services:
|
|||||||
- LARADOCK_PHP_VERSION=${PHP_VERSION}
|
- LARADOCK_PHP_VERSION=${PHP_VERSION}
|
||||||
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
|
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
|
||||||
- INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG}
|
- INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG}
|
||||||
|
- INSTALL_PCOV=${PHP_FPM_INSTALL_PCOV}
|
||||||
- INSTALL_PHPDBG=${PHP_FPM_INSTALL_PHPDBG}
|
- INSTALL_PHPDBG=${PHP_FPM_INSTALL_PHPDBG}
|
||||||
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
|
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
|
||||||
- INSTALL_SSH2=${PHP_FPM_INSTALL_SSH2}
|
- INSTALL_SSH2=${PHP_FPM_INSTALL_SSH2}
|
||||||
- INSTALL_SOAP=${PHP_FPM_INSTALL_SOAP}
|
- INSTALL_SOAP=${PHP_FPM_INSTALL_SOAP}
|
||||||
- INSTALL_XSL=${PHP_FPM_INSTALL_XSL}
|
- INSTALL_XSL=${PHP_FPM_INSTALL_XSL}
|
||||||
|
- INSTALL_SMB=${PHP_FPM_INSTALL_SMB}
|
||||||
- INSTALL_IMAP=${PHP_FPM_INSTALL_IMAP}
|
- INSTALL_IMAP=${PHP_FPM_INSTALL_IMAP}
|
||||||
- INSTALL_MONGO=${PHP_FPM_INSTALL_MONGO}
|
- INSTALL_MONGO=${PHP_FPM_INSTALL_MONGO}
|
||||||
- INSTALL_AMQP=${PHP_FPM_INSTALL_AMQP}
|
- INSTALL_AMQP=${PHP_FPM_INSTALL_AMQP}
|
||||||
@ -176,6 +188,7 @@ services:
|
|||||||
- INSTALL_OPCACHE=${PHP_FPM_INSTALL_OPCACHE}
|
- INSTALL_OPCACHE=${PHP_FPM_INSTALL_OPCACHE}
|
||||||
- INSTALL_EXIF=${PHP_FPM_INSTALL_EXIF}
|
- INSTALL_EXIF=${PHP_FPM_INSTALL_EXIF}
|
||||||
- INSTALL_AEROSPIKE=${PHP_FPM_INSTALL_AEROSPIKE}
|
- INSTALL_AEROSPIKE=${PHP_FPM_INSTALL_AEROSPIKE}
|
||||||
|
- INSTALL_OCI8=${PHP_FPM_INSTALL_OCI8}
|
||||||
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
|
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
|
||||||
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
||||||
- INSTALL_PG_CLIENT=${PHP_FPM_INSTALL_PG_CLIENT}
|
- INSTALL_PG_CLIENT=${PHP_FPM_INSTALL_PG_CLIENT}
|
||||||
@ -195,6 +208,7 @@ services:
|
|||||||
- INSTALL_CACHETOOL=${PHP_FPM_INSTALL_CACHETOOL}
|
- INSTALL_CACHETOOL=${PHP_FPM_INSTALL_CACHETOOL}
|
||||||
- INSTALL_YAML=${PHP_FPM_INSTALL_YAML}
|
- INSTALL_YAML=${PHP_FPM_INSTALL_YAML}
|
||||||
- INSTALL_RDKAFKA=${PHP_FPM_INSTALL_RDKAFKA}
|
- INSTALL_RDKAFKA=${PHP_FPM_INSTALL_RDKAFKA}
|
||||||
|
- INSTALL_GETTEXT=${PHP_FPM_INSTALL_GETTEXT}
|
||||||
- INSTALL_ADDITIONAL_LOCALES=${PHP_FPM_INSTALL_ADDITIONAL_LOCALES}
|
- INSTALL_ADDITIONAL_LOCALES=${PHP_FPM_INSTALL_ADDITIONAL_LOCALES}
|
||||||
- INSTALL_MYSQL_CLIENT=${PHP_FPM_INSTALL_MYSQL_CLIENT}
|
- INSTALL_MYSQL_CLIENT=${PHP_FPM_INSTALL_MYSQL_CLIENT}
|
||||||
- INSTALL_PING=${PHP_FPM_INSTALL_PING}
|
- INSTALL_PING=${PHP_FPM_INSTALL_PING}
|
||||||
@ -206,6 +220,7 @@ services:
|
|||||||
- INSTALL_XHPROF=${PHP_FPM_INSTALL_XHPROF}
|
- INSTALL_XHPROF=${PHP_FPM_INSTALL_XHPROF}
|
||||||
- PUID=${PHP_FPM_PUID}
|
- PUID=${PHP_FPM_PUID}
|
||||||
- PGID=${PHP_FPM_PGID}
|
- PGID=${PHP_FPM_PGID}
|
||||||
|
- LOCALE=${PHP_FPM_DEFAULT_LOCALE}
|
||||||
- http_proxy
|
- http_proxy
|
||||||
- https_proxy
|
- https_proxy
|
||||||
- no_proxy
|
- no_proxy
|
||||||
@ -266,6 +281,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./laravel-horizon
|
context: ./laravel-horizon
|
||||||
args:
|
args:
|
||||||
|
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
||||||
- PHP_VERSION=${PHP_VERSION}
|
- PHP_VERSION=${PHP_VERSION}
|
||||||
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
||||||
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
|
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
|
||||||
@ -289,9 +305,9 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./nginx
|
context: ./nginx
|
||||||
args:
|
args:
|
||||||
|
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
||||||
- PHP_UPSTREAM_CONTAINER=${NGINX_PHP_UPSTREAM_CONTAINER}
|
- PHP_UPSTREAM_CONTAINER=${NGINX_PHP_UPSTREAM_CONTAINER}
|
||||||
- PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT}
|
- PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT}
|
||||||
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
|
||||||
- http_proxy
|
- http_proxy
|
||||||
- https_proxy
|
- https_proxy
|
||||||
- no_proxy
|
- no_proxy
|
||||||
@ -412,6 +428,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./mssql
|
context: ./mssql
|
||||||
environment:
|
environment:
|
||||||
|
- MSSQL_PID=Express
|
||||||
- MSSQL_DATABASE=${MSSQL_DATABASE}
|
- MSSQL_DATABASE=${MSSQL_DATABASE}
|
||||||
- SA_PASSWORD=${MSSQL_PASSWORD}
|
- SA_PASSWORD=${MSSQL_PASSWORD}
|
||||||
- ACCEPT_EULA=Y
|
- ACCEPT_EULA=Y
|
||||||
@ -1587,7 +1604,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ${MANTICORE_CONFIG_PATH}:/etc/sphinxsearch
|
- ${MANTICORE_CONFIG_PATH}:/etc/sphinxsearch
|
||||||
- ${DATA_PATH_HOST}/manticore/data:/var/lib/manticore/data
|
- ${DATA_PATH_HOST}/manticore/data:/var/lib/manticore/data
|
||||||
- ${DATA_PATH_HOST}/manticore/log:/var/lib/manticore/log
|
- ${DATA_PATH_HOST}/manticore/log:/var/log/manticore
|
||||||
ports:
|
ports:
|
||||||
- "${MANTICORE_API_PORT}:9312"
|
- "${MANTICORE_API_PORT}:9312"
|
||||||
- "${MANTICORE_SPHINXQL_PORT}:9306"
|
- "${MANTICORE_SPHINXQL_PORT}:9306"
|
||||||
@ -1617,6 +1634,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
- frontend
|
- frontend
|
||||||
|
|
||||||
### CONFLUENCE ################################################
|
### CONFLUENCE ################################################
|
||||||
confluence:
|
confluence:
|
||||||
container_name: Confluence
|
container_name: Confluence
|
||||||
@ -1630,4 +1648,19 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_PATH_HOST}/Confluence:/var/atlassian/application-data
|
- ${DATA_PATH_HOST}/Confluence:/var/atlassian/application-data
|
||||||
|
|
||||||
|
### tomcat ####################################################
|
||||||
|
tomcat:
|
||||||
|
container_name: tomcat
|
||||||
|
image: tomcat:${TOMCAT_VERSION}
|
||||||
|
ports:
|
||||||
|
- "${TOMCAT_HOST_HTTP_PORT}:8080"
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
volumes:
|
||||||
|
- ${DATA_PATH_HOST}/tomcat/webapps:/usr/local/tomcat/webapps
|
||||||
|
- ${DATA_PATH_HOST}/tomcat/logs:/usr/local/tomcat/logs
|
||||||
|
# restart: always
|
||||||
|
|
||||||
|
49
env-example
49
env-example
@ -44,7 +44,7 @@ PHP_VERSION=7.3
|
|||||||
### Phalcon Version ###########################################
|
### Phalcon Version ###########################################
|
||||||
|
|
||||||
# Select a Phalcon version of the Workspace and PHP-FPM containers (Does not apply to HHVM). Accepted values: 3.4.0+
|
# Select a Phalcon version of the Workspace and PHP-FPM containers (Does not apply to HHVM). Accepted values: 3.4.0+
|
||||||
PHALCON_VERSION=3.4.1
|
PHALCON_VERSION=3.4.5
|
||||||
|
|
||||||
### PHP Interpreter #######################################
|
### PHP Interpreter #######################################
|
||||||
|
|
||||||
@ -70,6 +70,8 @@ COMPOSE_CONVERT_WINDOWS_PATHS=1
|
|||||||
|
|
||||||
# If you need to change the sources (i.e. to China), set CHANGE_SOURCE to true
|
# If you need to change the sources (i.e. to China), set CHANGE_SOURCE to true
|
||||||
CHANGE_SOURCE=false
|
CHANGE_SOURCE=false
|
||||||
|
# Set CHANGE_SOURCE and UBUNTU_SOURCE option if you want to change the Ubuntu system sources.list file.
|
||||||
|
UBUNTU_SOURCE=aliyun
|
||||||
|
|
||||||
### Docker Sync ###########################################
|
### Docker Sync ###########################################
|
||||||
|
|
||||||
@ -85,6 +87,7 @@ DOCKER_SYNC_STRATEGY=native_osx
|
|||||||
WORKSPACE_COMPOSER_GLOBAL_INSTALL=true
|
WORKSPACE_COMPOSER_GLOBAL_INSTALL=true
|
||||||
WORKSPACE_COMPOSER_AUTH=false
|
WORKSPACE_COMPOSER_AUTH=false
|
||||||
WORKSPACE_COMPOSER_REPO_PACKAGIST=
|
WORKSPACE_COMPOSER_REPO_PACKAGIST=
|
||||||
|
WORKSPACE_NVM_NODEJS_ORG_MIRROR=
|
||||||
WORKSPACE_INSTALL_NODE=true
|
WORKSPACE_INSTALL_NODE=true
|
||||||
WORKSPACE_NODE_VERSION=node
|
WORKSPACE_NODE_VERSION=node
|
||||||
WORKSPACE_NPM_REGISTRY=
|
WORKSPACE_NPM_REGISTRY=
|
||||||
@ -98,12 +101,14 @@ WORKSPACE_INSTALL_PHPREDIS=true
|
|||||||
WORKSPACE_INSTALL_WORKSPACE_SSH=false
|
WORKSPACE_INSTALL_WORKSPACE_SSH=false
|
||||||
WORKSPACE_INSTALL_SUBVERSION=false
|
WORKSPACE_INSTALL_SUBVERSION=false
|
||||||
WORKSPACE_INSTALL_XDEBUG=false
|
WORKSPACE_INSTALL_XDEBUG=false
|
||||||
|
WORKSPACE_INSTALL_PCOV=false
|
||||||
WORKSPACE_INSTALL_PHPDBG=false
|
WORKSPACE_INSTALL_PHPDBG=false
|
||||||
WORKSPACE_INSTALL_SSH2=false
|
WORKSPACE_INSTALL_SSH2=false
|
||||||
WORKSPACE_INSTALL_LDAP=false
|
WORKSPACE_INSTALL_LDAP=false
|
||||||
WORKSPACE_INSTALL_GMP=false
|
WORKSPACE_INSTALL_GMP=false
|
||||||
WORKSPACE_INSTALL_SOAP=false
|
WORKSPACE_INSTALL_SOAP=false
|
||||||
WORKSPACE_INSTALL_XSL=false
|
WORKSPACE_INSTALL_XSL=false
|
||||||
|
WORKSPACE_INSTALL_SMB=false
|
||||||
WORKSPACE_INSTALL_IMAP=false
|
WORKSPACE_INSTALL_IMAP=false
|
||||||
WORKSPACE_INSTALL_MONGO=false
|
WORKSPACE_INSTALL_MONGO=false
|
||||||
WORKSPACE_INSTALL_AMQP=false
|
WORKSPACE_INSTALL_AMQP=false
|
||||||
@ -115,6 +120,7 @@ WORKSPACE_DRUSH_VERSION=8.1.17
|
|||||||
WORKSPACE_INSTALL_DRUPAL_CONSOLE=false
|
WORKSPACE_INSTALL_DRUPAL_CONSOLE=false
|
||||||
WORKSPACE_INSTALL_WP_CLI=false
|
WORKSPACE_INSTALL_WP_CLI=false
|
||||||
WORKSPACE_INSTALL_AEROSPIKE=false
|
WORKSPACE_INSTALL_AEROSPIKE=false
|
||||||
|
WORKSPACE_INSTALL_OCI8=false
|
||||||
WORKSPACE_INSTALL_V8JS=false
|
WORKSPACE_INSTALL_V8JS=false
|
||||||
WORKSPACE_INSTALL_LARAVEL_ENVOY=false
|
WORKSPACE_INSTALL_LARAVEL_ENVOY=false
|
||||||
WORKSPACE_INSTALL_LARAVEL_INSTALLER=false
|
WORKSPACE_INSTALL_LARAVEL_INSTALLER=false
|
||||||
@ -150,6 +156,8 @@ WORKSPACE_TIMEZONE=UTC
|
|||||||
WORKSPACE_SSH_PORT=2222
|
WORKSPACE_SSH_PORT=2222
|
||||||
WORKSPACE_INSTALL_FFMPEG=false
|
WORKSPACE_INSTALL_FFMPEG=false
|
||||||
WORKSPACE_INSTALL_GNU_PARALLEL=false
|
WORKSPACE_INSTALL_GNU_PARALLEL=false
|
||||||
|
WORKSPACE_INSTALL_AST=true
|
||||||
|
WORKSPACE_AST_VERSION=1.0.3
|
||||||
|
|
||||||
### PHP_FPM ###############################################
|
### PHP_FPM ###############################################
|
||||||
|
|
||||||
@ -162,8 +170,10 @@ PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=true
|
|||||||
PHP_FPM_INSTALL_PHPREDIS=true
|
PHP_FPM_INSTALL_PHPREDIS=true
|
||||||
PHP_FPM_INSTALL_MEMCACHED=false
|
PHP_FPM_INSTALL_MEMCACHED=false
|
||||||
PHP_FPM_INSTALL_XDEBUG=false
|
PHP_FPM_INSTALL_XDEBUG=false
|
||||||
|
PHP_FPM_INSTALL_PCOV=false
|
||||||
PHP_FPM_INSTALL_XHPROF=false
|
PHP_FPM_INSTALL_XHPROF=false
|
||||||
PHP_FPM_INSTALL_PHPDBG=false
|
PHP_FPM_INSTALL_PHPDBG=false
|
||||||
|
PHP_FPM_INSTALL_SMB=false
|
||||||
PHP_FPM_INSTALL_IMAP=false
|
PHP_FPM_INSTALL_IMAP=false
|
||||||
PHP_FPM_INSTALL_MONGO=false
|
PHP_FPM_INSTALL_MONGO=false
|
||||||
PHP_FPM_INSTALL_AMQP=false
|
PHP_FPM_INSTALL_AMQP=false
|
||||||
@ -176,6 +186,7 @@ PHP_FPM_INSTALL_XSL=false
|
|||||||
PHP_FPM_INSTALL_GMP=false
|
PHP_FPM_INSTALL_GMP=false
|
||||||
PHP_FPM_INSTALL_EXIF=false
|
PHP_FPM_INSTALL_EXIF=false
|
||||||
PHP_FPM_INSTALL_AEROSPIKE=false
|
PHP_FPM_INSTALL_AEROSPIKE=false
|
||||||
|
PHP_FPM_INSTALL_OCI8=false
|
||||||
PHP_FPM_INSTALL_PGSQL=false
|
PHP_FPM_INSTALL_PGSQL=false
|
||||||
PHP_FPM_INSTALL_GHOSTSCRIPT=false
|
PHP_FPM_INSTALL_GHOSTSCRIPT=false
|
||||||
PHP_FPM_INSTALL_LDAP=false
|
PHP_FPM_INSTALL_LDAP=false
|
||||||
@ -189,6 +200,7 @@ PHP_FPM_INSTALL_CALENDAR=false
|
|||||||
PHP_FPM_INSTALL_FAKETIME=false
|
PHP_FPM_INSTALL_FAKETIME=false
|
||||||
PHP_FPM_INSTALL_IONCUBE=false
|
PHP_FPM_INSTALL_IONCUBE=false
|
||||||
PHP_FPM_INSTALL_RDKAFKA=false
|
PHP_FPM_INSTALL_RDKAFKA=false
|
||||||
|
PHP_FPM_INSTALL_GETTEXT=false
|
||||||
PHP_FPM_FAKETIME=-0
|
PHP_FPM_FAKETIME=-0
|
||||||
PHP_FPM_INSTALL_APCU=false
|
PHP_FPM_INSTALL_APCU=false
|
||||||
PHP_FPM_INSTALL_CACHETOOL=false
|
PHP_FPM_INSTALL_CACHETOOL=false
|
||||||
@ -200,6 +212,7 @@ PHP_FPM_INSTALL_SSHPASS=false
|
|||||||
PHP_FPM_INSTALL_MAILPARSE=false
|
PHP_FPM_INSTALL_MAILPARSE=false
|
||||||
PHP_FPM_FFMPEG=false
|
PHP_FPM_FFMPEG=false
|
||||||
PHP_FPM_ADDITIONAL_LOCALES="es_ES.UTF-8 fr_FR.UTF-8"
|
PHP_FPM_ADDITIONAL_LOCALES="es_ES.UTF-8 fr_FR.UTF-8"
|
||||||
|
PHP_FPM_DEFAULT_LOCALE=POSIX
|
||||||
|
|
||||||
PHP_FPM_PUID=1000
|
PHP_FPM_PUID=1000
|
||||||
PHP_FPM_PGID=1000
|
PHP_FPM_PGID=1000
|
||||||
@ -285,8 +298,8 @@ PERCONA_ENTRYPOINT_INITDB=./percona/docker-entrypoint-initdb.d
|
|||||||
|
|
||||||
### MSSQL #################################################
|
### MSSQL #################################################
|
||||||
|
|
||||||
MSSQL_DATABASE=homestead
|
MSSQL_DATABASE=master
|
||||||
MSSQL_PASSWORD=yourStrong(!)Password
|
MSSQL_PASSWORD="yourStrong(!)Password"
|
||||||
MSSQL_PORT=1433
|
MSSQL_PORT=1433
|
||||||
|
|
||||||
### MARIADB ###############################################
|
### MARIADB ###############################################
|
||||||
@ -374,7 +387,7 @@ MAILDEV_SMTP_PORT=25
|
|||||||
VARNISH_CONFIG=/etc/varnish/default.vcl
|
VARNISH_CONFIG=/etc/varnish/default.vcl
|
||||||
VARNISH_PORT=8080
|
VARNISH_PORT=8080
|
||||||
VARNISH_BACKEND_PORT=8888
|
VARNISH_BACKEND_PORT=8888
|
||||||
VARNISHD_PARAMS=-p default_ttl=3600 -p default_grace=3600
|
VARNISHD_PARAMS="-p default_ttl=3600 -p default_grace=3600"
|
||||||
|
|
||||||
### Varnish ###############################################
|
### Varnish ###############################################
|
||||||
|
|
||||||
@ -426,10 +439,10 @@ GRAYLOG_GELF_UDP_PORT=12201
|
|||||||
|
|
||||||
# Create an account on blackfire.io. Don't enable blackfire and xDebug at the same time. # visit https://blackfire.io/docs/24-days/06-installation#install-probe-debian for more info.
|
# Create an account on blackfire.io. Don't enable blackfire and xDebug at the same time. # visit https://blackfire.io/docs/24-days/06-installation#install-probe-debian for more info.
|
||||||
INSTALL_BLACKFIRE=false
|
INSTALL_BLACKFIRE=false
|
||||||
BLACKFIRE_CLIENT_ID=<client_id>
|
BLACKFIRE_CLIENT_ID="<client_id>"
|
||||||
BLACKFIRE_CLIENT_TOKEN=<client_token>
|
BLACKFIRE_CLIENT_TOKEN="<client_token>"
|
||||||
BLACKFIRE_SERVER_ID=<server_id>
|
BLACKFIRE_SERVER_ID="<server_id>"
|
||||||
BLACKFIRE_SERVER_TOKEN=<server_token>
|
BLACKFIRE_SERVER_TOKEN="<server_token>"
|
||||||
|
|
||||||
### AEROSPIKE #############################################
|
### AEROSPIKE #############################################
|
||||||
|
|
||||||
@ -538,7 +551,7 @@ FACE_DETECTOR_CASCADE_FILE=haarcascade_frontalface_alt.xml
|
|||||||
OPTIMIZERS=[]
|
OPTIMIZERS=[]
|
||||||
JPEGTRAN_PATH=/usr/bin/jpegtran
|
JPEGTRAN_PATH=/usr/bin/jpegtran
|
||||||
PROGRESSIVE_JPEG=True
|
PROGRESSIVE_JPEG=True
|
||||||
FILTERS=["thumbor.filters.brightness", "thumbor.filters.contrast", "thumbor.filters.rgb", "thumbor.filters.round_corner", "thumbor.filters.quality", "thumbor.filters.noise", "thumbor.filters.watermark", "thumbor.filters.equalize", "thumbor.filters.fill", "thumbor.filters.sharpen", "thumbor.filters.strip_icc", "thumbor.filters.frame", "thumbor.filters.grayscale", "thumbor.filters.rotate", "thumbor.filters.format", "thumbor.filters.max_bytes", "thumbor.filters.convolution", "thumbor.filters.blur", "thumbor.filters.extract_focal", "thumbor.filters.no_upscale"]
|
FILTERS="[thumbor.filters.brightness, thumbor.filters.contrast, thumbor.filters.rgb, thumbor.filters.round_corner, thumbor.filters.quality, thumbor.filters.noise, thumbor.filters.watermark, thumbor.filters.equalize, thumbor.filters.fill, thumbor.filters.sharpen, thumbor.filters.strip_icc, thumbor.filters.frame, thumbor.filters.grayscale, thumbor.filters.rotate, thumbor.filters.format, thumbor.filters.max_bytes, thumbor.filters.convolution, thumbor.filters.blur, thumbor.filters.extract_focal, thumbor.filters.no_upscale]"
|
||||||
RESULT_STORAGE_EXPIRATION_SECONDS=0
|
RESULT_STORAGE_EXPIRATION_SECONDS=0
|
||||||
RESULT_STORAGE_FILE_STORAGE_ROOT_PATH=/data/result_storage
|
RESULT_STORAGE_FILE_STORAGE_ROOT_PATH=/data/result_storage
|
||||||
RESULT_STORAGE_STORES_UNSAFE=False
|
RESULT_STORAGE_STORES_UNSAFE=False
|
||||||
@ -590,7 +603,7 @@ GITLAB_POSTGRES_DB=laradock_gitlab
|
|||||||
|
|
||||||
### GITLAB-RUNNER ###############################################
|
### GITLAB-RUNNER ###############################################
|
||||||
GITLAB_CI_SERVER_URL=http://localhost:8989
|
GITLAB_CI_SERVER_URL=http://localhost:8989
|
||||||
GITLAB_RUNNER_REGISTRATION_TOKEN=<my-registration-token>
|
GITLAB_RUNNER_REGISTRATION_TOKEN="<my-registration-token>"
|
||||||
GITLAB_REGISTER_NON_INTERACTIVE=true
|
GITLAB_REGISTER_NON_INTERACTIVE=true
|
||||||
|
|
||||||
### JUPYTERHUB ###############################################
|
### JUPYTERHUB ###############################################
|
||||||
@ -651,8 +664,8 @@ DOCKER_WEBUI_PORT=8754
|
|||||||
|
|
||||||
### MAILU ###############################################
|
### MAILU ###############################################
|
||||||
MAILU_VERSION=latest
|
MAILU_VERSION=latest
|
||||||
MAILU_RECAPTCHA_PUBLIC_KEY=<YOUR_RECAPTCHA_PUBLIC_KEY>
|
MAILU_RECAPTCHA_PUBLIC_KEY="<YOUR_RECAPTCHA_PUBLIC_KEY>"
|
||||||
MAILU_RECAPTCHA_PRIVATE_KEY=<YOUR_RECAPTCHA_PRIVATE_KEY>
|
MAILU_RECAPTCHA_PRIVATE_KEY="<YOUR_RECAPTCHA_PRIVATE_KEY>"
|
||||||
# Main mail domain
|
# Main mail domain
|
||||||
MAILU_HTTP_PORT=6080
|
MAILU_HTTP_PORT=6080
|
||||||
MAILU_HTTPS_PORT=60443
|
MAILU_HTTPS_PORT=60443
|
||||||
@ -668,7 +681,7 @@ MAILU_SECRET_KEY=ChangeMeChangeMe
|
|||||||
# Choose how secure connections will behave (value: letsencrypt, cert, notls, mail)
|
# Choose how secure connections will behave (value: letsencrypt, cert, notls, mail)
|
||||||
MAILU_TLS_FLAVOR=cert
|
MAILU_TLS_FLAVOR=cert
|
||||||
# Authentication rate limit (per source IP address)
|
# Authentication rate limit (per source IP address)
|
||||||
MAILU_AUTH_RATELIMIT=10/minute;1000/hour
|
MAILU_AUTH_RATELIMIT="10/minute;1000/hour"
|
||||||
# Opt-out of statistics, replace with "True" to opt out
|
# Opt-out of statistics, replace with "True" to opt out
|
||||||
MAILU_DISABLE_STATISTICS=False
|
MAILU_DISABLE_STATISTICS=False
|
||||||
# Message size limit in bytes
|
# Message size limit in bytes
|
||||||
@ -690,14 +703,14 @@ MAILU_DMARC_RUF=admin
|
|||||||
# Welcome email, enable and set a topic and body if you wish to send welcome
|
# Welcome email, enable and set a topic and body if you wish to send welcome
|
||||||
# emails to all users.
|
# emails to all users.
|
||||||
MAILU_WELCOME=True
|
MAILU_WELCOME=True
|
||||||
MAILU_WELCOME_SUBJECT=Welcome to your new email account
|
MAILU_WELCOME_SUBJECT="Welcome to your new email account"
|
||||||
MAILU_WELCOME_BODY=Welcome to your new email account, if you can read this, then it is configured properly!
|
MAILU_WELCOME_BODY="Welcome to your new email account, if you can read this, then it is configured properly!"
|
||||||
# Path to the admin interface if enabled
|
# Path to the admin interface if enabled
|
||||||
MAILU_WEB_ADMIN=/admin
|
MAILU_WEB_ADMIN=/admin
|
||||||
# Path to the webmail if enabled
|
# Path to the webmail if enabled
|
||||||
MAILU_WEB_WEBMAIL=/webmail
|
MAILU_WEB_WEBMAIL=/webmail
|
||||||
# Website name
|
# Website name
|
||||||
MAILU_SITENAME=Example Mail
|
MAILU_SITENAME="Example Mail"
|
||||||
# Linked Website URL
|
# Linked Website URL
|
||||||
MAILU_WEBSITE=http://mail.example.com
|
MAILU_WEBSITE=http://mail.example.com
|
||||||
# Default password scheme used for newly created accounts and changed passwords
|
# Default password scheme used for newly created accounts and changed passwords
|
||||||
@ -754,6 +767,10 @@ SONARQUBE_POSTGRES_DB=sonar
|
|||||||
SONARQUBE_POSTGRES_USER=sonar
|
SONARQUBE_POSTGRES_USER=sonar
|
||||||
SONARQUBE_POSTGRES_PASSWORD=sonarPass
|
SONARQUBE_POSTGRES_PASSWORD=sonarPass
|
||||||
|
|
||||||
|
### TOMCAT ################################################
|
||||||
|
TOMCAT_VERSION=8.5.43
|
||||||
|
TOMCAT_HOST_HTTP_PORT=8080
|
||||||
|
|
||||||
### CASSANDRA ################################################
|
### CASSANDRA ################################################
|
||||||
|
|
||||||
# Cassandra Version, supported tags can be found at https://hub.docker.com/r/bitnami/cassandra/
|
# Cassandra Version, supported tags can be found at https://hub.docker.com/r/bitnami/cassandra/
|
||||||
|
@ -9,6 +9,14 @@ FROM php:${PHP_VERSION}-alpine
|
|||||||
|
|
||||||
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
||||||
|
|
||||||
|
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
|
||||||
|
|
||||||
|
ARG CHANGE_SOURCE=false
|
||||||
|
RUN if [ ${CHANGE_SOURCE} = true ]; then \
|
||||||
|
# Change application source from dl-cdn.alpinelinux.org to aliyun source
|
||||||
|
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories \
|
||||||
|
;fi
|
||||||
|
|
||||||
RUN apk --update add wget \
|
RUN apk --update add wget \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
@ -21,6 +29,7 @@ RUN apk --update add wget \
|
|||||||
cyrus-sasl-dev \
|
cyrus-sasl-dev \
|
||||||
libgsasl-dev \
|
libgsasl-dev \
|
||||||
supervisor \
|
supervisor \
|
||||||
|
oniguruma-dev \
|
||||||
procps
|
procps
|
||||||
|
|
||||||
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
|
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
|
||||||
@ -50,7 +59,7 @@ ARG INSTALL_CASSANDRA=false
|
|||||||
RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
|
RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
|
||||||
apk --update add cassandra-cpp-driver \
|
apk --update add cassandra-cpp-driver \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
# Install PhpRedis package:
|
# Install PhpRedis package:
|
||||||
ARG INSTALL_PHPREDIS=false
|
ARG INSTALL_PHPREDIS=false
|
||||||
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
||||||
|
@ -11,12 +11,12 @@ searchd {
|
|||||||
listen = 9312
|
listen = 9312
|
||||||
listen = 9308:http
|
listen = 9308:http
|
||||||
listen = 9306:mysql41
|
listen = 9306:mysql41
|
||||||
log = /var/lib/manticore/log/searchd.log
|
log = /var/log/manticore/searchd.log
|
||||||
# you can also send query_log to /dev/stdout to be shown in docker logs
|
# you can also send query_log to /dev/stdout to be shown in docker logs
|
||||||
query_log = /var/lib/manticore/log/query.log
|
query_log = /var/log/manticore/query.log
|
||||||
read_timeout = 5
|
read_timeout = 5
|
||||||
max_children = 30
|
max_children = 30
|
||||||
pid_file = /var/run/searchd.pid
|
pid_file = /var/run/manticore/searchd.pid
|
||||||
seamless_rotate = 1
|
seamless_rotate = 1
|
||||||
preopen_indexes = 1
|
preopen_indexes = 1
|
||||||
unlink_old = 1
|
unlink_old = 1
|
||||||
|
@ -1,17 +1,6 @@
|
|||||||
FROM microsoft/mssql-server-linux
|
FROM mcr.microsoft.com/mssql/server:2017-latest-ubuntu
|
||||||
|
|
||||||
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
|
||||||
|
|
||||||
# Create config directory
|
|
||||||
# an set it as WORKDIR
|
|
||||||
RUN mkdir -p /usr/src/app
|
|
||||||
WORKDIR /usr/src/app
|
|
||||||
|
|
||||||
# Bundle app source
|
|
||||||
COPY . /usr/src/app
|
|
||||||
|
|
||||||
RUN chmod +x /usr/src/app/create_table.sh
|
|
||||||
|
|
||||||
|
ENV MSSQL_PID=Express
|
||||||
ENV MSSQL_DATABASE=$MSSQL_DATABASE
|
ENV MSSQL_DATABASE=$MSSQL_DATABASE
|
||||||
ENV ACCEPT_EULA=Y
|
ENV ACCEPT_EULA=Y
|
||||||
ENV SA_PASSWORD=$MSSQL_PASSWORD
|
ENV SA_PASSWORD=$MSSQL_PASSWORD
|
||||||
@ -19,5 +8,3 @@ ENV SA_PASSWORD=$MSSQL_PASSWORD
|
|||||||
VOLUME /var/opt/mssql
|
VOLUME /var/opt/mssql
|
||||||
|
|
||||||
EXPOSE 1433
|
EXPOSE 1433
|
||||||
|
|
||||||
CMD /bin/bash ./entrypoint.sh
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
#wait for the SQL Server to come up
|
|
||||||
sleep 45
|
|
||||||
|
|
||||||
#run the setup script to create the DB and the schema in the DB
|
|
||||||
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -d master -i setup.sql
|
|
@ -1,2 +0,0 @@
|
|||||||
#start SQL Server, start the script to create the DB and import the data, start the app
|
|
||||||
/opt/mssql/bin/sqlservr & /usr/src/app/create_table.sh & tail -f /dev/null
|
|
@ -1,4 +0,0 @@
|
|||||||
CREATE DATABASE $(MSSQL_DATABASE);
|
|
||||||
GO
|
|
||||||
USE $(MSSQL_DATABASE);
|
|
||||||
GO
|
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
ARG LARADOCK_PHP_VERSION
|
ARG LARADOCK_PHP_VERSION
|
||||||
|
|
||||||
FROM laradock/php-fpm:2.6.1-${LARADOCK_PHP_VERSION}
|
FROM laradock/php-fpm:2.6.2-${LARADOCK_PHP_VERSION}
|
||||||
|
|
||||||
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
||||||
|
|
||||||
@ -23,10 +23,14 @@ ARG LARADOCK_PHP_VERSION
|
|||||||
# Set Environment Variables
|
# Set Environment Variables
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
|
||||||
|
|
||||||
ARG CHANGE_SOURCE=false
|
ARG CHANGE_SOURCE=false
|
||||||
RUN if [ ${CHANGE_SOURCE} = true ]; then \
|
RUN if [ ${CHANGE_SOURCE} = true ]; then \
|
||||||
# Change application source from deb.debian.org to aliyun source
|
# Change application source from deb.debian.org to aliyun source
|
||||||
sed -i 's/deb.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list \
|
sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && \
|
||||||
|
sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && \
|
||||||
|
sed -i 's/security-cdn.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
# always run apt update when start and after add new source list, then clean up at end.
|
# always run apt update when start and after add new source list, then clean up at end.
|
||||||
@ -47,7 +51,11 @@ RUN set -xe; \
|
|||||||
#
|
#
|
||||||
# next lines are here becase there is no auto build on dockerhub see https://github.com/laradock/laradock/pull/1903#issuecomment-463142846
|
# next lines are here becase there is no auto build on dockerhub see https://github.com/laradock/laradock/pull/1903#issuecomment-463142846
|
||||||
libzip-dev zip unzip && \
|
libzip-dev zip unzip && \
|
||||||
docker-php-ext-configure zip --with-libzip && \
|
if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ]; then \
|
||||||
|
docker-php-ext-configure zip; \
|
||||||
|
else \
|
||||||
|
docker-php-ext-configure zip --with-libzip; \
|
||||||
|
fi && \
|
||||||
# Install the zip extension
|
# Install the zip extension
|
||||||
docker-php-ext-install zip && \
|
docker-php-ext-install zip && \
|
||||||
php -m | grep -q 'zip'
|
php -m | grep -q 'zip'
|
||||||
@ -169,6 +177,24 @@ RUN sed -i "s/xdebug.remote_autostart=0/xdebug.remote_autostart=1/" /usr/local/e
|
|||||||
sed -i "s/xdebug.remote_enable=0/xdebug.remote_enable=1/" /usr/local/etc/php/conf.d/xdebug.ini && \
|
sed -i "s/xdebug.remote_enable=0/xdebug.remote_enable=1/" /usr/local/etc/php/conf.d/xdebug.ini && \
|
||||||
sed -i "s/xdebug.cli_color=0/xdebug.cli_color=1/" /usr/local/etc/php/conf.d/xdebug.ini
|
sed -i "s/xdebug.cli_color=0/xdebug.cli_color=1/" /usr/local/etc/php/conf.d/xdebug.ini
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# pcov:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
|
ARG INSTALL_PCOV=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_PCOV} = true ]; then \
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \
|
||||||
|
if [ $(php -r "echo PHP_MINOR_VERSION;") != "0" ]; then \
|
||||||
|
pecl install pcov && \
|
||||||
|
docker-php-ext-enable pcov \
|
||||||
|
;fi \
|
||||||
|
;fi \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Phpdbg:
|
# Phpdbg:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -270,9 +296,9 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
|||||||
ARG INSTALL_XHPROF=false
|
ARG INSTALL_XHPROF=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_XHPROF} = true ]; then \
|
RUN if [ ${INSTALL_XHPROF} = true ]; then \
|
||||||
# Install the php xhprof extension
|
# Install the php xhprof extension
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = 7 ]; then \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = 7 ]; then \
|
||||||
curl -L -o /tmp/xhprof.tar.gz "https://github.com/tideways/php-xhprof-extension/archive/v4.1.7.tar.gz"; \
|
curl -L -o /tmp/xhprof.tar.gz "https://github.com/tideways/php-xhprof-extension/archive/v5.0.1.tar.gz"; \
|
||||||
else \
|
else \
|
||||||
curl -L -o /tmp/xhprof.tar.gz "https://codeload.github.com/phacility/xhprof/tar.gz/master"; \
|
curl -L -o /tmp/xhprof.tar.gz "https://codeload.github.com/phacility/xhprof/tar.gz/master"; \
|
||||||
fi \
|
fi \
|
||||||
@ -446,6 +472,51 @@ RUN set -xe; \
|
|||||||
&& docker-php-ext-enable aerospike \
|
&& docker-php-ext-enable aerospike \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# PHP OCI8:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ARG INSTALL_OCI8=false
|
||||||
|
|
||||||
|
ENV LD_LIBRARY_PATH="/opt/oracle/instantclient_12_1"
|
||||||
|
ENV OCI_HOME="/opt/oracle/instantclient_12_1"
|
||||||
|
ENV OCI_LIB_DIR="/opt/oracle/instantclient_12_1"
|
||||||
|
ENV OCI_INCLUDE_DIR="/opt/oracle/instantclient_12_1/sdk/include"
|
||||||
|
ENV OCI_VERSION=12
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_OCI8} = true ]; then \
|
||||||
|
# Install wget
|
||||||
|
apt-get update && apt-get install --no-install-recommends -y wget \
|
||||||
|
# Install Oracle Instantclient
|
||||||
|
&& mkdir /opt/oracle \
|
||||||
|
&& cd /opt/oracle \
|
||||||
|
&& wget https://github.com/diogomascarenha/oracle-instantclient/raw/master/instantclient-basic-linux.x64-12.1.0.2.0.zip \
|
||||||
|
&& wget https://github.com/diogomascarenha/oracle-instantclient/raw/master/instantclient-sdk-linux.x64-12.1.0.2.0.zip \
|
||||||
|
&& unzip /opt/oracle/instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle \
|
||||||
|
&& unzip /opt/oracle/instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle \
|
||||||
|
&& ln -s /opt/oracle/instantclient_12_1/libclntsh.so.12.1 /opt/oracle/instantclient_12_1/libclntsh.so \
|
||||||
|
&& ln -s /opt/oracle/instantclient_12_1/libclntshcore.so.12.1 /opt/oracle/instantclient_12_1/libclntshcore.so \
|
||||||
|
&& ln -s /opt/oracle/instantclient_12_1/libocci.so.12.1 /opt/oracle/instantclient_12_1/libocci.so \
|
||||||
|
&& rm -rf /opt/oracle/*.zip \
|
||||||
|
# Install PHP extensions deps
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install --no-install-recommends -y \
|
||||||
|
libaio-dev \
|
||||||
|
freetds-dev && \
|
||||||
|
# Install PHP extensions
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
|
echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.0.10; \
|
||||||
|
else \
|
||||||
|
echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8; \
|
||||||
|
fi \
|
||||||
|
&& docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/opt/oracle/instantclient_12_1,12.1 \
|
||||||
|
&& docker-php-ext-configure pdo_dblib --with-libdir=/lib/x86_64-linux-gnu \
|
||||||
|
&& docker-php-ext-install \
|
||||||
|
pdo_oci \
|
||||||
|
&& docker-php-ext-enable \
|
||||||
|
oci8 \
|
||||||
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# IonCube Loader:
|
# IonCube Loader:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -591,6 +662,16 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
|||||||
docker-php-ext-enable imagick \
|
docker-php-ext-enable imagick \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# SMB:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ARG INSTALL_SMB=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_SMB} = true ]; then \
|
||||||
|
apt-get install -y smbclient php-smbclient coreutils \
|
||||||
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# IMAP:
|
# IMAP:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -682,6 +763,17 @@ RUN if [ ${INSTALL_RDKAFKA} = true ]; then \
|
|||||||
docker-php-ext-enable rdkafka \
|
docker-php-ext-enable rdkafka \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# GETTEXT:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ARG INSTALL_GETTEXT=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_GETTEXT} = true ]; then \
|
||||||
|
apt-get install -y zlib1g-dev libicu-dev g++ libpq-dev libssl-dev gettext && \
|
||||||
|
docker-php-ext-install gettext \
|
||||||
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Install additional locales:
|
# Install additional locales:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -820,6 +912,10 @@ RUN if [ ${INSTALL_FAKETIME} = true ]; then \
|
|||||||
echo "/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1" > /etc/ld.so.preload \
|
echo "/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1" > /etc/ld.so.preload \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Configure locale.
|
||||||
|
ARG LOCALE=POSIX
|
||||||
|
ENV LC_ALL ${LOCALE}
|
||||||
|
|
||||||
WORKDIR /var/www
|
WORKDIR /var/www
|
||||||
|
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
1918
php-fpm/php7.4.ini
Normal file
1918
php-fpm/php7.4.ini
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
[xhprof]
|
[xhprof]
|
||||||
; extension=xhprof.so
|
; extension=xhprof.so
|
||||||
extension=tideways.so
|
extension=tideways_xhprof.so
|
||||||
xhprof.output_dir=/var/www/xhprof
|
xhprof.output_dir=/var/www/xhprof
|
||||||
; no need to autoload, control in the program
|
; no need to autoload, control in the program
|
||||||
tideways.auto_prepend_library=0
|
tideways.auto_prepend_library=0
|
||||||
|
@ -101,7 +101,11 @@ RUN if [ ${INSTALL_AMQP} = true ]; then \
|
|||||||
ARG INSTALL_GEARMAN=false
|
ARG INSTALL_GEARMAN=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_GEARMAN} = true ]; then \
|
RUN if [ ${INSTALL_GEARMAN} = true ]; then \
|
||||||
docker-php-ext-install gearman \
|
sed -i "\$ahttp://dl-cdn.alpinelinux.org/alpine/edge/main" /etc/apk/repositories && \
|
||||||
|
sed -i "\$ahttp://dl-cdn.alpinelinux.org/alpine/edge/community" /etc/apk/repositories && \
|
||||||
|
sed -i "\$ahttp://dl-cdn.alpinelinux.org/alpine/edge/testing" /etc/apk/repositories && \
|
||||||
|
apk --update add php7-gearman && \
|
||||||
|
sh -c 'echo "extension=/usr/lib/php7/modules/gearman.so" > /usr/local/etc/php/conf.d/gearman.ini' \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
# Install Cassandra drivers:
|
# Install Cassandra drivers:
|
||||||
@ -138,6 +142,7 @@ RUN if [ $INSTALL_PHALCON = true ]; then \
|
|||||||
&& rm -rf /tmp/cphalcon* \
|
&& rm -rf /tmp/cphalcon* \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
ARG INSTALL_GHOSTSCRIPT=false
|
||||||
RUN if [ $INSTALL_GHOSTSCRIPT = true ]; then \
|
RUN if [ $INSTALL_GHOSTSCRIPT = true ]; then \
|
||||||
apk --update add ghostscript \
|
apk --update add ghostscript \
|
||||||
;fi
|
;fi
|
||||||
|
@ -23,6 +23,16 @@ ARG LARADOCK_PHP_VERSION
|
|||||||
# Set Environment Variables
|
# Set Environment Variables
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
|
||||||
|
|
||||||
|
ARG CHANGE_SOURCE=false
|
||||||
|
RUN if [ ${CHANGE_SOURCE} = true ]; then \
|
||||||
|
# Change application source from deb.debian.org to aliyun source
|
||||||
|
sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && \
|
||||||
|
sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && \
|
||||||
|
sed -i 's/security-cdn.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list \
|
||||||
|
;fi
|
||||||
|
|
||||||
# Start as root
|
# Start as root
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
@ -36,6 +46,15 @@ ENV PUID ${PUID}
|
|||||||
ARG PGID=1000
|
ARG PGID=1000
|
||||||
ENV PGID ${PGID}
|
ENV PGID ${PGID}
|
||||||
|
|
||||||
|
ARG CHANGE_SOURCE=false
|
||||||
|
ARG UBUNTU_SOURCE
|
||||||
|
COPY ./sources.sh /tmp/sources.sh
|
||||||
|
|
||||||
|
RUN if [ ${CHANGE_SOURCE} = true ]; then \
|
||||||
|
/bin/sh -c /tmp/sources.sh && \
|
||||||
|
rm -rf /tmp/sources.sh \
|
||||||
|
;fi
|
||||||
|
|
||||||
# always run apt update when start and after add new source list, then clean up at end.
|
# always run apt update when start and after add new source list, then clean up at end.
|
||||||
RUN set -xe; \
|
RUN set -xe; \
|
||||||
apt-get update -yqq && \
|
apt-get update -yqq && \
|
||||||
@ -279,6 +298,16 @@ RUN if [ ${INSTALL_LDAP} = true ]; then \
|
|||||||
apt-get install -y php${LARADOCK_PHP_VERSION}-ldap \
|
apt-get install -y php${LARADOCK_PHP_VERSION}-ldap \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# SMB:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ARG INSTALL_SMB=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_SMB} = true ]; then \
|
||||||
|
apt-get install -y smbclient php-smbclient coreutils \
|
||||||
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# IMAP:
|
# IMAP:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -323,6 +352,25 @@ RUN sed -i "s/xdebug.remote_autostart=0/xdebug.remote_autostart=1/" /etc/php/${L
|
|||||||
sed -i "s/xdebug.remote_enable=0/xdebug.remote_enable=1/" /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/xdebug.ini && \
|
sed -i "s/xdebug.remote_enable=0/xdebug.remote_enable=1/" /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/xdebug.ini && \
|
||||||
sed -i "s/xdebug.cli_color=0/xdebug.cli_color=1/" /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/xdebug.ini
|
sed -i "s/xdebug.cli_color=0/xdebug.cli_color=1/" /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/xdebug.ini
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# pcov:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
|
ARG INSTALL_PCOV=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_PCOV} = true ]; then \
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \
|
||||||
|
if [ $(php -r "echo PHP_MINOR_VERSION;") != "0" ]; then \
|
||||||
|
pecl install pcov && \
|
||||||
|
echo "extension=pcov.so" >> /etc/php/${LARADOCK_PHP_VERSION}/cli/php.ini && \
|
||||||
|
echo "pcov.enabled" >> /etc/php/${LARADOCK_PHP_VERSION}/cli/php.ini \
|
||||||
|
;fi \
|
||||||
|
;fi \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Phpdbg:
|
# Phpdbg:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -520,6 +568,21 @@ RUN if [ ${INSTALL_INOTIFY} = true ]; then \
|
|||||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-inotify.ini \
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-inotify.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# AST EXTENSION
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ARG INSTALL_AST=false
|
||||||
|
ARG AST_VERSION=1.0.3
|
||||||
|
ENV AST_VERSION ${AST_VERSION}
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_AST} = true ]; then \
|
||||||
|
# Install AST extension
|
||||||
|
printf "\n" | pecl -q install ast-${AST_VERSION} && \
|
||||||
|
echo "extension=ast.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/ast.ini && \
|
||||||
|
phpenmod -v ${LARADOCK_PHP_VERSION} -s cli ast \
|
||||||
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# fswatch
|
# fswatch
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -580,6 +643,8 @@ ARG INSTALL_NPM_ANGULAR_CLI=false
|
|||||||
ARG NPM_REGISTRY
|
ARG NPM_REGISTRY
|
||||||
ENV NPM_REGISTRY ${NPM_REGISTRY}
|
ENV NPM_REGISTRY ${NPM_REGISTRY}
|
||||||
ENV NVM_DIR /home/laradock/.nvm
|
ENV NVM_DIR /home/laradock/.nvm
|
||||||
|
ARG NVM_NODEJS_ORG_MIRROR
|
||||||
|
ENV NVM_NODEJS_ORG_MIRROR ${NVM_NODEJS_ORG_MIRROR}
|
||||||
|
|
||||||
RUN if [ ${INSTALL_NODE} = true ]; then \
|
RUN if [ ${INSTALL_NODE} = true ]; then \
|
||||||
# Install nvm (A Node Version Manager)
|
# Install nvm (A Node Version Manager)
|
||||||
@ -720,6 +785,47 @@ RUN set -xe; \
|
|||||||
&& echo 'aerospike.udf.lua_user_path=/usr/local/aerospike/usr-lua' >> /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/aerospike.ini \
|
&& echo 'aerospike.udf.lua_user_path=/usr/local/aerospike/usr-lua' >> /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/aerospike.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# PHP OCI8:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_OCI8=false
|
||||||
|
|
||||||
|
ENV LD_LIBRARY_PATH="/opt/oracle/instantclient_12_1"
|
||||||
|
ENV OCI_HOME="/opt/oracle/instantclient_12_1"
|
||||||
|
ENV OCI_LIB_DIR="/opt/oracle/instantclient_12_1"
|
||||||
|
ENV OCI_INCLUDE_DIR="/opt/oracle/instantclient_12_1/sdk/include"
|
||||||
|
ENV OCI_VERSION=12
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_OCI8} = true ]; then \
|
||||||
|
# Install wget
|
||||||
|
apt-get update && apt-get install --no-install-recommends -y wget \
|
||||||
|
# Install Oracle Instantclient
|
||||||
|
&& mkdir /opt/oracle \
|
||||||
|
&& cd /opt/oracle \
|
||||||
|
&& wget https://github.com/diogomascarenha/oracle-instantclient/raw/master/instantclient-basic-linux.x64-12.1.0.2.0.zip \
|
||||||
|
&& wget https://github.com/diogomascarenha/oracle-instantclient/raw/master/instantclient-sdk-linux.x64-12.1.0.2.0.zip \
|
||||||
|
&& unzip /opt/oracle/instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle \
|
||||||
|
&& unzip /opt/oracle/instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle \
|
||||||
|
&& ln -s /opt/oracle/instantclient_12_1/libclntsh.so.12.1 /opt/oracle/instantclient_12_1/libclntsh.so \
|
||||||
|
&& ln -s /opt/oracle/instantclient_12_1/libclntshcore.so.12.1 /opt/oracle/instantclient_12_1/libclntshcore.so \
|
||||||
|
&& ln -s /opt/oracle/instantclient_12_1/libocci.so.12.1 /opt/oracle/instantclient_12_1/libocci.so \
|
||||||
|
&& rm -rf /opt/oracle/*.zip \
|
||||||
|
# Install PHP extensions deps
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install --no-install-recommends -y \
|
||||||
|
libaio-dev && \
|
||||||
|
# Install PHP extensions
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
|
echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.0.10; \
|
||||||
|
else \
|
||||||
|
echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8; \
|
||||||
|
fi \
|
||||||
|
&& echo "extension=oci8.so" >> /etc/php/${LARADOCK_PHP_VERSION}/cli/php.ini \
|
||||||
|
&& php -m | grep -q 'oci8' \
|
||||||
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# PHP V8JS:
|
# PHP V8JS:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
83
workspace/sources.sh
Executable file
83
workspace/sources.sh
Executable file
@ -0,0 +1,83 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -xe;
|
||||||
|
|
||||||
|
if type "tee" 2>/dev/null && [ -n "${UBUNTU_SOURCE}" ]; then
|
||||||
|
SOURCE_PATH="/etc/apt/sources.list"
|
||||||
|
cp ${SOURCE_PATH} ${SOURCE_PATH}.bak && rm -rf ${SOURCE_PATH}
|
||||||
|
case "${UBUNTU_SOURCE}" in
|
||||||
|
"aliyun")
|
||||||
|
tee ${SOURCE_PATH} <<-'EOF'
|
||||||
|
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
|
||||||
|
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
|
||||||
|
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
|
||||||
|
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
|
||||||
|
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
"zju")
|
||||||
|
tee ${SOURCE_PATH} <<-'EOF'
|
||||||
|
deb http://mirrors.zju.edu.cn/ubuntu/ bionic main multiverse restricted universe
|
||||||
|
deb http://mirrors.zju.edu.cn/ubuntu/ bionic-backports main multiverse restricted universe
|
||||||
|
deb http://mirrors.zju.edu.cn/ubuntu/ bionic-proposed main multiverse restricted universe
|
||||||
|
deb http://mirrors.zju.edu.cn/ubuntu/ bionic-security main multiverse restricted universe
|
||||||
|
deb http://mirrors.zju.edu.cn/ubuntu/ bionic-updates main multiverse restricted universe
|
||||||
|
deb-src http://mirrors.zju.edu.cn/ubuntu/ bionic main multiverse restricted universe
|
||||||
|
deb-src http://mirrors.zju.edu.cn/ubuntu/ bionic-backports main multiverse restricted universe
|
||||||
|
deb-src http://mirrors.zju.edu.cn/ubuntu/ bionic-proposed main multiverse restricted universe
|
||||||
|
deb-src http://mirrors.zju.edu.cn/ubuntu/ bionic-security main multiverse restricted universe
|
||||||
|
deb-src http://mirrors.zju.edu.cn/ubuntu/ bionic-updates main multiverse restricted universe
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
"tsinghua")
|
||||||
|
tee ${SOURCE_PATH} <<-'EOF'
|
||||||
|
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
|
||||||
|
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
|
||||||
|
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
|
||||||
|
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
|
||||||
|
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
|
||||||
|
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
|
||||||
|
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
|
||||||
|
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
|
||||||
|
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
|
||||||
|
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
"163")
|
||||||
|
tee ${SOURCE_PATH} <<-'EOF'
|
||||||
|
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
|
||||||
|
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
|
||||||
|
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
|
||||||
|
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
|
||||||
|
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
"ustc")
|
||||||
|
tee ${SOURCE_PATH} <<-'EOF'
|
||||||
|
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
|
||||||
|
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
|
||||||
|
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
|
||||||
|
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
|
||||||
|
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
|
||||||
|
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
|
||||||
|
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
|
||||||
|
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
|
||||||
|
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
|
||||||
|
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Please check whether there is aliyun|zju|tsinghua|163|ustc in the parameter"
|
||||||
|
exit 1;;
|
||||||
|
esac
|
||||||
|
fi
|
Reference in New Issue
Block a user