Introduction to Containers and CI/CD
Dependency Management
Docker Fundamentals
Environment Variables and Configuration
Python CI Pipeline
Azure Container Registry and Deployment
Practice
Assignment
Gotchas & Pitfalls
Week 5 Lesson Plan (Teachers)
Environment Variables and Configuration
Content coming soon...
Suggested Topics
- Why configuration should not be hardcoded in source code
- The twelve-factor app approach to configuration
- Using environment variables in Python:
os.environ and os.getenv
- Passing environment variables to Docker:
docker run -e and --env-file
- The .env file: local development convenience
- Keeping secrets out of version control: .gitignore and .env.example patterns
- Configuration hierarchy: defaults, .env files, environment variables, CLI arguments
- Validating configuration at startup: failing fast on missing required values
- Common configuration values for data apps: database URLs, API keys, log levels
The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0

*https://hackyourfuture.net/*
Found a mistake or have a suggestion? Let us know in the feedback form.