add more images
This commit is contained in:
parent
3241a41ae6
commit
dbb5d933c5
180 changed files with 4993 additions and 999 deletions
41
apps/uptimekuma/entrypoint.sh
Normal file
41
apps/uptimekuma/entrypoint.sh
Normal file
|
@ -0,0 +1,41 @@
|
|||
#!/bin/ash
|
||||
#System variables
|
||||
clear
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
BLUE='\033[0;34m'
|
||||
NC='\033[0m'
|
||||
|
||||
# Switch to the container's working directory
|
||||
cd /home/container || exit 1
|
||||
|
||||
# Wait for the container to fully initialize
|
||||
sleep 1
|
||||
|
||||
# Default the TZ environment variable to UTC.
|
||||
TZ=${TZ:-UTC}
|
||||
export TZ
|
||||
|
||||
# Set environment variable that holds the Internal Docker IP
|
||||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||
export INTERNAL_IP
|
||||
|
||||
# system informations
|
||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
echo -e "${RED}Uptime Kuma Image${NC}"
|
||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
echo -e "${YELLOW}Running on Alpine: ${RED} $(cat /etc/alpine-release)${NC}"
|
||||
echo -e "${YELLOW}Current timezone: ${RED} ${TZ} ${NC}"
|
||||
echo -e "${YELLOW}NodeJS Version: ${RED} $(node -v) ${NC}"
|
||||
echo -e "${YELLOW}Cloudflared Version: ${RED} $(/usr/bin/cloudflared --version) ${NC}"
|
||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
|
||||
export PATH=$PATH:/root/.local/bin
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
eval ${MODIFIED_STARTUP}
|
Loading…
Add table
Add a link
Reference in a new issue