-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Tool] dockerfile enhancement #30736
Conversation
* remove unused fe.conf be.conf from allin1 docker image /data/deploy/ directory (Fixes StarRocks#30523) * tail be/cn out and info log file if not running with LOG_CONSOLE=1 in case of expect shutdown, give chances of last words to console for debugging Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
[FE Incremental Coverage Report]😍 pass : 0 / 0 (0%) |
[BE Incremental Coverage Report]😍 pass : 0 / 0 (0%) |
@Mergifyio backport branch-3.2 branch-3.1 branch-3.0 branch-2.5 |
✅ Backports have been created
|
Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com> (cherry picked from commit 20b4833)
Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com> (cherry picked from commit 20b4833)
Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com> (cherry picked from commit 20b4833)
Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com> (cherry picked from commit 20b4833)
if [[ $ret -ne 0 && "x$LOG_CONSOLE" != "x1" ]] ; then | ||
nol=50 | ||
log_stderr "Last $nol lines of be.INFO ..." | ||
tail -n 50 $STARROCKS_HOME/log/be.INFO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tail -n $nol $STARROCKS_HOME/log/be.INFO
log_stderr "Last $nol lines of be.INFO ..." | ||
tail -n 50 $STARROCKS_HOME/log/be.INFO | ||
log_stderr "Last $nol lines of be.out ..." | ||
tail -n 50 $STARROCKS_HOME/log/be.out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tail -n $nol $STARROCKS_HOME/log/be.out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point
log_stderr "Last $nol lines of cn.INFO ..." | ||
tail -n $nol $STARROCKS_HOME/log/cn.INFO | ||
log_stderr "Last $nol lines of cn.out ..." | ||
tail -n $nol $STARROCKS_HOME/log/cn.out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked a k8s env, and there is no $STARROCKS_HOME
environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is set in entrypoint
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: