mirror of
http://124.126.16.154:8888/singularity/docker-images-hyperf.git
synced 2026-01-15 00:35:08 +08:00
ci: 更新 Docker 镜像并添加新版本
- 更新 Jenkinsfile,添加 8.4-swoole 版本构建和推送 - 修改 Latest 版本指向 8.4-swoole - 更新各版本 Dockerfile,设置时区为 America/Los_Angeles - 新增 8.4 版本 Dockerfile
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -26,9 +26,15 @@ pipeline {
|
|||||||
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.3-swoole'
|
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.3-swoole'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Build 8.4-swoole') {
|
||||||
|
steps {
|
||||||
|
sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.4-swoole -f swoole/8.4/Dockerfile .'
|
||||||
|
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.4-swoole'
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Build Latest') {
|
stage('Build Latest') {
|
||||||
steps {
|
steps {
|
||||||
sh 'docker tag harbor.luxcreo.cn/library/hyperf:8.3-swoole harbor.luxcreo.cn/library/hyperf:latest'
|
sh 'docker tag harbor.luxcreo.cn/library/hyperf:8.4-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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT"
|
|||||||
# ---------- env settings ----------
|
# ---------- env settings ----------
|
||||||
##
|
##
|
||||||
# --build-arg timezone=Asia/Shanghai
|
# --build-arg timezone=Asia/Shanghai
|
||||||
ENV TIMEZONE=Asia/Shanghai \
|
ENV TIMEZONE=America/Los_Angeles \
|
||||||
SCAN_CACHEABLE=(true) \
|
SCAN_CACHEABLE=(true) \
|
||||||
COMPOSER_ALLOW_SUPERUSER=1
|
COMPOSER_ALLOW_SUPERUSER=1
|
||||||
|
|
||||||
@@ -29,6 +29,7 @@ RUN set -ex \
|
|||||||
echo "upload_max_filesize=128M"; \
|
echo "upload_max_filesize=128M"; \
|
||||||
echo "post_max_size=128M"; \
|
echo "post_max_size=128M"; \
|
||||||
echo "memory_limit=1G"; \
|
echo "memory_limit=1G"; \
|
||||||
|
echo "date.timezone=${TIMEZONE}"; \
|
||||||
} | tee conf.d/99_overrides.ini \
|
} | tee conf.d/99_overrides.ini \
|
||||||
# ---------- clear works ----------
|
# ---------- clear works ----------
|
||||||
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
|
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT"
|
|||||||
# ---------- env settings ----------
|
# ---------- env settings ----------
|
||||||
##
|
##
|
||||||
# --build-arg timezone=Asia/Shanghai
|
# --build-arg timezone=Asia/Shanghai
|
||||||
ENV TIMEZONE=Asia/Shanghai \
|
ENV TIMEZONE=America/Los_Angeles \
|
||||||
SCAN_CACHEABLE=(true) \
|
SCAN_CACHEABLE=(true) \
|
||||||
COMPOSER_ALLOW_SUPERUSER=1
|
COMPOSER_ALLOW_SUPERUSER=1
|
||||||
|
|
||||||
@@ -29,6 +29,7 @@ RUN set -ex \
|
|||||||
echo "upload_max_filesize=128M"; \
|
echo "upload_max_filesize=128M"; \
|
||||||
echo "post_max_size=128M"; \
|
echo "post_max_size=128M"; \
|
||||||
echo "memory_limit=1G"; \
|
echo "memory_limit=1G"; \
|
||||||
|
echo "date.timezone=${TIMEZONE}"; \
|
||||||
} | tee conf.d/99_overrides.ini \
|
} | tee conf.d/99_overrides.ini \
|
||||||
# ---------- clear works ----------
|
# ---------- clear works ----------
|
||||||
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
|
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT"
|
|||||||
# ---------- env settings ----------
|
# ---------- env settings ----------
|
||||||
##
|
##
|
||||||
# --build-arg timezone=Asia/Shanghai
|
# --build-arg timezone=Asia/Shanghai
|
||||||
ENV TIMEZONE=Asia/Shanghai \
|
ENV TIMEZONE=America/Los_Angeles \
|
||||||
SCAN_CACHEABLE=(true) \
|
SCAN_CACHEABLE=(true) \
|
||||||
COMPOSER_ALLOW_SUPERUSER=1
|
COMPOSER_ALLOW_SUPERUSER=1
|
||||||
|
|
||||||
@@ -29,6 +29,7 @@ RUN set -ex \
|
|||||||
echo "upload_max_filesize=128M"; \
|
echo "upload_max_filesize=128M"; \
|
||||||
echo "post_max_size=128M"; \
|
echo "post_max_size=128M"; \
|
||||||
echo "memory_limit=1G"; \
|
echo "memory_limit=1G"; \
|
||||||
|
echo "date.timezone=${TIMEZONE}"; \
|
||||||
} | tee conf.d/99_overrides.ini \
|
} | tee conf.d/99_overrides.ini \
|
||||||
# ---------- clear works ----------
|
# ---------- clear works ----------
|
||||||
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
|
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
# @link https://studio.luxcreo.cn/
|
# @link https://studio.luxcreo.cn/
|
||||||
# @contact dongyun.li@luxcreo.cn
|
# @contact dongyun.li@luxcreo.cn
|
||||||
|
|
||||||
FROM hyperf/hyperf:8.3-alpine-vedge-swoole
|
FROM hyperf/hyperf:8.3-alpine-vedge-swoole-slim
|
||||||
LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT" app.name="LuxHyperf"
|
LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT" app.name="LuxHyperf"
|
||||||
|
|
||||||
##
|
##
|
||||||
# ---------- env settings ----------
|
# ---------- env settings ----------
|
||||||
##
|
##
|
||||||
# --build-arg timezone=Asia/Shanghai
|
# --build-arg timezone=Asia/Shanghai
|
||||||
ENV TIMEZONE=Asia/Shanghai \
|
ENV TIMEZONE=America/Los_Angeles \
|
||||||
SCAN_CACHEABLE=(true) \
|
SCAN_CACHEABLE=(true) \
|
||||||
COMPOSER_ALLOW_SUPERUSER=1
|
COMPOSER_ALLOW_SUPERUSER=1
|
||||||
|
|
||||||
@@ -29,6 +29,7 @@ RUN set -ex \
|
|||||||
echo "upload_max_filesize=128M"; \
|
echo "upload_max_filesize=128M"; \
|
||||||
echo "post_max_size=128M"; \
|
echo "post_max_size=128M"; \
|
||||||
echo "memory_limit=1G"; \
|
echo "memory_limit=1G"; \
|
||||||
|
echo "date.timezone=${TIMEZONE}"; \
|
||||||
} | tee conf.d/99_overrides.ini \
|
} | tee conf.d/99_overrides.ini \
|
||||||
# ---------- clear works ----------
|
# ---------- clear works ----------
|
||||||
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
|
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
|
||||||
|
|||||||
42
swoole/8.4/Dockerfile
Normal file
42
swoole/8.4/Dockerfile
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
# Default Dockerfile
|
||||||
|
#
|
||||||
|
# @link https://studio.luxcreo.cn/
|
||||||
|
# @contact dongyun.li@luxcreo.cn
|
||||||
|
|
||||||
|
FROM hyperf/hyperf:8.4-alpine-vedge-swoole-slim
|
||||||
|
LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT" app.name="LuxHyperf"
|
||||||
|
|
||||||
|
##
|
||||||
|
# ---------- env settings ----------
|
||||||
|
##
|
||||||
|
# --build-arg timezone=Asia/Shanghai
|
||||||
|
ENV TIMEZONE=America/Los_Angeles \
|
||||||
|
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 \
|
||||||
|
&& apk add --no-cache --repository http://mirrors.aliyun.com/alpine/edge/community gnu-libiconv \
|
||||||
|
# ---------- some config ----------
|
||||||
|
&& cd /etc/php84 \
|
||||||
|
# - config PHP
|
||||||
|
&& { \
|
||||||
|
echo "upload_max_filesize=128M"; \
|
||||||
|
echo "post_max_size=128M"; \
|
||||||
|
echo "memory_limit=1G"; \
|
||||||
|
echo "date.timezone"; \
|
||||||
|
} | 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"
|
||||||
|
|
||||||
|
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
|
||||||
|
|
||||||
|
WORKDIR /srv/www
|
||||||
|
|
||||||
|
EXPOSE 9501
|
||||||
Reference in New Issue
Block a user