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

CH-100 Add preliminary docker-compose support #735

Merged
merged 102 commits into from
Sep 17, 2024
Merged

Conversation

aranega
Copy link
Member

@aranega aranega commented Feb 23, 2024

Closes CH-100

Adds a preliminary docker-compose support for cloud-harness.

Implemented solution:
The implementation relies on helm templates dedicated for docker-compose.
A new folder can be defined and used for all docker-compose related templates, while a mechanism allows one to define where some files can be generated.
On a general note, all files that needs to be generated from templates and needs to be embedded in containers needs to be generated in a specific directory in the file system.
The generated files are then mounted in the countainer.

How to test this PR:
There is a new option --docker-compose that can be passed as argument of the command line for the harness-deployment command.
This new option will generate in deployment/compose all the templates and specific files for the cloudharness deployment, a deployment/docker-compose.yaml will be produced, and the skaffold.yaml file is modified to target docker-compose for deployment (even if this feature is still not yet supported).

Sanity checks:

  • The pull request is explicitly linked to the relevant issue(s)
  • [ X The issue is well described: clearly states the problem and the general proposed solution(s)
  • From the issue and the current PR it is explicitly stated how to test the current change
  • The labels in the issue set the scope and the type of issue (bug, feature, etc.)
  • All the automated test checks are passing
  • All the linked issues are included in one milestone
  • All the linked issues are in the Review/QA column of the board
  • All the linked issues are assigned

Breaking changes (select one):

  • The present changes do not change the preexisting api in any way
  • This PR and the issue are tagged as a breaking-change

Possible deployment updates issues (select one):

  • There is no reason why deployments based on CloudHarness may break after the current update
  • This PR and the issue are tagged as alert:deployment

Test coverage (select one):

  • Tests for the relevant cases are included in this pr
  • The changes included in this pr are out of the current test coverage scope

Documentation (select one):

  • The documentation has been updated to match the current changes
  • The changes included in this PR are out of the current documentation scope

Nice to have (if relevant):

  • Screenshots of the changes
  • Explanatory video/animated gif

commit c698bbadf4f5cf41a59818d3738258fb29919249
Author: aranega <[email protected]>
Date:   Wed Feb 7 08:55:45 2024 -0600

    CH-100 Add second path using pathlib

commit 0422bfe9860f272354c1faadd851d37b4976650a
Author: aranega <[email protected]>
Date:   Wed Feb 7 07:33:43 2024 -0600

    CH-100 Add first port to pathlib

return values

def inject_entry_points_commands(self, helm_values, image_path, app_path):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is necessary: we do command overriding on skaffold to enable debugging that doesn't work well with unicorn

@filippomc filippomc marked this pull request as ready for review September 17, 2024 16:19
@filippomc filippomc merged commit 3def2a6 into develop Sep 17, 2024
8 checks passed
@filippomc filippomc deleted the feature/CH-100 branch September 17, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants