Skip to content

Instantly share code, notes, and snippets.

@Brunty
Created July 7, 2017 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Brunty/66d7ca7500f353a5fac7784777c15258 to your computer and use it in GitHub Desktop.
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
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