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

Update docker environment to work with graphile-migrate watch, commit and uncommit commands #49

Open
wgwz opened this issue Sep 28, 2023 · 0 comments

Comments

@wgwz
Copy link
Contributor

wgwz commented Sep 28, 2023

The current docker environment and in particular the indexer container do not support the watch, commit and uncommit commands from graphile-migrate.

At the moment, the only way to use those commands is to run them locally (on your host computer, not with docker).
It may be nice to be able to support those commands with the docker setup.
That said, I personally think it may be fine to leave it as is for a while.
The migrations/README.md documents how to run these locally without docker.

In order to support these commands I think we would need to set up a volume that mounts at minimum these files and paths:

  • .gmrc
  • migrations/*

The watch command watches migrations/current.sql and runs the file against the db any time a change is detected.
The commit command commits the changes in migrations/current.sql and adds a file to migrations/committed/.
The uncommit command reverse the commit command.

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

No branches or pull requests

1 participant