This commit is contained in:
qiaofeng1227 2023-09-26 17:45:08 +08:00
parent b0ba3ae41e
commit 0c89824b94
2 changed files with 3 additions and 2 deletions

View File

@ -38,6 +38,7 @@ VOLUME /usr/websoft9/apphub/logs
VOLUME /usr/websoft9/apphub/src/conf
VOLUME /usr/websoft9/media
# Clean cache and install files
RUN rm -rf apphub/docs apphub/tests library.zip plugin-appstore && \
apt clean && \

View File

@ -40,8 +40,8 @@ git config --global user.email "$password"
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"
sudo nsenter -m -u -i -n -p -t 1 sh -c "sed -i '/websoft9-apphub/d' /etc/hosts"
sudo nsenter -m -u -i -n -p -t 1 sh -c "echo $internal_ip websoft9-apphub>> /etc/hosts"
# start by supervisord
/usr/bin/supervisord