Add support to auto-generate Dockerfile from domain config #397
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Auto-generation of docker-compose.yml
This feature aims to automate the creation of docker-compose.yml from the project's configuration to simplify spinning up associated services for a Protean domain.
Docker will continue to be the tool of choice for ensuring consistency across environments, from development to production. However, crafting Docker Compose files manually:
Since developers specify their domain's core dependencies and environment within the Protean configuration file, the tool can automatically generate a
docker-compose.yml
that seamlessly spins up services in the local development environment and can come in handy during deployment. Developers who need specific configurations for complex applications can tweak, enhance, and build on the generateddocker-compose.yml
.Background
Benefits of providing an easy path to
docker-compose.yml
:docker-compose.yml
will help developers test against different permutations and combinations without installing all the software locally.Detailed Proposal
Outline the feature in detail, including how it should work, any new concepts or terminology, configuration options, and examples of how it would be used.
docker-compose.yml
perspective.docker-compose.yml
template withjinja2
, populated with relevant service sections.protean generate docker-compose --domain-path=path/to/domain.py
docker-compose.yml
already exists.Alternatives Considered
NA.
Impact
NA.
Open Questions
docker-compose.yml
and support deployment artifacts for popular deployment patterns (Kubernetes, Fargate, etc.)?Dockerfile
with a list of supported servers? (Gunicorn, flask, uwsgi, fastapi, etc.)The text was updated successfully, but these errors were encountered: