Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Compose support #83

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

Docker Compose support #83

wants to merge 16 commits into from

Commits on Feb 23, 2023

  1. Configuration menu
    Copy the full SHA
    a198e96 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    30d54a6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    60716a9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    05833c4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1a830f7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a791af5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c90b017 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7e311d3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ebf5acb View commit details
    Browse the repository at this point in the history
  10. Update: add options and resource policy handling

    * Options for `docker compose`
      * `ModDir` as special value that designates module's root directory use with `WithProjectDir`
        * User can specify Docker Compose config files by relative path from module directory
    * Design resource policy of `Compose`
      * Remove resources created by `ComposeProject` itself
      * Do not remove resources created by other process
      * Add `compose.ScalePolicy`
      * Follow `ResourcePolicy`
    daichitakahashi committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    b24ed97 View commit details
    Browse the repository at this point in the history
  11. Update: use ScalingPolicy as project scope constraints

    * If user needs consistency about scaling of service, use `WithScalingPolicies` like below:
    ```
    confort.Compose(ctx, "compose.yaml", confort.WithScalingPolicies(map[string]compose.ScalingPolicy{
        "serviceA": compose.ScalingPolicyScalable, // It's default value, allows service to scale out.
        "serviceB": compose.ScalingPolicyConsistent, // Prohibit service from scaling out.
    }))
    ```
    daichitakahashi committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    06a4b4a View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    eccff30 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    17cb24f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    6b96f72 View commit details
    Browse the repository at this point in the history
  15. Update confort: fix test TestComposeBackend_Load

    * Compare configuration used for calling Docker Compose CLI with golden files
    daichitakahashi committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    1b56a8d View commit details
    Browse the repository at this point in the history
  16. WIP

    daichitakahashi committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    899dd58 View commit details
    Browse the repository at this point in the history