mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
apphub
This commit is contained in:
parent
128875d50a
commit
b0ba3ae41e
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user