Add Docker and Docker Compose workflow for Synthea#1652
Open
sauravkumarsahoo wants to merge 3 commits into
Open
Add Docker and Docker Compose workflow for Synthea#1652sauravkumarsahoo wants to merge 3 commits into
sauravkumarsahoo wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a containerized workflow for running Synthea locally via Docker/Docker Compose, including an env-driven entrypoint and documentation updates. This fits the repo by providing a reproducible runtime and build path for generating artifacts without requiring a local Java/Gradle setup.
Changes:
- Add a multi-stage
Dockerfilethat builds the shaded Synthea JAR and runs it via an entrypoint script. - Add
docker-entrypoint.shto translate env vars into Synthea CLI/config flags (including output format toggles). - Add
compose.yaml,.env.example, and README instructions for local Compose-based runs; ensureversion.txtexists before resource processing.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| docker-entrypoint.sh | New entrypoint to configure Synthea via env vars / CLI passthrough. |
| Dockerfile | Multi-stage build producing a runnable image with the entrypoint. |
| compose.yaml | Local Compose service wiring env vars + output volume mount. |
| .env.example | Example env file documenting supported Compose/runtime variables. |
| build.gradle | Ensure version.txt is generated before resource processing. |
| README.md | Document Docker + Compose usage and configuration options. |
| .dockerignore | Reduce Docker build context (exclude git/build/output/IDE files). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Created a Docker and Docker Compose based workflow to simplify synthetic patient data generation using a container to manage and abstract all dependencies, and allow end-users to focus of running the container with specified .env to get their desired outputs directly.
Summary
version.txtis generated before processing resourcesNotes
.envis intentionally not included in this PR