mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Tag: 2.0
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PIP_NO_CACHE_DIR=1
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ffmpeg \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements_bot.txt /tmp/requirements.txt
|
||||
RUN pip install -r /tmp/requirements.txt
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN useradd --create-home appuser \
|
||||
&& chown -R appuser:appuser /app
|
||||
|
||||
USER appuser
|
||||
|
||||
CMD ["python", "thin_client.py"]
|
||||
@@ -0,0 +1,24 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PIP_NO_CACHE_DIR=1
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
poppler-utils \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY conjurer_librarian/requirements_librarian.txt /tmp/requirements.txt
|
||||
RUN pip install -r /tmp/requirements.txt
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN useradd --create-home appuser \
|
||||
&& chown -R appuser:appuser /app
|
||||
|
||||
USER appuser
|
||||
|
||||
CMD ["python", "-m", "conjurer_librarian.conjurer_librarian"]
|
||||
@@ -0,0 +1,23 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PIP_NO_CACHE_DIR=1
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ffmpeg \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements_bot.txt /tmp/requirements.txt
|
||||
RUN pip install -r /tmp/requirements.txt
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN useradd --create-home appuser \
|
||||
&& chown -R appuser:appuser /app
|
||||
|
||||
USER appuser
|
||||
|
||||
CMD ["python", "-m", "conjurer_musician.conjurer_musician"]
|
||||
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
# Discord bot service configuration
|
||||
|
||||
DISCORD_TOKEN=HACKME!
|
||||
OPENAI_API_KEY=HACKME!
|
||||
CONJURER_API_KEY=HACKME!
|
||||
|
||||
# Internal service endpoints
|
||||
CONJURER_FILE_SERVICE=http://conjurer-musician:5000
|
||||
CONJURER_LIBRARIAN_SERVICE=http://conjurer-librarian:5001
|
||||
|
||||
# Runtime paths mounted via docker-compose volumes
|
||||
CONJURER_BASE_DIR=/data/config
|
||||
CONJURER_SETTINGS_FILE=/data/config/settings.json
|
||||
CONJURER_MEMORY_FILE=/data/config/pamiec.json
|
||||
CONJURER_MUSIC_MEMORY_FILE=/data/config/pamiec_muzyki.json
|
||||
CONJURER_SYSTEM_GPT_SETTINGS=/data/config/system_gpt_settings.json
|
||||
CONJURER_GRAPHICS_PATH=/data/assets/graphics
|
||||
CONJURER_LOG_FILE=/data/logs/discord.log
|
||||
CONJURER_LOGSTORE=/data/logs
|
||||
|
||||
# Optional external integrations
|
||||
CONJURER_NETRC_FILE=/data/secrets/.netrc
|
||||
YOUTUBE_USERNAME=HACKME!
|
||||
YOUTUBE_PASSWORD=HACKME!
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
# Librarian service configuration
|
||||
|
||||
CONJURER_API_KEY=HACKME!
|
||||
|
||||
CONJURER_MAIN_BOT=http://conjurer-bot:5000
|
||||
|
||||
CONJURER_LIBRARIAN_HOST=0.0.0.0
|
||||
CONJURER_LIBRARIAN_PORT=5001
|
||||
CONJURER_LIBRARIAN_MAX_RESULTS=500
|
||||
|
||||
CONJURER_CROSSREF_MAILTO=HACKME!
|
||||
CONJURER_LIBRARIAN_LOG=/data/logs/librarian.log
|
||||
|
||||
CONJURER_NETRC_FILE=/data/secrets/.netrc
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
# Musician service configuration
|
||||
|
||||
CONJURER_API_KEY=HACKME!
|
||||
|
||||
CONJURER_MAIN_BOT=http://conjurer-bot:5000
|
||||
CONJURER_MUSIC_TRACKER_ENDPOINT=/prepped_tracks
|
||||
|
||||
CONJURER_MUSICIAN_HOST=0.0.0.0
|
||||
CONJURER_MUSICIAN_PORT=5000
|
||||
|
||||
CONJURER_MUSIC_FOLDER=/data/music
|
||||
CONJURER_PRIORITY_FOLDER=/data/priority
|
||||
CONJURER_ALL_PLAYLIST=/data/playlists/all_playlist.playlist
|
||||
CONJURER_HIT_PLAYLIST=/data/playlists/hit.playlist
|
||||
CONJURER_REQUEST_PLAYLIST=/data/playlists/request.playlist
|
||||
CONJURER_PRIORITY_PLAYLIST=/data/playlists/priority_queue.playlist
|
||||
CONJURER_STREAM_TEMPLATE=/data/templates/stream.html
|
||||
|
||||
CONJURER_RADIO_LOG=/data/logs/radio.log
|
||||
CONJURER_PERSISTENCE_LOG=/data/logs/persistence.log
|
||||
Reference in New Issue
Block a user