Development: Add global docker image env file#191
Conversation
WalkthroughA new environment file variable Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@roles/artemis/templates/artemis-docker.sh.j2`:
- Around line 9-10: DOCKER_IMAGE_ENV_FILE currently points to "{{
artemis_working_directory }}/Artemis/.env" and Docker Compose commands assume it
exists; change the script to detect file existence and build an ENV_FILE_ARGS
variable instead of always passing --env-file: check DOCKER_IMAGE_ENV_FILE and
ENV_FILE with test -f (or [ -f ]) and if present append "--env-file
\"$DOCKER_IMAGE_ENV_FILE\"" (and for ENV_FILE append its arg) into
ENV_FILE_ARGS, then use $ENV_FILE_ARGS in all docker compose invocations (e.g.,
in functions or command invocations that reference
DOCKER_IMAGE_ENV_FILE/ENV_FILE) so commands won’t fail when Artemis/.env is
missing and you can optionally log a clear warning when a file is absent.
ls1intum/Artemis#12122
Summary by CodeRabbit