Warn if env vars from .env are not threaded via environment stanza #530

Open
opened 2025-04-14 22:04:17 +00:00 by decentral1se · 1 comment
Owner

If FOO=... in the .env is there but

service:
  app:
    environment:
      - FOO

Is not. This means FOO will never make it into the container.

We'd need to take care to only compare what is uncommented in the env var and what is merged together from all the stanzas and $COMPOSE_FILE entries. I believe the docker libs do this for us and we can make a simple comparison.

Again, UI/UX is a question that I don't have a good answer for. Where should this end up being shown?

New people run into this situation often while picking things up.

If `FOO=...` in the `.env` is there but ```yaml service: app: environment: - FOO ``` Is not. This means `FOO` will never make it into the container. We'd need to take care to only compare what is uncommented in the env var and what is merged together from all the stanzas and `$COMPOSE_FILE` entries. I believe the docker libs do this for us and we can make a simple comparison. Again, UI/UX is a question that I don't have a good answer for. Where should this end up being shown? New people run into this situation often while picking things up.
decentral1se added the
enhancement
label 2025-04-14 22:04:17 +00:00
decentral1se added this to the Abra v0.10.1 project 2025-04-20 05:48:30 +00:00
decentral1se moved this to Backlog in Abra v0.10.1 on 2025-04-20 06:06:40 +00:00
decentral1se moved this to Backlog in Abra v0.10.1 on 2025-04-21 19:08:15 +00:00
decentral1se moved this to Backlog in Abra v0.10.1 on 2025-04-21 19:08:25 +00:00
decentral1se moved this to Backlog in Abra v0.10.1 on 2025-04-24 08:58:35 +00:00
decentral1se moved this to Backlog in Abra v0.10.1 on 2025-04-24 08:58:37 +00:00
decentral1se moved this to Backlog in Abra v0.10.1 on 2025-04-24 08:58:38 +00:00
decentral1se removed this from the Abra v0.10.1 project 2025-04-24 09:01:07 +00:00
Owner

Again, UI/UX is a question that I don't have a good answer for. Where should this end up being shown?

I think we already have a warning for variables which aren't defined during abra app deploy, could we show this kind of warning there too?

> Again, UI/UX is a question that I don't have a good answer for. Where should this end up being shown? I think we already have a warning for variables which aren't defined during `abra app deploy`, could we show this kind of warning there too?
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#530
No description provided.