Enhanced Initialization, Logging, and Diagnostics for cBioPortal Docker Compose Setup #47
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes #46
Summary of Changes:
Improved Error Handling:
set -eo pipefail
to all scripts to ensure termination on errors..env
,application.properties
,cgds.sql
, etc.).init.sh
scripts, failed downloads).Enhanced Logging:
[INFO]
,[SUCCESS]
, and[ERROR]
.debug.log
) to capture detailed execution traces when needed.Optimized File Operations:
.env
files to safely handle special characters.Cross-Platform Compatibility:
dos2unix
in the diagnostic script (debug_env.sh
)..sh
scripts.New Diagnostic Script (
debug_env.sh
):./init.sh
) and captures its output in a debug log.Testing Instructions for Reviewers:
Setup Environment:
.env
file exists in the root directory with valid entries for required variables:Run Diagnostic Script:
debug.log
for any warnings or errors.Test Main Initialization Script (
./init.sh
):config/init.sh
,study/init.sh
,data/init.sh
) execute without errors.config/application.properties
data/cgds.sql
data/seed.sql.gz
study/
(e.g.,lgg_ucsf_2014
,msk_impact_2017
).Simulate Failure Scenarios:
.env
file:Verify Logs:
debug.log
, timestamped logs).Screenshots/Logs Showing Successful Execution
1. Folder Structure After Execution
Folder Structure
2. Diagnostic Script Output (
debug_env.sh
)3. Main Initialization Script Output (
./init.sh
)4. Generated Files
config/application.properties
data/cgds.sql
data/seed.sql.gz
study/
: