mirror of
https://github.com/casjaysdevdocker/ifconfig
synced 2025-01-18 12:34:25 -05:00
🗃️ Committing everything that changed 🗃️
Dockerfile rootfs/tmp/init.sh rootfs/tmp/update-geoip-db.sh rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/etc/docker/init.d/zz-ifconfig.sh
This commit is contained in:
parent
f801c674e0
commit
ba0e61f764
@ -99,7 +99,7 @@ RUN set -ex ; \
|
|||||||
ln -sf /opt/echoip/echoip /usr/local/bin/echoip ; \
|
ln -sf /opt/echoip/echoip /usr/local/bin/echoip ; \
|
||||||
ln -sf /opt/echoip/echoip /usr/local/bin/ifconfig ; \
|
ln -sf /opt/echoip/echoip /usr/local/bin/ifconfig ; \
|
||||||
sed -i "s|REPLACE_MODIFIED|$(date +'%Y-%m-%d at %H:%M')|g" /opt/echoip/html/index.html; \
|
sed -i "s|REPLACE_MODIFIED|$(date +'%Y-%m-%d at %H:%M')|g" /opt/echoip/html/index.html; \
|
||||||
bash -c "/tmp/init.sh"
|
bash -c "/tmp/update-geoip-db.sh"
|
||||||
|
|
||||||
RUN set -ex ; \
|
RUN set -ex ; \
|
||||||
echo 'Running cleanup' ; \
|
echo 'Running cleanup' ; \
|
||||||
|
@ -32,10 +32,6 @@ RUN_USER="${SUDO_USER:-$USER}"
|
|||||||
SRC_DIR="${BASH_SOURCE%/*}"
|
SRC_DIR="${BASH_SOURCE%/*}"
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Set bash options
|
# Set bash options
|
||||||
trap 'exitCode=${exitCode:-$?};[ -n "$INIT_SH_TEMP_FILE" ] && [ -f "$INIT_SH_TEMP_FILE" ] && rm -Rf "$INIT_SH_TEMP_FILE" &>/dev/null' EXIT
|
|
||||||
#if [ ! -t 0 ] && { [[ "$1" = --term ]] || [ $# = 0 ]; }; then shift 1 && TERMINAL_APP="TRUE" myterminal -e "$APPNAME $*" && exit || exit 1; fi
|
|
||||||
[ "$1" = "--debug" ] && set -xo pipefail && export SCRIPT_OPTS="--debug" && export _DEBUG="on"
|
|
||||||
[ "$1" = "--raw" ] && export SHOW_RAW="true"
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
for f in GeoLite2-ASN GeoLite2-City GeoLite2-Country; do
|
for f in GeoLite2-ASN GeoLite2-City GeoLite2-Country; do
|
@ -77,7 +77,7 @@ DATABASE_DIR="" # set database dir
|
|||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Healthcheck variables
|
# Healthcheck variables
|
||||||
HEALTH_ENABLED="yes" # enable healthcheck [yes/no]
|
HEALTH_ENABLED="yes" # enable healthcheck [yes/no]
|
||||||
SERVICES_LIST="tini" # comma seperated list of processes for the healthcheck
|
SERVICES_LIST="tini echoip" # comma seperated list of processes for the healthcheck
|
||||||
HEALTH_ENDPOINTS="" # url endpoints: [http://localhost/health,http://localhost/test]
|
HEALTH_ENDPOINTS="" # url endpoints: [http://localhost/health,http://localhost/test]
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Overwrite variables
|
# Overwrite variables
|
||||||
|
@ -119,7 +119,7 @@ SERVICE_UID="0" # set the user id
|
|||||||
SERVICE_GID="0" # set the group id
|
SERVICE_GID="0" # set the group id
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# execute command variables - keep single quotes variables will be expanded later
|
# execute command variables - keep single quotes variables will be expanded later
|
||||||
EXEC_CMD_BIN='ifconfig' # command to execute
|
EXEC_CMD_BIN='echoip ' # command to execute
|
||||||
EXEC_CMD_ARGS='-r -s -p -l :$SERVICE_PORT -H X-Real-IP -H x-forwarded-for ' # command arguments
|
EXEC_CMD_ARGS='-r -s -p -l :$SERVICE_PORT -H X-Real-IP -H x-forwarded-for ' # command arguments
|
||||||
EXEC_CMD_ARGS+='-t /opt/echoip/html ' # command arguments
|
EXEC_CMD_ARGS+='-t /opt/echoip/html ' # command arguments
|
||||||
EXEC_CMD_ARGS+='-a /opt/echoip/geoip/GeoLite2-ASN.mmdb ' # command arguments
|
EXEC_CMD_ARGS+='-a /opt/echoip/geoip/GeoLite2-ASN.mmdb ' # command arguments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user