-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: add cluster db commands, update images on up, add compose cmd #95
Conversation
One question here - does It might be a bit obtuse, something like |
Centralize and reuse e.g. commands -> cacheLocation? |
Yeah, definitely agree. I'll leave that for later though since it would touch a bunch more files. Thanks for the review @janhenrikoverland ! |
# [1.4.0](v1.3.0...v1.4.0) (2019-07-02) ### Features * add cluster db commands, update images on up, add compose cmd ([#95](#95)) ([7dd4fc1](7dd4fc1))
🎉 This PR is included in version 1.4.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This feature PR adds a few handy commands to the
cluster
namespace:d2 cluster db backup <name> <path>
andd2 cluster db restore <name> [path]
for easy database lifecycle management outside the cluster volumes.d2 cluster compose <name> -- [args...]
command which passes through to the underlyingdocker-compose
and allows the user to perform arbitrarydocker-compose
commands without needing to specify the compose project name or the location of the docker-compose.yml file (which is in the d2 cache). An example usage isd2 cluster compose dev -- exec db 'sh'
which will execute an interactive shell terminal in thedb
container.d2 cluster up
command by automatically pulling the latest docker images when--update
is specifiedThis also deprecates the
d2 cluster seed
command (it's still there to prevent a breaking change, but hidden from the help output) in favor ofd2 cluster db restore