Removed deprecated docker files
This commit is contained in:
		
							parent
							
								
									979a5ecd4f
								
							
						
					
					
						commit
						9bdb286d38
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -11,6 +11,7 @@ data.json
 | 
			
		||||
data.json.bak
 | 
			
		||||
settings*.conf
 | 
			
		||||
NOTES.md
 | 
			
		||||
sanity/
 | 
			
		||||
 | 
			
		||||
# Tools
 | 
			
		||||
wrapper/
 | 
			
		||||
 | 
			
		||||
@ -1,75 +0,0 @@
 | 
			
		||||
version: "3.8"
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  shaiwatcher:
 | 
			
		||||
    # Build the image from your repo (Portainer Git deploy will use this)
 | 
			
		||||
    build:
 | 
			
		||||
      context: .
 | 
			
		||||
      dockerfile: dockerfile          # <- your file is named 'dockerfile'
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
 | 
			
		||||
    # Everything configurable shows up in Portainer's env UI
 | 
			
		||||
    environment:
 | 
			
		||||
      # --- Required token (set in Portainer UI) ---
 | 
			
		||||
      DISCORD_TOKEN: ${DISCORD_TOKEN}
 | 
			
		||||
 | 
			
		||||
      # --- Paths ---
 | 
			
		||||
      SHAI_DATA_FILE: /data/data.json
 | 
			
		||||
 | 
			
		||||
      # --- Reaction gating messages ---
 | 
			
		||||
      SHAI_RULES_MESSAGE_ID: "1396831304460402738"
 | 
			
		||||
      SHAI_ENGAGEMENT_MESSAGE_ID: "1397668657143742574"
 | 
			
		||||
      SHAI_NICKNAME_MESSAGE_ID: "1403513532108247141"
 | 
			
		||||
 | 
			
		||||
      # --- Roles ---
 | 
			
		||||
      SHAI_RULES_ROLE_ID: "1403146506596253817"
 | 
			
		||||
      SHAI_ENGAGEMENT_ROLE_ID: "1403146604894224458"
 | 
			
		||||
      SHAI_FULL_ACCESS_ROLE_ID: "1403146645121667082"
 | 
			
		||||
      SHAI_ADMIN_ROLE_ID: "1402000098476425246"
 | 
			
		||||
      SHAI_FIELD_MOD_ROLE_ID: "1402001335041261681"
 | 
			
		||||
      SHAI_INTEL_MOD_ROLE_ID: "1402001000327417946"
 | 
			
		||||
      SHAI_MODERATOR_ROLE_ID: "1396828779015573598"
 | 
			
		||||
 | 
			
		||||
      # --- Channels ---
 | 
			
		||||
      SHAI_MOD_CHANNEL_ID: "1403139701522698240"
 | 
			
		||||
      SHAI_MODLOG_CHANNEL_ID: "1403146993198436627"
 | 
			
		||||
      SHAI_USERSLIST_CHANNEL_ID: "1403146908385542215"
 | 
			
		||||
      SHAI_REPORT_CHANNEL_ID: "1403147077285843034"
 | 
			
		||||
      SHAI_PIRATES_LIST_CHANNEL_ID: "1403147077285843034"
 | 
			
		||||
 | 
			
		||||
      # --- Auto-VC ---
 | 
			
		||||
      SHAI_TRIGGER_CHANNEL_ID: "1403139044174594190"
 | 
			
		||||
      SHAI_AUTO_VC_CATEGORY_ID: "1403138882958266428"
 | 
			
		||||
      SHAI_VC_NAME_PREFIX: "DD Crew "              # trailing space intentional
 | 
			
		||||
      SHAI_AUTO_VC_CLEANUP_DELAY: "30"
 | 
			
		||||
 | 
			
		||||
      # --- Threat weights ---
 | 
			
		||||
      SHAI_THREAT_W_KILL: "0.30"
 | 
			
		||||
      SHAI_THREAT_W_DESTRUCTION: "0.40"
 | 
			
		||||
      SHAI_THREAT_W_GROUP: "0.20"
 | 
			
		||||
      SHAI_THREAT_W_SKILL: "0.10"
 | 
			
		||||
      SHAI_THREAT_GROUP_THRESHOLD: "3"
 | 
			
		||||
      SHAI_THREAT_MIN_SAMPLES_FOR_STATS: "3"
 | 
			
		||||
 | 
			
		||||
      # --- Misc toggles ---
 | 
			
		||||
      SHAI_RELEASE_VERSION: "false"
 | 
			
		||||
      SHAI_NICK_NUDGE_LOOP_ENABLED: "false"
 | 
			
		||||
      SHAI_HOME_GUILD_ID: "1396826999095427253"
 | 
			
		||||
      SHAI_USER_CARDS_CRON_ENABLED: "true"
 | 
			
		||||
 | 
			
		||||
      # --- SpicePay defaults ---
 | 
			
		||||
      SHAI_SPICEPAY_LSR_CUT_PERCENT: "10"
 | 
			
		||||
      SHAI_SPICEPAY_BASE_WEIGHT: "25"
 | 
			
		||||
      SHAI_SPICEPAY_CARRIER_BONUS: "12.5"
 | 
			
		||||
      SHAI_SPICEPAY_CRAWLER_BONUS: "12.5"
 | 
			
		||||
 | 
			
		||||
      # --- Optional emojis (IDs) ---
 | 
			
		||||
      SHAI_EMOJI_MELANGE_ID: "1401965356775510210"
 | 
			
		||||
      SHAI_EMOJI_SAND_ID: "1401965308805255310"
 | 
			
		||||
      SHAI_EMOJI_CARRIER_CRAWLER_ID: "1402285453037666386"
 | 
			
		||||
 | 
			
		||||
    volumes:
 | 
			
		||||
      - shaiwatcher_data:/data    # persistent data.json lives here
 | 
			
		||||
 | 
			
		||||
volumes:
 | 
			
		||||
  shaiwatcher_data:
 | 
			
		||||
@ -1,30 +0,0 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
set -e
 | 
			
		||||
 | 
			
		||||
# Defaults (can be overridden)
 | 
			
		||||
: "${SHAI_CONFIG:=/config/settings.conf}"
 | 
			
		||||
: "${SHAI_DATA:=/data/data.json}"
 | 
			
		||||
 | 
			
		||||
# Seed /config/settings.conf on first run if it doesn't exist
 | 
			
		||||
if [ ! -f "$SHAI_CONFIG" ]; then
 | 
			
		||||
  mkdir -p "$(dirname "$SHAI_CONFIG")"
 | 
			
		||||
  if [ -f /app/example/settings.conf ]; then
 | 
			
		||||
    cp /app/example/settings.conf "$SHAI_CONFIG"
 | 
			
		||||
    echo "Seeded default settings to $SHAI_CONFIG"
 | 
			
		||||
  else
 | 
			
		||||
    # Fall back: generate minimal config so the app can boot
 | 
			
		||||
    cat > "$SHAI_CONFIG" <<EOF
 | 
			
		||||
[DEFAULT]
 | 
			
		||||
data_file = ${SHAI_DATA}
 | 
			
		||||
EOF
 | 
			
		||||
    echo "Generated minimal $SHAI_CONFIG"
 | 
			
		||||
  fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Ensure data directory exists
 | 
			
		||||
mkdir -p "$(dirname "$SHAI_DATA")"
 | 
			
		||||
 | 
			
		||||
# Make path visible to the app (bot.py will still read the INI)
 | 
			
		||||
export SHAI_CONFIG SHAI_DATA
 | 
			
		||||
 | 
			
		||||
exec "$@"
 | 
			
		||||
							
								
								
									
										26
									
								
								dockerfile
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								dockerfile
									
									
									
									
									
								
							@ -1,26 +0,0 @@
 | 
			
		||||
FROM python:3.11-slim
 | 
			
		||||
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
ENV PYTHONDONTWRITEBYTECODE=1 \
 | 
			
		||||
    PYTHONUNBUFFERED=1
 | 
			
		||||
 | 
			
		||||
# deps first
 | 
			
		||||
COPY requirements.txt .
 | 
			
		||||
RUN pip install --no-cache-dir -r requirements.txt
 | 
			
		||||
 | 
			
		||||
# app code
 | 
			
		||||
COPY . /app
 | 
			
		||||
 | 
			
		||||
# runtime dirs + seed default config path (actual seeding done in entrypoint)
 | 
			
		||||
RUN mkdir -p /config /data
 | 
			
		||||
 | 
			
		||||
# runtime env defaults (can be overridden by compose/env)
 | 
			
		||||
ENV SHAI_CONFIG=/config/settings.conf \
 | 
			
		||||
    SHAI_DATA=/data/data.json
 | 
			
		||||
 | 
			
		||||
# small, explicit entrypoint
 | 
			
		||||
COPY docker-entrypoint.sh /usr/local/bin/entrypoint
 | 
			
		||||
RUN chmod +x /usr/local/bin/entrypoint
 | 
			
		||||
 | 
			
		||||
ENTRYPOINT ["entrypoint"]
 | 
			
		||||
CMD ["python","-u","/app/bot.py"]
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user