commit
5265515803
@ -183,6 +183,7 @@ WORKSPACE_INSTALL_YAML=false
|
||||
WORKSPACE_INSTALL_RDKAFKA=false
|
||||
WORKSPACE_INSTALL_MAILPARSE=false
|
||||
WORKSPACE_INSTALL_XMLRPC=false
|
||||
WORKSPACE_INSTALL_APCU=false
|
||||
WORKSPACE_PUID=1000
|
||||
WORKSPACE_PGID=1000
|
||||
WORKSPACE_CHROME_DRIVER_VERSION=2.42
|
||||
@ -316,6 +317,7 @@ PHP_WORKER_INSTALL_MEMCACHED=false
|
||||
PHP_WORKER_INSTALL_OCI8=false
|
||||
PHP_WORKER_INSTALL_MSSQL=false
|
||||
PHP_WORKER_INSTALL_PHALCON=false
|
||||
PHP_WORKER_INSTALL_APCU=false
|
||||
PHP_WORKER_INSTALL_SOAP=false
|
||||
PHP_WORKER_INSTALL_ZIP_ARCHIVE=false
|
||||
PHP_WORKER_INSTALL_MYSQL_CLIENT=false
|
||||
@ -460,6 +462,7 @@ MARIADB_ENTRYPOINT_INITDB=./mariadb/docker-entrypoint-initdb.d
|
||||
### POSTGRES ##############################################
|
||||
|
||||
POSTGRES_VERSION=alpine
|
||||
POSTGRES_CLIENT_VERSION=15
|
||||
POSTGRES_DB=default
|
||||
POSTGRES_USER=default
|
||||
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/PG_CLIENT=true/PG_CLIENT=false/g' .env
|
||||
sed -i -- 's/MSSQL=true/MSSQL=false/g' .env
|
||||
docker-compose build ${{ matrix.service }}
|
||||
docker-compose up -d --no-deps -- ${{ matrix.service }}
|
||||
docker-compose exec -T -- ${{ matrix.service }} php -m
|
||||
docker-compose down
|
||||
docker compose build ${{ matrix.service }}
|
||||
docker compose up -d --no-deps -- ${{ matrix.service }}
|
||||
docker compose exec -T -- ${{ matrix.service }} php -m
|
||||
docker compose down
|
||||
|
||||
build-other:
|
||||
# Don't trigger on schedule event when in a fork
|
||||
@ -68,4 +68,4 @@ jobs:
|
||||
cp .env.example .env
|
||||
sed -i -- 's/=false/=true/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
|
||||
|
||||
- [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:
|
||||
|
||||
- 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)*
|
||||
|
||||
<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>
|
||||
|
||||
|
@ -179,7 +179,7 @@ Homestead 是一个工具,为你控制虚拟机(使用 Homestead 特殊命令)
|
||||
## 依赖
|
||||
|
||||
- [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>
|
||||
## 安装
|
||||
@ -205,9 +205,9 @@ git clone https://github.com/laradock/laradock.git
|
||||
|
||||
**请在开始之前阅读:**
|
||||
如果你正在使用 **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)).
|
||||
如果您使用的是 **Docker Native**(Mac / Windows 版本)甚至是 Linux 版本,通常可以继续阅读这个文档,Laradock v4 以上版本将仅支持 **Docker Native**。
|
||||
如果您使用的是 **Docker Desktop**(Mac / Windows 版本)甚至是 Linux 版本,通常可以继续阅读这个文档,Laradock v4 以上版本将仅支持 **Docker Desktop**。
|
||||
|
||||
1 - 运行容器: *(在运行 `docker-compose` 命令之前,确认你在 `laradock` 目录中*
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
version: '3.5'
|
||||
|
||||
services:
|
||||
|
||||
volumes:
|
||||
|
@ -1,5 +1,3 @@
|
||||
version: '3.5'
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
driver: ${NETWORKS_DRIVER}
|
||||
@ -130,12 +128,14 @@ services:
|
||||
- INSTALL_TERRAFORM=${WORKSPACE_INSTALL_TERRAFORM}
|
||||
- INSTALL_DUSK_DEPS=${WORKSPACE_INSTALL_DUSK_DEPS}
|
||||
- INSTALL_PG_CLIENT=${WORKSPACE_INSTALL_PG_CLIENT}
|
||||
- PG_CLIENT_VERSION=${POSTGRES_CLIENT_VERSION}
|
||||
- INSTALL_PHALCON=${WORKSPACE_INSTALL_PHALCON}
|
||||
- INSTALL_SWOOLE=${WORKSPACE_INSTALL_SWOOLE}
|
||||
- INSTALL_TAINT=${WORKSPACE_INSTALL_TAINT}
|
||||
- INSTALL_LIBPNG=${WORKSPACE_INSTALL_LIBPNG}
|
||||
- INSTALL_GRAPHVIZ=${WORKSPACE_INSTALL_GRAPHVIZ}
|
||||
- INSTALL_IONCUBE=${WORKSPACE_INSTALL_IONCUBE}
|
||||
- INSTALL_APCU=${WORKSPACE_INSTALL_APCU}
|
||||
- INSTALL_MYSQL_CLIENT=${WORKSPACE_INSTALL_MYSQL_CLIENT}
|
||||
- INSTALL_PING=${WORKSPACE_INSTALL_PING}
|
||||
- INSTALL_SSHPASS=${WORKSPACE_INSTALL_SSHPASS}
|
||||
@ -246,6 +246,7 @@ services:
|
||||
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
|
||||
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
||||
- INSTALL_PG_CLIENT=${PHP_FPM_INSTALL_PG_CLIENT}
|
||||
- PG_CLIENT_VERSION=${POSTGRES_CLIENT_VERSION}
|
||||
- INSTALL_POSTGIS=${PHP_FPM_INSTALL_POSTGIS}
|
||||
- INSTALL_INTL=${PHP_FPM_INSTALL_INTL}
|
||||
- INSTALL_GHOSTSCRIPT=${PHP_FPM_INSTALL_GHOSTSCRIPT}
|
||||
@ -339,6 +340,7 @@ services:
|
||||
- INSTALL_OCI8=${PHP_WORKER_INSTALL_OCI8}
|
||||
- INSTALL_MSSQL=${PHP_WORKER_INSTALL_MSSQL}
|
||||
- INSTALL_PHALCON=${PHP_WORKER_INSTALL_PHALCON}
|
||||
- INSTALL_APCU=${PHP_WORKER_INSTALL_APCU}
|
||||
- INSTALL_XLSWRITER=${PHP_WORKER_INSTALL_XLSWRITER}
|
||||
- INSTALL_SOAP=${PHP_WORKER_INSTALL_SOAP}
|
||||
- INSTALL_ZIP_ARCHIVE=${PHP_WORKER_INSTALL_ZIP_ARCHIVE}
|
||||
@ -597,7 +599,7 @@ services:
|
||||
- no_proxy
|
||||
- MARIADB_VERSION=${MARIADB_VERSION}
|
||||
volumes:
|
||||
- ${DATA_PATH_HOST}/mariadb:/var/lib/mysql
|
||||
- ${DATA_PATH_HOST}/mariadb:/var/lib/mariadb
|
||||
- ${MARIADB_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
|
||||
ports:
|
||||
- "${MARIADB_PORT}:3306"
|
||||
|
@ -38,8 +38,9 @@ RUN apk --update add wget \
|
||||
|
||||
RUN pecl channel-update pecl.php.net; \
|
||||
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 \
|
||||
php -m | grep -q 'tokenizer'; \
|
||||
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "80100" ] || \
|
||||
[ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "80200" ]; then \
|
||||
php -m | grep -oiE '^tokenizer$'; \
|
||||
else \
|
||||
docker-php-ext-install tokenizer; \
|
||||
fi
|
||||
|
@ -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 ./config/ /usr/share/logstash/config/
|
||||
|
||||
RUN logstash-plugin install logstash-input-jdbc
|
||||
RUN logstash-plugin install logstash-input-beats
|
||||
|
||||
|
@ -193,6 +193,7 @@ RUN if [ ${INSTALL_PGSQL} = true ]; then \
|
||||
|
||||
ARG INSTALL_PG_CLIENT=false
|
||||
ARG INSTALL_POSTGIS=false
|
||||
ARG PG_CLIENT_VERSION
|
||||
|
||||
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
|
||||
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 \
|
||||
&& curl -sL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
|
||||
&& 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 \
|
||||
apt-get install -yqq postgis; \
|
||||
fi \
|
||||
@ -1089,9 +1090,9 @@ ARG INSTALL_CACHETOOL=false
|
||||
|
||||
RUN if [ ${INSTALL_CACHETOOL} = true ]; 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 \
|
||||
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 && \
|
||||
chmod +x cachetool.phar && \
|
||||
mv cachetool.phar /usr/local/bin/cachetool \
|
||||
|
@ -327,6 +327,18 @@ RUN if [ $INSTALL_PHALCON = true ]; then \
|
||||
php -m | grep -q 'phalcon' \
|
||||
;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
|
||||
RUN if [ $INSTALL_GHOSTSCRIPT = true ]; then \
|
||||
apk --update add ghostscript \
|
||||
|
1124
react/package-lock.json
generated
1124
react/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -12,7 +12,7 @@
|
||||
"axios": "^0.21.2",
|
||||
"bootstrap": "^4.5.3",
|
||||
"jss-rtl": "^0.3.0",
|
||||
"node-sass": "^7.0.0",
|
||||
"node-sass": "^7.0.3",
|
||||
"prop-types": "^15.7.2",
|
||||
"react": "^17.0.1",
|
||||
"react-bootstrap": "^1.4.0",
|
||||
|
@ -526,7 +526,11 @@ ARG INSTALL_GEARMAN=false
|
||||
RUN if [ ${INSTALL_GEARMAN} = true ]; then \
|
||||
add-apt-repository -y ppa:ondrej/pkg-gearman && \
|
||||
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
|
||||
|
||||
###########################################################################
|
||||
@ -741,6 +745,7 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
|
||||
&& nvm install ${NODE_VERSION} \
|
||||
&& nvm use ${NODE_VERSION} \
|
||||
&& nvm alias ${NODE_VERSION} \
|
||||
&& npm cache clear --force \
|
||||
&& npm config set fetch-retries ${NPM_FETCH_RETRIES} \
|
||||
&& npm config set fetch-retry-factor ${NPM_FETCH_RETRY_FACTOR} \
|
||||
&& npm config set fetch-retry-mintimeout ${NPM_FETCH_RETRY_MINTIMEOUT} \
|
||||
@ -1284,6 +1289,7 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
||||
USER root
|
||||
|
||||
ARG INSTALL_PG_CLIENT=false
|
||||
ARG PG_CLIENT_VERSION
|
||||
|
||||
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
|
||||
# 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 - \
|
||||
&& 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 -y install postgresql-client-12 \
|
||||
&& apt-get -y install postgresql-client-${PG_CLIENT_VERSION} \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
@ -1338,6 +1344,23 @@ RUN if [ $INSTALL_PHALCON = true ]; then \
|
||||
php -m | grep -q 'phalcon' \
|
||||
;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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user