This commit introduces a containerized workflow for the development session manager (dev_session.py). - Dockerization: Added gemini.Dockerfile to create a self-contained environment with all Python dependencies, removing the need for manual host setup. - Start Script: Updated start-gemini.sh to build and run the container, executing dev_session.py as the entrypoint. - Session Management: Implemented --done flag to properly terminate a session, update the Notion task status, and clean up the git hook. - Notion Integration: Created and integrated notion_commit_hook.py which is automatically installed/uninstalled to post commit messages to the active Notion task. - Documentation: Updated README_dev_session.md to reflect the new container-based setup, usage, and features.
20 lines
670 B
Bash
20 lines
670 B
Bash
|
|
#!/bin/sh
|
|
|
|
# Sicherstellen, dass der Config-Ordner existiert, damit Docker ihn als Ordner und nicht als Datei mountet
|
|
mkdir -p .gemini-config
|
|
|
|
echo "Räume alte 'gemini-session' auf, falls vorhanden..."
|
|
sudo docker rm -f gemini-session > /dev/null 2>&1
|
|
|
|
echo "Starte eine neue, interaktive Gemini-Session..."
|
|
# --env-file .env lädt deine Variablen automatisch
|
|
# -v .../.gemini-config:/root/.config sorgt dafür, dass deine Settings (Modellwahl) gespeichert bleiben
|
|
sudo docker run -it --rm \
|
|
--env-file .env \
|
|
-v "$(pwd):/app" \
|
|
-v "$(pwd)/.gemini-config:/root/.config" \
|
|
--name gemini-session \
|
|
gemini-dev-env \
|
|
bash -c "python3 dev_session.py"
|
|
|