From 0bbba57dae66425460449e5a6525361b7e9097cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E4=BA=91?= Date: Mon, 4 Dec 2023 14:20:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20=E5=A2=9E=E5=8A=A0=208.3=20?= =?UTF-8?q?=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 13 ++++++++----- swoole/8.3/Dockerfile | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 swoole/8.3/Dockerfile diff --git a/Jenkinsfile b/Jenkinsfile index c5fe84f..959821a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,30 +10,33 @@ pipeline { } stage('Build 8.0-swoole') { 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 push harbor.luxcreo.cn/library/hyperf:8.0-swoole' } } stage('Build 8.1-swoole') { 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 push harbor.luxcreo.cn/library/hyperf:8.1-swoole' } } stage('Build 8.2-swoole') { 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 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') { 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' } } } -} \ No newline at end of file +} diff --git a/swoole/8.3/Dockerfile b/swoole/8.3/Dockerfile new file mode 100644 index 0000000..fd4e3e5 --- /dev/null +++ b/swoole/8.3/Dockerfile @@ -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="李东云 " 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 \ No newline at end of file