Skip to content

Commit

Permalink
chore: 更新个人自定义配置
Browse files Browse the repository at this point in the history
  • Loading branch information
11ze committed Dec 29, 2023
1 parent 78cdd43 commit f6d1ea2
Show file tree
Hide file tree
Showing 14 changed files with 1,408 additions and 336 deletions.
4 changes: 4 additions & 0 deletions docker-compose.11ze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ services:
args:
PHP_VERSION: php:${PHP82_VERSION}-fpm-alpine
CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
COMPOSER_URL: ${COMPOSER_URL}
PHP_EXTENSIONS: ${PHP82_EXTENSIONS}
INSTALL_APPS: ${PHP_INSTALL_APPS}
TZ: '$TZ'
Expand All @@ -69,6 +70,7 @@ services:
# args:
# PHP_VERSION: php:${PHP80_VERSION}-fpm-alpine
# CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
# COMPOSER_URL: ${COMPOSER_URL}
# PHP_EXTENSIONS: ${PHP80_EXTENSIONS}
# INSTALL_APPS: ${PHP_INSTALL_APPS}
# TZ: "$TZ"
Expand All @@ -92,6 +94,7 @@ services:
args:
PHP_VERSION: php:${PHP74_VERSION}-fpm-alpine
CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
COMPOSER_URL: ${COMPOSER_URL}
PHP_EXTENSIONS: ${PHP74_EXTENSIONS}
INSTALL_APPS: ${PHP_INSTALL_APPS}
TZ: '$TZ'
Expand All @@ -115,6 +118,7 @@ services:
args:
PHP_VERSION: php:${PHP73_VERSION}-fpm-alpine
CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
COMPOSER_URL: ${COMPOSER_URL}
PHP_EXTENSIONS: ${PHP73_EXTENSIONS}
INSTALL_APPS: ${PHP_INSTALL_APPS}
TZ: '$TZ'
Expand Down
18 changes: 16 additions & 2 deletions env.11ze
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,25 @@ TZ=Asia/Shanghai
# Can be empty, followings or others:
# mirrors.163.com
# mirrors.aliyun.com
# mirrors.tencent.com
# mirrors.ustc.edu.cn
# dl-cdn.alpinelinux.org
#
CONTAINER_PACKAGE_URL=mirrors.ustc.edu.cn

#
# Composer url
#
# Can be empty, followings or others:
#
# packagist.laravel-china.org
# packagist.phpcomposer.com
# mirrors.aliyun.com
# mirrors.tencent.com
# repo.packagist.org
COMPOSER_URL=mirrors.tencent.com


#
#ALPINE
#
Expand Down Expand Up @@ -256,13 +270,13 @@ MYSQL5_COMMAND=--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode
#
# Redis6
#
REDIS6_VERSION=6.2.14
REDIS6_VERSION=6.2-alpine
REDIS6_CONF_FILE=./services/redis6/redis.conf
REDIS6_HOST_PORT=63796
#
# Redis7
#
REDIS7_VERSION=7.2.3
REDIS7_VERSION=7.2-alpine
REDIS7_CONF_FILE=./services/redis7/redis.conf
REDIS7_HOST_PORT=63797

Expand Down
239 changes: 213 additions & 26 deletions services/php73/extensions/install-php-extensions

Large diffs are not rendered by default.

Empty file added services/php73/from-php
Empty file.
239 changes: 213 additions & 26 deletions services/php74/extensions/install-php-extensions

Large diffs are not rendered by default.

Empty file added services/php74/from-php
Empty file.
8 changes: 5 additions & 3 deletions services/php82/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ FROM ${PHP_VERSION}
ARG TZ
ARG PHP_EXTENSIONS
ARG CONTAINER_PACKAGE_URL

ARG COMPOSER_URL

RUN if [ "${CONTAINER_PACKAGE_URL}" != "" ] ; then sed -i "s/dl-cdn.alpinelinux.org/${CONTAINER_PACKAGE_URL}/g" /etc/apk/repositories ; fi

COPY ./extensions /tmp/extensions
WORKDIR /tmp/extensions

RUN chmod +x install.sh \
&& sh install.sh \
&& rm -rf /tmp/extensions
Expand All @@ -19,7 +20,7 @@ ADD ./extensions/install-php-extensions /usr/local/bin/

RUN chmod uga+x /usr/local/bin/install-php-extensions

RUN apk --no-cache add tzdata libreoffice \
RUN apk --no-cache add tzdata \
# 下面这部分是 wkhtmltopdf 需要的依赖
libstdc++ \
libx11 \
Expand All @@ -35,6 +36,7 @@ RUN apk --no-cache add tzdata libreoffice \
# ttf-dejavu \ # 中文字体,但还是使用下面 front/* 的中文字体
# && rm -rf /var/cache/apk/* \
# 上面这部分是 wkhtmltopdf 需要的依赖
libreoffice \
mysql-client \
&& cp "/usr/share/zoneinfo/$TZ" /etc/localtime \
&& echo "$TZ" > /etc/timezone
Expand All @@ -46,7 +48,7 @@ ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php


# Install composer and change it's cache home
RUN curl -o /usr/bin/composer https://mirrors.aliyun.com/composer/composer.phar \
RUN curl -o /usr/bin/composer https://${COMPOSER_URL}/composer/composer.phar \
&& chmod +x /usr/bin/composer
ENV COMPOSER_HOME=/tmp/composer

Expand Down
Binary file added services/php82/extensions/imagick-3.7.0.tgz
Binary file not shown.
Loading

0 comments on commit f6d1ea2

Please sign in to comment.