commit
5265515803
@ -183,6 +183,7 @@ WORKSPACE_INSTALL_YAML=false
|
|||||||
WORKSPACE_INSTALL_RDKAFKA=false
|
WORKSPACE_INSTALL_RDKAFKA=false
|
||||||
WORKSPACE_INSTALL_MAILPARSE=false
|
WORKSPACE_INSTALL_MAILPARSE=false
|
||||||
WORKSPACE_INSTALL_XMLRPC=false
|
WORKSPACE_INSTALL_XMLRPC=false
|
||||||
|
WORKSPACE_INSTALL_APCU=false
|
||||||
WORKSPACE_PUID=1000
|
WORKSPACE_PUID=1000
|
||||||
WORKSPACE_PGID=1000
|
WORKSPACE_PGID=1000
|
||||||
WORKSPACE_CHROME_DRIVER_VERSION=2.42
|
WORKSPACE_CHROME_DRIVER_VERSION=2.42
|
||||||
@ -316,6 +317,7 @@ PHP_WORKER_INSTALL_MEMCACHED=false
|
|||||||
PHP_WORKER_INSTALL_OCI8=false
|
PHP_WORKER_INSTALL_OCI8=false
|
||||||
PHP_WORKER_INSTALL_MSSQL=false
|
PHP_WORKER_INSTALL_MSSQL=false
|
||||||
PHP_WORKER_INSTALL_PHALCON=false
|
PHP_WORKER_INSTALL_PHALCON=false
|
||||||
|
PHP_WORKER_INSTALL_APCU=false
|
||||||
PHP_WORKER_INSTALL_SOAP=false
|
PHP_WORKER_INSTALL_SOAP=false
|
||||||
PHP_WORKER_INSTALL_ZIP_ARCHIVE=false
|
PHP_WORKER_INSTALL_ZIP_ARCHIVE=false
|
||||||
PHP_WORKER_INSTALL_MYSQL_CLIENT=false
|
PHP_WORKER_INSTALL_MYSQL_CLIENT=false
|
||||||
@ -460,6 +462,7 @@ MARIADB_ENTRYPOINT_INITDB=./mariadb/docker-entrypoint-initdb.d
|
|||||||
### POSTGRES ##############################################
|
### POSTGRES ##############################################
|
||||||
|
|
||||||
POSTGRES_VERSION=alpine
|
POSTGRES_VERSION=alpine
|
||||||
|
POSTGRES_CLIENT_VERSION=15
|
||||||
POSTGRES_DB=default
|
POSTGRES_DB=default
|
||||||
POSTGRES_USER=default
|
POSTGRES_USER=default
|
||||||
POSTGRES_PASSWORD=secret
|
POSTGRES_PASSWORD=secret
|
||||||
|
10
.github/workflows/main-ci.yml
vendored
10
.github/workflows/main-ci.yml
vendored
@ -48,10 +48,10 @@ jobs:
|
|||||||
sed -i -- 's/ENCHANT=true/ENCHANT=false/g' .env
|
sed -i -- 's/ENCHANT=true/ENCHANT=false/g' .env
|
||||||
sed -i -- 's/PG_CLIENT=true/PG_CLIENT=false/g' .env
|
sed -i -- 's/PG_CLIENT=true/PG_CLIENT=false/g' .env
|
||||||
sed -i -- 's/MSSQL=true/MSSQL=false/g' .env
|
sed -i -- 's/MSSQL=true/MSSQL=false/g' .env
|
||||||
docker-compose build ${{ matrix.service }}
|
docker compose build ${{ matrix.service }}
|
||||||
docker-compose up -d --no-deps -- ${{ matrix.service }}
|
docker compose up -d --no-deps -- ${{ matrix.service }}
|
||||||
docker-compose exec -T -- ${{ matrix.service }} php -m
|
docker compose exec -T -- ${{ matrix.service }} php -m
|
||||||
docker-compose down
|
docker compose down
|
||||||
|
|
||||||
build-other:
|
build-other:
|
||||||
# Don't trigger on schedule event when in a fork
|
# Don't trigger on schedule event when in a fork
|
||||||
@ -68,4 +68,4 @@ jobs:
|
|||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
sed -i -- 's/=false/=true/g' .env
|
sed -i -- 's/=false/=true/g' .env
|
||||||
sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env
|
sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env
|
||||||
docker-compose build ${{ matrix.service }}
|
docker compose build ${{ matrix.service }}
|
||||||
|
@ -7,7 +7,7 @@ weight: 2
|
|||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- [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-desktop/) [ >= 19.03.0 ]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -148,12 +148,12 @@ If you use Chrome 63 or above for development, don't use `.dev`. [Why?](https://
|
|||||||
|
|
||||||
If you are using **Docker Toolbox** (VM), do one of the following:
|
If you are using **Docker Toolbox** (VM), do one of the following:
|
||||||
|
|
||||||
- Upgrade to Docker [Native](https://www.docker.com/products/docker) for Mac/Windows (Recommended). Check out [Upgrading Laradock](/documentation/#upgrading-laradock)
|
- Upgrade to [Docker Desktop](https://www.docker.com/products/docker-desktop/) for Mac/Windows (Recommended). Check out [Upgrading Laradock](/documentation/#upgrading-laradock)
|
||||||
- Use Laradock v3.\*. Visit the [Laradock-ToolBox](https://github.com/laradock/laradock/tree/LaraDock-ToolBox) branch. *(outdated)*
|
- Use Laradock v3.\*. Visit the [Laradock-ToolBox](https://github.com/laradock/laradock/tree/LaraDock-ToolBox) branch. *(outdated)*
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
We recommend using a Docker version which is newer than 1.13.
|
We recommend using a Docker Engine version which is newer than 19.03.0.
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ Homestead 是一个工具,为你控制虚拟机(使用 Homestead 特殊命令)
|
|||||||
## 依赖
|
## 依赖
|
||||||
|
|
||||||
- [Git](https://git-scm.com/downloads)
|
- [Git](https://git-scm.com/downloads)
|
||||||
- [Docker](https://www.docker.com/products/docker/)
|
- [Docker](https://www.docker.com/products/docker-desktop/)
|
||||||
|
|
||||||
<a name="Installation"></a>
|
<a name="Installation"></a>
|
||||||
## 安装
|
## 安装
|
||||||
@ -205,9 +205,9 @@ git clone https://github.com/laradock/laradock.git
|
|||||||
|
|
||||||
**请在开始之前阅读:**
|
**请在开始之前阅读:**
|
||||||
如果你正在使用 **Docker Toolbox** (VM),选择以下任何一个方法:
|
如果你正在使用 **Docker Toolbox** (VM),选择以下任何一个方法:
|
||||||
- 更新到 Docker [Native](https://www.docker.com/products/docker) Mac/Windows 版本 (建议). 查看 [Upgrading Laradock](#upgrading-laradock)
|
- 更新到 [Docker Desktop](https://www.docker.com/products/docker-desktop/) Mac/Windows 版本 (建议). 查看 [Upgrading Laradock](#upgrading-laradock)
|
||||||
- 使用 Laradock v3.* (访问 `Laradock-ToolBox` [分支](https://github.com/laradock/laradock/tree/Laradock-ToolBox)).
|
- 使用 Laradock v3.* (访问 `Laradock-ToolBox` [分支](https://github.com/laradock/laradock/tree/Laradock-ToolBox)).
|
||||||
如果您使用的是 **Docker Native**(Mac / Windows 版本)甚至是 Linux 版本,通常可以继续阅读这个文档,Laradock v4 以上版本将仅支持 **Docker Native**。
|
如果您使用的是 **Docker Desktop**(Mac / Windows 版本)甚至是 Linux 版本,通常可以继续阅读这个文档,Laradock v4 以上版本将仅支持 **Docker Desktop**。
|
||||||
|
|
||||||
1 - 运行容器: *(在运行 `docker-compose` 命令之前,确认你在 `laradock` 目录中*
|
1 - 运行容器: *(在运行 `docker-compose` 命令之前,确认你在 `laradock` 目录中*
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
version: '3.5'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
version: '3.5'
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
driver: ${NETWORKS_DRIVER}
|
driver: ${NETWORKS_DRIVER}
|
||||||
@ -130,12 +128,14 @@ services:
|
|||||||
- INSTALL_TERRAFORM=${WORKSPACE_INSTALL_TERRAFORM}
|
- INSTALL_TERRAFORM=${WORKSPACE_INSTALL_TERRAFORM}
|
||||||
- INSTALL_DUSK_DEPS=${WORKSPACE_INSTALL_DUSK_DEPS}
|
- INSTALL_DUSK_DEPS=${WORKSPACE_INSTALL_DUSK_DEPS}
|
||||||
- INSTALL_PG_CLIENT=${WORKSPACE_INSTALL_PG_CLIENT}
|
- INSTALL_PG_CLIENT=${WORKSPACE_INSTALL_PG_CLIENT}
|
||||||
|
- PG_CLIENT_VERSION=${POSTGRES_CLIENT_VERSION}
|
||||||
- INSTALL_PHALCON=${WORKSPACE_INSTALL_PHALCON}
|
- INSTALL_PHALCON=${WORKSPACE_INSTALL_PHALCON}
|
||||||
- INSTALL_SWOOLE=${WORKSPACE_INSTALL_SWOOLE}
|
- INSTALL_SWOOLE=${WORKSPACE_INSTALL_SWOOLE}
|
||||||
- INSTALL_TAINT=${WORKSPACE_INSTALL_TAINT}
|
- INSTALL_TAINT=${WORKSPACE_INSTALL_TAINT}
|
||||||
- INSTALL_LIBPNG=${WORKSPACE_INSTALL_LIBPNG}
|
- INSTALL_LIBPNG=${WORKSPACE_INSTALL_LIBPNG}
|
||||||
- INSTALL_GRAPHVIZ=${WORKSPACE_INSTALL_GRAPHVIZ}
|
- INSTALL_GRAPHVIZ=${WORKSPACE_INSTALL_GRAPHVIZ}
|
||||||
- INSTALL_IONCUBE=${WORKSPACE_INSTALL_IONCUBE}
|
- INSTALL_IONCUBE=${WORKSPACE_INSTALL_IONCUBE}
|
||||||
|
- INSTALL_APCU=${WORKSPACE_INSTALL_APCU}
|
||||||
- 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}
|
||||||
@ -246,6 +246,7 @@ services:
|
|||||||
- 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}
|
||||||
|
- PG_CLIENT_VERSION=${POSTGRES_CLIENT_VERSION}
|
||||||
- INSTALL_POSTGIS=${PHP_FPM_INSTALL_POSTGIS}
|
- INSTALL_POSTGIS=${PHP_FPM_INSTALL_POSTGIS}
|
||||||
- INSTALL_INTL=${PHP_FPM_INSTALL_INTL}
|
- INSTALL_INTL=${PHP_FPM_INSTALL_INTL}
|
||||||
- INSTALL_GHOSTSCRIPT=${PHP_FPM_INSTALL_GHOSTSCRIPT}
|
- INSTALL_GHOSTSCRIPT=${PHP_FPM_INSTALL_GHOSTSCRIPT}
|
||||||
@ -339,6 +340,7 @@ services:
|
|||||||
- INSTALL_OCI8=${PHP_WORKER_INSTALL_OCI8}
|
- INSTALL_OCI8=${PHP_WORKER_INSTALL_OCI8}
|
||||||
- INSTALL_MSSQL=${PHP_WORKER_INSTALL_MSSQL}
|
- INSTALL_MSSQL=${PHP_WORKER_INSTALL_MSSQL}
|
||||||
- INSTALL_PHALCON=${PHP_WORKER_INSTALL_PHALCON}
|
- INSTALL_PHALCON=${PHP_WORKER_INSTALL_PHALCON}
|
||||||
|
- INSTALL_APCU=${PHP_WORKER_INSTALL_APCU}
|
||||||
- INSTALL_XLSWRITER=${PHP_WORKER_INSTALL_XLSWRITER}
|
- INSTALL_XLSWRITER=${PHP_WORKER_INSTALL_XLSWRITER}
|
||||||
- INSTALL_SOAP=${PHP_WORKER_INSTALL_SOAP}
|
- INSTALL_SOAP=${PHP_WORKER_INSTALL_SOAP}
|
||||||
- INSTALL_ZIP_ARCHIVE=${PHP_WORKER_INSTALL_ZIP_ARCHIVE}
|
- INSTALL_ZIP_ARCHIVE=${PHP_WORKER_INSTALL_ZIP_ARCHIVE}
|
||||||
@ -597,7 +599,7 @@ services:
|
|||||||
- no_proxy
|
- no_proxy
|
||||||
- MARIADB_VERSION=${MARIADB_VERSION}
|
- MARIADB_VERSION=${MARIADB_VERSION}
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_PATH_HOST}/mariadb:/var/lib/mysql
|
- ${DATA_PATH_HOST}/mariadb:/var/lib/mariadb
|
||||||
- ${MARIADB_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
|
- ${MARIADB_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
|
||||||
ports:
|
ports:
|
||||||
- "${MARIADB_PORT}:3306"
|
- "${MARIADB_PORT}:3306"
|
||||||
|
@ -37,12 +37,13 @@ RUN apk --update add wget \
|
|||||||
procps
|
procps
|
||||||
|
|
||||||
RUN pecl channel-update pecl.php.net; \
|
RUN pecl channel-update pecl.php.net; \
|
||||||
docker-php-ext-install mysqli mbstring pdo pdo_mysql xml pcntl; \
|
docker-php-ext-install mysqli mbstring pdo pdo_mysql xml pcntl; \
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "1" ]; then \
|
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "80100" ] || \
|
||||||
php -m | grep -q 'tokenizer'; \
|
[ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "80200" ]; then \
|
||||||
else \
|
php -m | grep -oiE '^tokenizer$'; \
|
||||||
docker-php-ext-install tokenizer; \
|
else \
|
||||||
fi
|
docker-php-ext-install tokenizer; \
|
||||||
|
fi
|
||||||
|
|
||||||
# Add a non-root user to help install ffmpeg:
|
# Add a non-root user to help install ffmpeg:
|
||||||
ARG PUID=1000
|
ARG PUID=1000
|
||||||
|
@ -7,6 +7,4 @@ RUN curl -L -o /usr/share/logstash/lib/mysql-connector-java-5.1.47.jar https://r
|
|||||||
ADD ./pipeline/ /usr/share/logstash/pipeline/
|
ADD ./pipeline/ /usr/share/logstash/pipeline/
|
||||||
ADD ./config/ /usr/share/logstash/config/
|
ADD ./config/ /usr/share/logstash/config/
|
||||||
|
|
||||||
RUN logstash-plugin install logstash-input-jdbc
|
|
||||||
RUN logstash-plugin install logstash-input-beats
|
RUN logstash-plugin install logstash-input-beats
|
||||||
|
|
||||||
|
@ -193,6 +193,7 @@ RUN if [ ${INSTALL_PGSQL} = true ]; then \
|
|||||||
|
|
||||||
ARG INSTALL_PG_CLIENT=false
|
ARG INSTALL_PG_CLIENT=false
|
||||||
ARG INSTALL_POSTGIS=false
|
ARG INSTALL_POSTGIS=false
|
||||||
|
ARG PG_CLIENT_VERSION
|
||||||
|
|
||||||
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
|
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
|
||||||
apt-get install -yqq gnupg \
|
apt-get install -yqq gnupg \
|
||||||
@ -200,7 +201,7 @@ RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
|
|||||||
&& echo "deb http://apt.postgresql.org/pub/repos/apt $VERSION_CODENAME-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
|
&& echo "deb http://apt.postgresql.org/pub/repos/apt $VERSION_CODENAME-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
|
||||||
&& curl -sL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
|
&& curl -sL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
|
||||||
&& apt-get update -yqq \
|
&& apt-get update -yqq \
|
||||||
&& apt-get install -yqq postgresql-client-12 postgis; \
|
&& apt-get install -yqq postgresql-client-${PG_CLIENT_VERSION} postgis; \
|
||||||
if [ ${INSTALL_POSTGIS} = true ]; then \
|
if [ ${INSTALL_POSTGIS} = true ]; then \
|
||||||
apt-get install -yqq postgis; \
|
apt-get install -yqq postgis; \
|
||||||
fi \
|
fi \
|
||||||
@ -1089,9 +1090,9 @@ ARG INSTALL_CACHETOOL=false
|
|||||||
|
|
||||||
RUN if [ ${INSTALL_CACHETOOL} = true ]; then \
|
RUN if [ ${INSTALL_CACHETOOL} = true ]; then \
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") -ge 1 ]; then \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") -ge 1 ]; then \
|
||||||
curl -sO http://gordalina.github.io/cachetool/downloads/cachetool.phar; \
|
curl -sO https://gordalina.github.io/cachetool/downloads/cachetool.phar; \
|
||||||
else \
|
else \
|
||||||
curl http://gordalina.github.io/cachetool/downloads/cachetool-3.2.1.phar -o cachetool.phar; \
|
curl https://gordalina.github.io/cachetool/downloads/cachetool-3.2.1.phar -o cachetool.phar; \
|
||||||
fi && \
|
fi && \
|
||||||
chmod +x cachetool.phar && \
|
chmod +x cachetool.phar && \
|
||||||
mv cachetool.phar /usr/local/bin/cachetool \
|
mv cachetool.phar /usr/local/bin/cachetool \
|
||||||
|
@ -327,6 +327,18 @@ RUN if [ $INSTALL_PHALCON = true ]; then \
|
|||||||
php -m | grep -q 'phalcon' \
|
php -m | grep -q 'phalcon' \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Install APCU ext
|
||||||
|
ARG INSTALL_APCU=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_APCU} = true ]; then \
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
|
pecl install -a apcu-4.0.11; \
|
||||||
|
else \
|
||||||
|
pecl install apcu; \
|
||||||
|
fi && \
|
||||||
|
docker-php-ext-enable apcu \
|
||||||
|
;fi
|
||||||
|
|
||||||
ARG INSTALL_GHOSTSCRIPT=false
|
ARG INSTALL_GHOSTSCRIPT=false
|
||||||
RUN if [ $INSTALL_GHOSTSCRIPT = true ]; then \
|
RUN if [ $INSTALL_GHOSTSCRIPT = true ]; then \
|
||||||
apk --update add ghostscript \
|
apk --update add ghostscript \
|
||||||
|
1126
react/package-lock.json
generated
1126
react/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -12,7 +12,7 @@
|
|||||||
"axios": "^0.21.2",
|
"axios": "^0.21.2",
|
||||||
"bootstrap": "^4.5.3",
|
"bootstrap": "^4.5.3",
|
||||||
"jss-rtl": "^0.3.0",
|
"jss-rtl": "^0.3.0",
|
||||||
"node-sass": "^7.0.0",
|
"node-sass": "^7.0.3",
|
||||||
"prop-types": "^15.7.2",
|
"prop-types": "^15.7.2",
|
||||||
"react": "^17.0.1",
|
"react": "^17.0.1",
|
||||||
"react-bootstrap": "^1.4.0",
|
"react-bootstrap": "^1.4.0",
|
||||||
|
@ -526,7 +526,11 @@ ARG INSTALL_GEARMAN=false
|
|||||||
RUN if [ ${INSTALL_GEARMAN} = true ]; then \
|
RUN if [ ${INSTALL_GEARMAN} = true ]; then \
|
||||||
add-apt-repository -y ppa:ondrej/pkg-gearman && \
|
add-apt-repository -y ppa:ondrej/pkg-gearman && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get -yqq install php-gearman \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \
|
||||||
|
apt-get install php${LARADOCK_PHP_VERSION}-gearman -y \
|
||||||
|
; else \
|
||||||
|
apt-get install php-gearman -y \
|
||||||
|
;fi \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -741,6 +745,7 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
|
|||||||
&& nvm install ${NODE_VERSION} \
|
&& nvm install ${NODE_VERSION} \
|
||||||
&& nvm use ${NODE_VERSION} \
|
&& nvm use ${NODE_VERSION} \
|
||||||
&& nvm alias ${NODE_VERSION} \
|
&& nvm alias ${NODE_VERSION} \
|
||||||
|
&& npm cache clear --force \
|
||||||
&& npm config set fetch-retries ${NPM_FETCH_RETRIES} \
|
&& npm config set fetch-retries ${NPM_FETCH_RETRIES} \
|
||||||
&& npm config set fetch-retry-factor ${NPM_FETCH_RETRY_FACTOR} \
|
&& npm config set fetch-retry-factor ${NPM_FETCH_RETRY_FACTOR} \
|
||||||
&& npm config set fetch-retry-mintimeout ${NPM_FETCH_RETRY_MINTIMEOUT} \
|
&& npm config set fetch-retry-mintimeout ${NPM_FETCH_RETRY_MINTIMEOUT} \
|
||||||
@ -1284,6 +1289,7 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
|||||||
USER root
|
USER root
|
||||||
|
|
||||||
ARG INSTALL_PG_CLIENT=false
|
ARG INSTALL_PG_CLIENT=false
|
||||||
|
ARG PG_CLIENT_VERSION
|
||||||
|
|
||||||
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
|
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
|
||||||
# Install the pgsql client
|
# Install the pgsql client
|
||||||
@ -1291,7 +1297,7 @@ RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
|
|||||||
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
|
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
|
||||||
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list \
|
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get -y install postgresql-client-12 \
|
&& apt-get -y install postgresql-client-${PG_CLIENT_VERSION} \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -1338,6 +1344,23 @@ RUN if [ $INSTALL_PHALCON = true ]; then \
|
|||||||
php -m | grep -q 'phalcon' \
|
php -m | grep -q 'phalcon' \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# APCU:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ARG INSTALL_APCU=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_APCU} = true ]; then \
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
|
pecl install apcu-4.0.11; \
|
||||||
|
else \
|
||||||
|
pecl install apcu; \
|
||||||
|
fi && \
|
||||||
|
echo "extension=apcu.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/apcu.ini; \
|
||||||
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/apcu.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/50-apcu.ini; \
|
||||||
|
php -m | grep -q 'apcu' \
|
||||||
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user