Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Docker Environment variable only getting checked for existence instead of value #700

Merged
merged 3 commits into from
Nov 4, 2024

Conversation

BlockyBlockling
Copy link
Contributor

This is fixing possible misinterpretations of the provided docker compose file.
It was only checking for the existence of the environment variable „SKIP_CADDY“ instead of checking for its value.

Now it‘s making sure that the Environment variable is actually set to true so if a value like false is set, caddy will still be active.

Fixing that its only checking for the existence of the environment variable „SKIP_CADDY“ instead of checking for its value
Adding :- Syntax which ensures that, if SKIP_CADDY is unset, it will be treated as an empty string, which will not match "true". This avoids potential issues with unbound variables in some shell configurations where set -u (treating unset variables as an error) is enabled.

(ChatGPT)
Fixed Syntax after last change
@RMartinOscar
Copy link
Contributor

RMartinOscar commented Nov 4, 2024

If you wish to use caddy then you comment it or set it to false otherwise set it to whatever but those two values and it will be disabled, i hardly see this condition useful.

Besides we are probably gonna split Caddy out of the image so you can use whatever webserver you'd like and customize vHosts.

Copy link
Contributor

@parkervcp parkervcp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@parkervcp parkervcp merged commit ac67656 into pelican-dev:main Nov 4, 2024
15 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 4, 2024
@BlockyBlockling BlockyBlockling deleted the skip-caddy-fix branch November 5, 2024 08:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants