mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-24 23:14:49 +00:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
6c1211708c | ||
|
40387fdb5b | ||
|
e10c36295c | ||
|
801d7b016f | ||
|
1ff415ea91 |
@@ -19,7 +19,7 @@ ARG app_env=prod
|
|||||||
|
|
||||||
ENV APP_ENV=${app_env:-"prod"} \
|
ENV APP_ENV=${app_env:-"prod"} \
|
||||||
TIMEZONE=${timezone:-"Asia/Shanghai"} \
|
TIMEZONE=${timezone:-"Asia/Shanghai"} \
|
||||||
cron="3 11 * * *"
|
cron="3 */10 * * *"
|
||||||
|
|
||||||
##
|
##
|
||||||
# ---------- building ----------
|
# ---------- building ----------
|
||||||
@@ -81,6 +81,8 @@ RUN set -ex \
|
|||||||
&& git clone https://gitee.com/ledc/IYUUAutoReseed.git /IYUU \
|
&& git clone https://gitee.com/ledc/IYUUAutoReseed.git /IYUU \
|
||||||
&& cp /IYUU/config/config.sample.php /IYUU/config/config.php \
|
&& cp /IYUU/config/config.sample.php /IYUU/config/config.php \
|
||||||
&& ln -sf /IYUU/config/config.php /config.php \
|
&& ln -sf /IYUU/config/config.php /config.php \
|
||||||
|
&& cp /IYUU/docker/entrypoint.sh /entrypoint.sh \
|
||||||
|
&& chmod -R 777 /entrypoint.sh \
|
||||||
&& apk del --purge *-dev \
|
&& apk del --purge *-dev \
|
||||||
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/share/php7 \
|
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/share/php7 \
|
||||||
# ---------- some config,clear work ----------
|
# ---------- some config,clear work ----------
|
||||||
@@ -109,4 +111,4 @@ RUN set -ex \
|
|||||||
# EXPOSE 9000
|
# EXPOSE 9000
|
||||||
# VOLUME ["/IYUU", "/data"]
|
# VOLUME ["/IYUU", "/data"]
|
||||||
WORKDIR /IYUU
|
WORKDIR /IYUU
|
||||||
ENTRYPOINT ["/IYUU/docker/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
@@ -13,7 +13,7 @@ use IYUU\Library\Table;
|
|||||||
class AutoReseed
|
class AutoReseed
|
||||||
{
|
{
|
||||||
// 版本号
|
// 版本号
|
||||||
const VER = '1.10.16';
|
const VER = '1.10.17';
|
||||||
// RPC连接
|
// RPC连接
|
||||||
private static $links = [];
|
private static $links = [];
|
||||||
// 客户端配置
|
// 客户端配置
|
||||||
|
@@ -19,7 +19,7 @@ ARG app_env=prod
|
|||||||
|
|
||||||
ENV APP_ENV=${app_env:-"prod"} \
|
ENV APP_ENV=${app_env:-"prod"} \
|
||||||
TIMEZONE=${timezone:-"Asia/Shanghai"} \
|
TIMEZONE=${timezone:-"Asia/Shanghai"} \
|
||||||
cron="3 11 * * *"
|
cron="3 */10 * * *"
|
||||||
|
|
||||||
##
|
##
|
||||||
# ---------- building ----------
|
# ---------- building ----------
|
||||||
@@ -81,6 +81,8 @@ RUN set -ex \
|
|||||||
&& git clone https://gitee.com/ledc/IYUUAutoReseed.git /IYUU \
|
&& git clone https://gitee.com/ledc/IYUUAutoReseed.git /IYUU \
|
||||||
&& cp /IYUU/config/config.sample.php /IYUU/config/config.php \
|
&& cp /IYUU/config/config.sample.php /IYUU/config/config.php \
|
||||||
&& ln -sf /IYUU/config/config.php /config.php \
|
&& ln -sf /IYUU/config/config.php /config.php \
|
||||||
|
&& cp /IYUU/docker/entrypoint.sh /entrypoint.sh \
|
||||||
|
&& chmod -R 777 /entrypoint.sh \
|
||||||
&& apk del --purge *-dev \
|
&& apk del --purge *-dev \
|
||||||
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/share/php7 \
|
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/share/php7 \
|
||||||
# ---------- some config,clear work ----------
|
# ---------- some config,clear work ----------
|
||||||
@@ -109,4 +111,4 @@ RUN set -ex \
|
|||||||
# EXPOSE 9000
|
# EXPOSE 9000
|
||||||
# VOLUME ["/IYUU", "/data"]
|
# VOLUME ["/IYUU", "/data"]
|
||||||
WORKDIR /IYUU
|
WORKDIR /IYUU
|
||||||
ENTRYPOINT ["/IYUU/docker/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
@@ -4,7 +4,7 @@ FROM arm64v8/alpine:3.12
|
|||||||
|
|
||||||
ENV TZ Asia/Shanghai
|
ENV TZ Asia/Shanghai
|
||||||
|
|
||||||
ENV cron="3 15 * * *"
|
ENV cron="3 */10 * * *"
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/' /etc/apk/repositories \
|
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/' /etc/apk/repositories \
|
||||||
@@ -17,6 +17,8 @@ RUN set -ex \
|
|||||||
&& git clone https://gitee.com/ledc/IYUUAutoReseed.git /IYUU \
|
&& git clone https://gitee.com/ledc/IYUUAutoReseed.git /IYUU \
|
||||||
&& cp /IYUU/config/config.sample.php /IYUU/config/config.php \
|
&& cp /IYUU/config/config.sample.php /IYUU/config/config.php \
|
||||||
&& ln -sf /IYUU/config/config.php /config.php \
|
&& ln -sf /IYUU/config/config.php /config.php \
|
||||||
|
&& cp /IYUU/docker/entrypoint.sh /entrypoint.sh \
|
||||||
|
&& chmod -R 777 /entrypoint.sh \
|
||||||
&& apk del --purge *-dev \
|
&& apk del --purge *-dev \
|
||||||
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
|
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
|
||||||
&& echo "${TZ}" > /etc/timezone \
|
&& echo "${TZ}" > /etc/timezone \
|
||||||
@@ -27,4 +29,4 @@ RUN set -ex \
|
|||||||
&& echo -e "\033[42;37m Build Completed :).\033[0m\n"
|
&& echo -e "\033[42;37m Build Completed :).\033[0m\n"
|
||||||
|
|
||||||
WORKDIR /IYUU
|
WORKDIR /IYUU
|
||||||
ENTRYPOINT ["/IYUU/docker/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
2
docker/Arm64v8/push.sh
Normal file
2
docker/Arm64v8/push.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
docker image tag iyuu:arm64v8 iyuucn/iyuuautoreseed:arm64v8
|
||||||
|
docker image push iyuucn/iyuuautoreseed:arm64v8
|
@@ -3,5 +3,6 @@ DEFAULT_CRON="9 */6 * * *"
|
|||||||
cron=${cron:-$DEFAULT_CRON}
|
cron=${cron:-$DEFAULT_CRON}
|
||||||
set -e
|
set -e
|
||||||
echo "$cron /usr/bin/php /IYUU/iyuu.php" | crontab -
|
echo "$cron /usr/bin/php /IYUU/iyuu.php" | crontab -
|
||||||
|
cd /IYUU && git fetch --all && git reset --hard origin/master
|
||||||
/usr/bin/php /IYUU/iyuu.php
|
/usr/bin/php /IYUU/iyuu.php
|
||||||
/usr/sbin/crond -f
|
/usr/sbin/crond -f
|
||||||
|
Reference in New Issue
Block a user