Skip to content

Add Dockerfile for containerized data generation#31

Merged
midwire merged 7 commits intodevelopfrom
add-dockerfile
Feb 17, 2026
Merged

Add Dockerfile for containerized data generation#31
midwire merged 7 commits intodevelopfrom
add-dockerfile

Conversation

@midwire
Copy link
Copy Markdown
Owner

@midwire midwire commented Feb 17, 2026

Summary

  • Adds Dockerfile, entrypoint script, and .dockerignore so users can build and run the gem in a container without installing Ruby locally
  • Container produces SQLite database and CSV files, retrieved via a mounted volume
  • Supports optional COUNTRY env var to process a single country (validates 2-letter uppercase code)

Closes #20

Test Plan

  • Docker image builds successfully
  • docker run --rm -v $(pwd)/output:/output -e COUNTRY=AD free_zipcode_data produces SQLite DB + CSVs
  • SQLite database contains expected data (7 zipcodes for Andorra)
  • Invalid COUNTRY value rejected with clear error message
  • All existing tests pass (117 examples, 0 failures)
  • Rubocop clean (0 offenses)

@midwire midwire merged commit 79a2113 into develop Feb 17, 2026
@midwire midwire deleted the add-dockerfile branch February 17, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New feature request: Dockerfile

1 participant