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

Improve Docker Compose handling #230

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

bartmkraus
Copy link
Member

- run:
name: Copy base docker-compose
command: |
cp ../docker-compose.base.yml ./docker-compose.base.yml
Copy link
Contributor

Choose a reason for hiding this comment

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

This won't ever work. CI is not working in scope of full_stack repo.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this caught me off guard and I haven't come up with a solution yet. But as you mentioned in another comment, having the docker-compose.yml only in the full stack repo would make it very difficult to implement proper CI and testing. It would require some bash scripts which will add extra overhead in terms of their maintenance.

- db
db:
extends:
file: ../docker-compose.base.yml
Copy link
Contributor

Choose a reason for hiding this comment

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

This would be okay approach with monorepo, but not really with current wonky git submodules approach.
Maybe it'd be better to have whole docker-compose.yml in full stack repo, but then again - CI and testing would become more complex.

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