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

Allow turning on --verbose mode by environment variable $DEBUG_MODE #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ssiuhk
Copy link
Contributor

@ssiuhk ssiuhk commented Feb 18, 2021

Hi,

I found it's a bit trouble to turn on the -verbose switch with docker-compose as the start-up command is hard-coded during docker build. I've transfer the start-up commands into an entrypoint script and allow starting other commands for troubleshooting.

Hope it helps


  • Run application by an entrypoint.sh script to allow more debug options

@ssiuhk ssiuhk force-pushed the allow_debug_startup branch from 4662710 to 05d23aa Compare February 18, 2021 14:56
- Run application by an entrypoint.sh script to allow more debug options
@ssiuhk ssiuhk force-pushed the allow_debug_startup branch from 05d23aa to 4d2b172 Compare February 18, 2021 15:11
@ssiuhk ssiuhk changed the title Allow turning on --verbose mode by environment variable $DEBUG Allow turning on --verbose mode by environment variable $DEBUG_MODE Feb 18, 2021
@@ -0,0 +1,22 @@
#!/bin/sh
Copy link

@MestreLion MestreLion Nov 7, 2024

Choose a reason for hiding this comment

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

As the script relies on bash, and may fail in a simpler POSIX plain sh (or even in bash on POSIX mode), it is advisable to set it as #!/bin/bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants