Remove internal host and fix path and user permissions
This commit is contained in:
parent
f799623f97
commit
dc78dc2dd2
@ -87,8 +87,6 @@ RUN echo *** Install Packages *** && \
|
|||||||
|
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
RUN chmod +x /app/run.sh
|
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|
||||||
WORKDIR /config
|
WORKDIR /config
|
||||||
|
@ -1 +1 @@
|
|||||||
2022.03.25-20
|
2022.03.25-21
|
||||||
|
@ -1,16 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function fix_linux_internal_host() {
|
python3 /app/runner_notify.py -c config.ini
|
||||||
DOCKER_INTERNAL_HOST="host.docker.internal"
|
|
||||||
|
|
||||||
if ! grep $DOCKER_INTERNAL_HOST /etc/hosts > /dev/null ; then
|
|
||||||
DOCKER_INTERNAL_IP=`/sbin/ip route | awk '/default/ { print $3 }' | awk '!seen[$0]++'`
|
|
||||||
echo -e "$DOCKER_INTERNAL_IP\t$DOCKER_INTERNAL_HOST" | tee -a /etc/hosts > /dev/null
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
fix_linux_internal_host
|
|
||||||
|
|
||||||
python3 runner_notify.py -c config.ini
|
|
||||||
sleep 60
|
sleep 60
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
groupmod -o -g "$PGID" abc
|
groupmod -o -g "$PGID" abc
|
||||||
|
Loading…
Reference in New Issue
Block a user