This commit is contained in:
qiaofeng1227 2023-09-26 17:36:50 +08:00
parent 128875d50a
commit b0ba3ae41e
2 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,7 @@ COPY --from=buildstage /media/data ./media
COPY --from=buildstage /library ./library COPY --from=buildstage /library ./library
COPY --from=buildstage /websoft9/appmanage_new ./apphub COPY --from=buildstage /websoft9/appmanage_new ./apphub
RUN apt update && apt install git jq supervisor -y && \ RUN apt update && apt install git jq iproute2 supervisor -y && \
mkdir credentials && \ mkdir credentials && \
echo "This folder stored the credentials of other services that integrated with apphub" > credentials/readme echo "This folder stored the credentials of other services that integrated with apphub" > credentials/readme

View File

@ -39,6 +39,10 @@ git config --global user.name "$username"
git config --global user.email "$password" git config --global user.email "$password"
set -e set -e
internal_ip=$(ip addr show eth0 | awk '/inet /{split($2, a, "/"); print a[1]}')
nsenter -m -u -i -n -p -t 1 sh -c "sed -i '/websoft9-apphub/d' /etc/hosts"
nsenter -m -u -i -n -p -t 1 sh -c "echo $internal_ip websoft9-apphub>> /etc/hosts"
# start by supervisord # start by supervisord
/usr/bin/supervisord /usr/bin/supervisord
supervisorctl start all supervisorctl start all