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.yml refactor #114

Merged

Conversation

steven-tomlinson
Copy link
Contributor

@steven-tomlinson steven-tomlinson commented Nov 29, 2023

What

Refactor docker-compose to move 'depends_on' settings to top-level docker-compose.yml

Why

Extended services may not use depends_on.
https://docs.docker.com/compose/compose-file/05-services/#restrictions

Known limitations

N/A

Checklist

PR Structure

  • [ x] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
  • [ x This PR does not mix refactoring changes with feature changes (split into two PRs otherwise).
  • [x ] This PR's title starts with the name of the package, area, or subject affected by the change.

Thoroughness

  • [ x] This PR adds tests for the new functionality or fixes.
  • [ x] This PR contains the link to the Jira ticket it addresses.

Configs and Secrets

  • [ x] No new CONFIG variables are required -OR- the new required ones were added to the helmchart's values.yaml file.
  • [ x] No new CONFIG variables are required -OR- the new required ones were added to the deployments (pr-preview, dev, demo, prd).
  • [ x] No new SECRETS variables are required -OR- the new required ones were mentioned in the helmchart's values.yaml file.
  • [ x] No new SECRETS variables are required -OR- the new required ones were added to the deployments (pr-preview secrets, dev secrets, demo secrets, prd secrets).

Release

  • [x ] This is not a breaking change.
  • [ x] This is ready for production.. If your PR is not ready for production, please consider opening additional complementary PRs using this one as the base. Only merge this into develop or main after it's ready for production!

Deployment

  • [ x] Does the deployment work after merging?

Had to remove depends_on entries from services in order to install. 

This error typically occurs when a service defined in a Docker Compose file attempts to extend another service that has depends_on attributes. According to Docker Compose's documentation, a service that uses depends_on cannot be extended.
Removed depends_on references.

This error typically occurs when a service defined in a Docker Compose file attempts to extend another service that has depends_on attributes. According to Docker Compose's documentation, a service that uses depends_on cannot be extended
Removed depends_on references

This error typically occurs when a service defined in a Docker Compose file attempts to extend another service that has depends_on attributes. According to Docker Compose's documentation, a service that uses depends_on cannot be extended
Moves depends_on to main docker.compose.
Moves depends_on to main docker.compose.
Moves depends_on to main docker.compose.
Moves 'depends_on' sections from service definitions to top-level docker-compose.yml 

https://docs.docker.com/compose/compose-file/05-services/#restrictions
@steven-tomlinson steven-tomlinson changed the title refactor move depends_on from child docker pakages docker-compose.yml refactor Nov 29, 2023
Copy link
Collaborator

@marwen-abid marwen-abid left a comment

Choose a reason for hiding this comment

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

Thank you for this contribution @steven-tomlinson! There is just one small typo to fix then we can get this merged in the repo.

dev/docker-compose.yml Outdated Show resolved Hide resolved
dev/docker-compose.yml Show resolved Hide resolved
Corrects typo in version number.
Copy link
Contributor Author

@steven-tomlinson steven-tomlinson left a comment

Choose a reason for hiding this comment

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

Fixed typo in docker-compose.yml

steven-tomlinson

This comment was marked as duplicate.

@steven-tomlinson steven-tomlinson had a problem deploying to Anchor Integration Tests December 7, 2023 21:16 — with GitHub Actions Failure
@steven-tomlinson steven-tomlinson had a problem deploying to Receiver Registration - E2E Integration Tests December 7, 2023 21:16 — with GitHub Actions Failure
@marwen-abid marwen-abid merged commit 36ed4b5 into stellar:develop Dec 7, 2023
4 of 6 checks passed
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.

2 participants