Created
April 26, 2017 22:11
-
-
Save Hodgy/e6a7962e52b3926c2ece3f4c9d5cb585 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 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