Currently, the installer script and entrypoint.sh don't provide clear feedback if required environment variables are missing. This can lead to silent failures or unexpected behavior that's difficult for users to troubleshoot.
Proposed Solution
-
In the installer.sh script:
- After creating the .env file, add a check to verify all required variables are set.
- Display warnings for any missing variables.
-
In the entrypoint.sh script:
- At the beginning, add checks for critical environment variables.
- Log warnings for any missing variables.
- Optionally, exit with an error if critical variables are missing.
Implementation Details
Users should receive clear feedback about missing or invalid environment variables.
Mentorship
If you need any help or have questions about this issue feel free to ask in the comments. You can also start a discussion here on Github and our team will be happy to provide the necessary assistance.
Currently, the installer script and entrypoint.sh don't provide clear feedback if required environment variables are missing. This can lead to silent failures or unexpected behavior that's difficult for users to troubleshoot.
Proposed Solution
In the installer.sh script:
In the entrypoint.sh script:
Implementation Details
Create a function to check for the presence of environment variables
Use this function to check for important variables like:
Expected Outcome
Users should receive clear feedback about missing or invalid environment variables.
Mentorship
If you need any help or have questions about this issue feel free to ask in the comments. You can also start a discussion here on Github and our team will be happy to provide the necessary assistance.