feat: 增加 8.3 镜像

This commit is contained in:
李东云
2023-12-04 14:20:38 +08:00
parent 4a1688c829
commit 0bbba57dae
2 changed files with 46 additions and 5 deletions

11
Jenkinsfile vendored
View File

@@ -10,28 +10,31 @@ pipeline {
} }
stage('Build 8.0-swoole') { stage('Build 8.0-swoole') {
steps { steps {
sh 'docker login harbor.luxcreo.cn -u \'robot$library+jenkinsfile\' -p Bw0teIfUhP7WBd1yDp7DTWSbF0d5nVvE'
sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.0-swoole -f swoole/8.0/Dockerfile .' sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.0-swoole -f swoole/8.0/Dockerfile .'
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.0-swoole' sh 'docker push harbor.luxcreo.cn/library/hyperf:8.0-swoole'
} }
} }
stage('Build 8.1-swoole') { stage('Build 8.1-swoole') {
steps { steps {
sh 'docker login harbor.luxcreo.cn -u \'robot$library+jenkinsfile\' -p Bw0teIfUhP7WBd1yDp7DTWSbF0d5nVvE'
sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.1-swoole -f swoole/8.1/Dockerfile .' sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.1-swoole -f swoole/8.1/Dockerfile .'
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.1-swoole' sh 'docker push harbor.luxcreo.cn/library/hyperf:8.1-swoole'
} }
} }
stage('Build 8.2-swoole') { stage('Build 8.2-swoole') {
steps { steps {
sh 'docker login harbor.luxcreo.cn -u \'robot$library+jenkinsfile\' -p Bw0teIfUhP7WBd1yDp7DTWSbF0d5nVvE'
sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.2-swoole -f swoole/8.2/Dockerfile .' sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.2-swoole -f swoole/8.2/Dockerfile .'
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.2-swoole' sh 'docker push harbor.luxcreo.cn/library/hyperf:8.2-swoole'
} }
} }
stage('Build 8.3-swoole') {
steps {
sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.3-swoole -f swoole/8.3/Dockerfile .'
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.3-swoole'
}
}
stage('Build Latest') { stage('Build Latest') {
steps { steps {
sh 'docker tag harbor.luxcreo.cn/library/hyperf:8.2-swoole harbor.luxcreo.cn/library/hyperf:latest' sh 'docker tag harbor.luxcreo.cn/library/hyperf:8.3-swoole harbor.luxcreo.cn/library/hyperf:latest'
sh 'docker push harbor.luxcreo.cn/library/hyperf:latest' sh 'docker push harbor.luxcreo.cn/library/hyperf:latest'
} }
} }

38
swoole/8.3/Dockerfile Normal file
View File

@@ -0,0 +1,38 @@
# Default Dockerfile
#
# @link https://studio.luxcreo.cn/
# @contact dongyun.li@luxcreo.cn
FROM hyperf/hyperf:8.3-alpine-vedge-swoole
LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT" app.name="LuxHyperf"
##
# ---------- env settings ----------
##
# --build-arg timezone=Asia/Shanghai
ENV TIMEZONE=Asia/Shanghai \
SCAN_CACHEABLE=(true) \
COMPOSER_ALLOW_SUPERUSER=1
# update
RUN set -ex \
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
# show php version and extensions
&& php -v \
&& php -m \
&& php --ri swoole \
# ---------- some config ----------
&& cd /etc/php83 \
# - config PHP
&& { \
echo "upload_max_filesize=128M"; \
echo "post_max_size=128M"; \
echo "memory_limit=1G"; \
} | tee conf.d/99_overrides.ini \
# ---------- clear works ----------
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
&& echo -e "\033[42;37m Build Completed :).\033[0m\n"
WORKDIR /srv/www
EXPOSE 9501