Skip to content

Add dev-to-prod compose transformation tooling#185

Open
briannadelvalle-datadog wants to merge 1 commit into
TRAIN-3546-docker-compose-healthchecksfrom
TRAIN-3546-compose-transform-tooling
Open

Add dev-to-prod compose transformation tooling#185
briannadelvalle-datadog wants to merge 1 commit into
TRAIN-3546-docker-compose-healthchecksfrom
TRAIN-3546-compose-transform-tooling

Conversation

@briannadelvalle-datadog

Copy link
Copy Markdown

Summary

  • Adds scripts/transform_compose.py and scripts/transform_compose_frontend.py to generate a production docker-compose configuration from the dev file (image swaps, development -> production targets, frontend build -> image, comment stripping).
  • Adds unittest coverage in scripts/test_transform_compose.py and scripts/test_transform_compose_frontend.py (20 tests).

Stack

Part of the TRAIN-3546 split. Base: TRAIN-3546-docker-compose-healthchecks (tooling targets the finalized compose structure). Merge after #184.

Test plan

  • cd scripts && python3 -m unittest test_transform_compose test_transform_compose_frontend

Made with Cursor

Add scripts/transform_compose.py and transform_compose_frontend.py to
generate a production docker-compose configuration from the dev file
(image swaps, development->production build targets, frontend
build->image, comment stripping), with unittest coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant