Compare commits
60 Commits
Author | SHA1 | Date | |
---|---|---|---|
d732318e52 | |||
ccf85148e8 | |||
378900ee38 | |||
e943d90ca2 | |||
d847c1a8c5 | |||
ace85c38d7 | |||
be48366190 | |||
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 | |||
4dc4a4e680 | |||
52bd45e1b8 | |||
3cb43e6139 | |||
b7ede26634 | |||
1f2643f52c | |||
ed92e61818 | |||
ae64a619b7 | |||
ab3a325ea3 | |||
b8a971e634 | |||
4893347980 | |||
f01cab7742 | |||
f64adc2114 | |||
da8f0d0864 | |||
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"
|
||||||
|
@ -1889,7 +1889,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 +2006,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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -59,6 +59,8 @@ 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}
|
||||||
@ -77,6 +79,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}
|
||||||
@ -114,6 +117,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 +128,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}
|
||||||
@ -195,6 +202,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}
|
||||||
@ -266,6 +274,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 +298,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
|
||||||
@ -1617,6 +1626,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
- frontend
|
- frontend
|
||||||
|
|
||||||
### CONFLUENCE ################################################
|
### CONFLUENCE ################################################
|
||||||
confluence:
|
confluence:
|
||||||
container_name: Confluence
|
container_name: Confluence
|
||||||
@ -1630,4 +1640,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
|
||||||
|
|
||||||
|
10
env-example
10
env-example
@ -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=
|
||||||
@ -150,6 +153,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 ###############################################
|
||||||
|
|
||||||
@ -189,6 +194,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
|
||||||
@ -754,6 +760,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 \
|
||||||
@ -50,7 +58,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 \
|
||||||
|
@ -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.
|
||||||
@ -270,9 +274,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 \
|
||||||
@ -682,6 +686,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:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
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
|
||||||
|
@ -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 && \
|
||||||
@ -520,6 +539,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 +614,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)
|
||||||
|
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