Containerization and Infrastructure as Code

Run data pipelines and PostgreSQL in Docker, then provision cloud infrastructure with Terraform.

13 lessons · homework closed Jan 25, 2027

Lessons

Units

  1. Introduction to Docker

    Introduce Docker images and containers, basic Docker commands, stateless containers, and sharing host files through volumes.

  2. Virtual Environments and Data Pipelines

    Build a simple pandas pipeline and set up an isolated Python environment with uv.

  3. Dockerizing the Pipeline

    Containerize the pandas pipeline with Dockerfiles, first using pip and then using uv.

  4. Running PostgreSQL with Docker

    Run PostgreSQL in Docker with named volumes and port mapping, then connect and run basic SQL with pgcli.

  5. NY Taxi Dataset and Data Ingestion

    Load the NYC taxi CSV into PostgreSQL from a Jupyter notebook, setting dtypes and ingesting in chunks.

  6. Creating the Data Ingestion Script

    Convert the ingestion notebook into a Python script with click options for Postgres connection settings.

  7. pgAdmin - Database Management Tool

    Run pgAdmin in a second container on a shared Docker network and connect it to the Postgres container.

  8. Dockerizing the Ingestion Script

    Build a Docker image for the ingestion script and run it against the Postgres container on a shared network.

  9. Docker Compose

    Start Postgres and pgAdmin together with a Docker Compose file, then run the ingestion container on the compose network.

  10. SQL Refresher

    Practice SQL joins, data quality checks, grouping, and ordering on the taxi and zones tables.

    16 min
  11. Cleanup

    Remove Docker containers, images, volumes, networks, and local files to free disk space after the workshop.

  12. Terraform Overview

    Explain Terraform concepts, files, declarations, and the init, plan, apply, and destroy workflow.

    3 min
  13. GCP Overview

    Set up a Google Cloud project, service account, and credentials with the roles needed for GCS and BigQuery.

    3 min

Homework

Recordings, code and notes

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.