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

fix: docker compose migrate not working (#773) #800

Merged

Conversation

ogomezm
Copy link
Contributor

@ogomezm ogomezm commented Dec 22, 2021

This Pull request closes #773

The issue is related to the ENTRYPONT and the CMD within the Dockerfile, both are using the exec format ["keto"] and ["serve"]. That forces the usage of exec form instead of the bash form into the docker-compose commands ["migrate", "up", "-y"]

In addition to that, a new config folder with a default keto.yml file has been added to the repository so as to be able to test the docker-compose.

Use docker-compose -f docker-compose-postgres.yml up to test PostgreSQL.

MySQL docker-compose has been tested and not working yet.

Align the docker-compose with the ENTRYPOINT and CMD of the Dockerfile
Use exec form in docker-compose as in the Dockerfile.
Use `docker-compose -f docker-compose-postgres.yml up` to test it
@CLAassistant
Copy link

CLAassistant commented Dec 22, 2021

CLA assistant check
All committers have signed the CLA.

@ogomezm ogomezm changed the title Fix/#773 docker compose migrate not working fix docker compose migrate not working (#773) Dec 22, 2021
@ogomezm ogomezm changed the title fix docker compose migrate not working (#773) fix: docker compose migrate not working (#773) Dec 22, 2021
@aeneasr
Copy link
Member

aeneasr commented Dec 22, 2021

Thank you, this looks great! Could you please sign the CLA (just two clicks), then we can merge it right away!

@ogomezm
Copy link
Contributor Author

ogomezm commented Dec 22, 2021

Ok, I have signed it already.

Copy link
Member

@zepatrik zepatrik left a comment

Choose a reason for hiding this comment

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

Perfect, thank you 👍

@zepatrik zepatrik merged commit f1599a4 into ory:master Dec 22, 2021
@vinckr
Copy link
Member

vinckr commented Dec 23, 2021

Hello @ogomezm
Congrats on merging your first PR in Ory!
We send all our first time contributors a gift package to welcome them to the community.
Please drop me an email to claim your Ory swag: vincent@ory.sh.

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.

docker compose files using invalid migrate syntax
5 participants