mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 01:18:48 +08:00
config.ini update on apphub
This commit is contained in:
parent
5eb9f3862c
commit
6f3a662071
@ -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
|
||||
|
@ -6,8 +6,9 @@ export PATH
|
||||
|
||||
set -e
|
||||
|
||||
try_times=5
|
||||
bash /migration.sh
|
||||
|
||||
try_times=5
|
||||
supervisord
|
||||
supervisorctl start apphub
|
||||
|
||||
|
3
docker/apphub/config/migration.sh
Normal file
3
docker/apphub/config/migration.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "start to migration config.ini"
|
Loading…
Reference in New Issue
Block a user