Created
July 7, 2017 14:04
-
-
Save Brunty/66d7ca7500f353a5fac7784777c15258 to your computer and use it in GitHub Desktop.
list all the mysql containers, get the info about them, and print only the DSN for each one
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dokku mysql:list | awk '!/NAME/{print $1}' | xargs -I % dokku mysql:info % | awk '/Dsn:/{print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment