config.ini update on apphub

This commit is contained in:
qiaofeng1227 2023-10-26 17:35:44 +08:00
parent 5eb9f3862c
commit 6f3a662071
3 changed files with 7 additions and 1 deletions

View File

@ -35,6 +35,7 @@ COPY --from=buildstage /w9media ./media
COPY --from=buildstage /w9library ./library
COPY --from=buildstage /websoft9/apphub ./apphub
COPY --from=buildstage /swagger-ui/dist ./apphub/swagger-ui
COPY --from=buildstage /websoft9/apphub/src/config ./config
RUN apt update && apt install curl git jq iproute2 supervisor -y
@ -46,6 +47,7 @@ COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN chmod +r /etc/supervisor/conf.d/supervisord.conf
COPY config/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY config/migration.sh /migration.sh
VOLUME /websoft9/apphub/logs
VOLUME /websoft9/apphub/src/config

View File

@ -6,8 +6,9 @@ export PATH
set -e
try_times=5
bash /migration.sh
try_times=5
supervisord
supervisorctl start apphub

View File

@ -0,0 +1,3 @@
#!/bin/bash
echo "start to migration config.ini"