From 6f3a66207109bcdf1452310ad2a282b53ec2aa72 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Thu, 26 Oct 2023 17:35:44 +0800 Subject: [PATCH] config.ini update on apphub --- docker/apphub/Dockerfile | 2 ++ docker/apphub/config/entrypoint.sh | 3 ++- docker/apphub/config/migration.sh | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 docker/apphub/config/migration.sh diff --git a/docker/apphub/Dockerfile b/docker/apphub/Dockerfile index fd7c4711..bd73c7c4 100644 --- a/docker/apphub/Dockerfile +++ b/docker/apphub/Dockerfile @@ -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 diff --git a/docker/apphub/config/entrypoint.sh b/docker/apphub/config/entrypoint.sh index 82df8f9d..cc2ebb3a 100644 --- a/docker/apphub/config/entrypoint.sh +++ b/docker/apphub/config/entrypoint.sh @@ -6,8 +6,9 @@ export PATH set -e -try_times=5 +bash /migration.sh +try_times=5 supervisord supervisorctl start apphub diff --git a/docker/apphub/config/migration.sh b/docker/apphub/config/migration.sh new file mode 100644 index 00000000..639a0c43 --- /dev/null +++ b/docker/apphub/config/migration.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "start to migration config.ini" \ No newline at end of file