Automation & Scripting
The Environment Puzzle
150 pts
0 solves
easy
hands-on
A startup script /opt/app/run.sh sources config from /opt/app/config.sh
then launches /opt/app/app.py. The Python app needs DB_HOST, DB_PORT,
and DB_NAME as environment variables, but config.sh sets them without
exporting -- so the child process never sees them.
Fix /opt/app/config.sh so the variables are properly exported.
Then run: bash /opt/app/run.sh
The watcher checks for /tmp/app_status.txt containing "connected".
Ready to solve this?
Create a free account to launch containers, submit answers, and track your progress.