init(git): 🎉 初始化git子仓库

This commit is contained in:
李东云
2022-04-24 14:58:52 +08:00
commit d4680e40fe
3 changed files with 59 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.idea/
.vscode/

15
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,15 @@
pipeline {
stages {
stage('Build 8.0-swoole') {
agent {
docker { image 'plugins/docker' }
}
steps {
sh 'docker login harbor.luxcreo.cn -u '
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'
}
}
}
}

42
swoole/8.0/Dockerfile Normal file
View File

@@ -0,0 +1,42 @@
# Default Dockerfile
#
# @link https://studio.luxcreo.cn/
# @contact dongyun.li@luxcreo.cn
FROM hyperf/hyperf:8.0-alpine-v3.14-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)
# update
RUN set -ex \
# show php version and extensions
&& php -v \
&& php -m \
&& php --ri swoole \
# ---------- some config ----------
&& cd /etc/php8 \
# - config PHP
&& { \
echo "upload_max_filesize=128M"; \
echo "post_max_size=128M"; \
echo "memory_limit=1G"; \
echo "date.timezone=${TIMEZONE}"; \
} | tee conf.d/99_overrides.ini \
# - config timezone
&& ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
&& echo "${TIMEZONE}" > /etc/timezone \
# ---------- 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
ENTRYPOINT ["php", "/srv/www/bin/hyperf.php", "start"]