Skip to content

Adding custom services #415

Description

@uwej711

What is the problem you are trying to solve by the feature?

For our local development I would like to have the possibility to add custom services to simplify development. These are basically mocks for real services used in other environments. Adding them to the docker environment would allow us to easily make this available to all developers on the team.

What is the solution do you propose?

You should be able to add new services to the deploy.*.yml files and docker/sdk boot should be able to add them to the deployment. From what I've seen so far, the main change would be to add not only the deploy.yml from the project directory but also the needed templates. For our concrete case that would be a "mockservice.yml.twig" (for docker-compose.yml) and a "mockservice.server.conf.twig" for the gateway configuration.

These files could be placed in some folder at the project level, copied to the generator temp dir and this path added to the twig environment.

What changes in deploy.yml format do you propose?

No extra changes to the format necessary.

What changes in command line interface do you propose?

No changes for the cli necessary

What alternatives have you considered?

I added the files locally to the docker-sdk src and it works.

PR

If there is a change for this change to be accepted as a PR I can try to prepare one.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions