build: 升级到 8.2

Signed-off-by: 李东云 <dongyu.li@luxcreo.ai>
This commit is contained in:
李东云
2023-10-13 15:06:48 +08:00
parent 64b55e8cfa
commit 7ec79dcc23
7 changed files with 9 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
# @link https://studio.luxcreo.cn/
# @contact dongyun.li@luxcreo.cn
FROM harbor.luxcreo.cn/library/hyperf:8.1-swoole
FROM harbor.luxcreo.cn/library/hyperf:8.2-swoole
LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT" app.name="LuxStudio"
##
@@ -39,7 +39,7 @@ ENV TIMEZONE=${timezone:-"Asia/Shanghai"} \
# 设置时区
RUN set -ex \
# ---------- some config ----------
&& cd /etc/php81 \
&& cd /etc/php82 \
# - config PHP
&& echo "date.timezone=${TIMEZONE}" >> conf.d/99_overrides.ini \
# - config timezone

View File

@@ -21,7 +21,7 @@
},
"pre-push": [
"echo committing as $(git config user.name)",
"docker run --rm -t -v \"$(pwd)\":/srv/www harbor.luxcreo.cn/library/hyperf:8.1-swoole composer ci"
"docker run --rm -t -v \"$(pwd)\":/srv/www harbor.luxcreo.cn/library/hyperf:8.2-swoole composer ci"
]
}
},
@@ -33,7 +33,7 @@
},
"autoload-dev": {
"psr-4": {
"Test\\": "test/"
"Test\\": "tests/"
}
},
"require": {
@@ -47,7 +47,8 @@
"hyperf/translation": "~3.0.37",
"hyperf/validation": "~3.0.37",
"singularity/hdk-core": "^1.0.0",
"symfony/polyfill-php81": "^1.28.0"
"symfony/polyfill-php81": "^1.28.0",
"symfony/polyfill-php82": "^1.28.0"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^2.8.5",
@@ -85,12 +86,12 @@
"test": [
"rm -rf runtime",
"Composer\\Config::disableProcessTimeout",
"APP_STATUS=false co-pest --prepend test/bootstrap.php -c phpunit.xml --colors=always $1"
"APP_STATUS=false co-pest --prepend tests/bootstrap.php -c phpunit.xml --colors=always $1"
],
"cs-fix": "php-cs-fixer fix $1 --rules=@PSR12 --allow-risky=yes",
"analyse": "phpstan analyse $1",
"ci": [
"@analyse app/ config/ test/",
"@analyse app/ config/ tests/",
"@cs-fix",
"@test",
"echo CI Success"

View File

@@ -8,4 +8,4 @@ docker run \
-v "$(pwd)":/srv/www \
-v ~/.ssh:/root/.ssh \
-p $port:9501 \
harbor.luxcreo.cn/library/hyperf:8.1-swoole /bin/ash
harbor.luxcreo.cn/library/hyperf:8.2-swoole /bin/ash