mirror of
http://124.126.16.154:8888/singularity/docker-images-hyperf.git
synced 2026-01-15 00:35:08 +08:00
feat: ✨ 增加 8.3 镜像
This commit is contained in:
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@@ -10,30 +10,33 @@ 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
38
swoole/8.3/Dockerfile
Normal 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
|
||||||
Reference in New Issue
Block a user