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

Console commands #7

Open
rwstauner opened this issue Mar 19, 2021 · 2 comments
Open

Console commands #7

rwstauner opened this issue Mar 19, 2021 · 2 comments

Comments

@rwstauner
Copy link
Contributor

rwstauner commented Mar 19, 2021

We could define common commands in module definitions.

Then you could do muss console psql (or muss console db or whatever you want to call it)
instead of muss run postgres psql or psql -h $dockerhost -p $exposedport -U $whatuserisit

If we used this instead of using psql directly then you wouldn't need to expose global ports and could avoid port conflicts that come from running too many projects.

@rwstauner
Copy link
Contributor Author

A good default console command could be:

console_default_command: [sh, -c, 'exec `command -v bash || echo sh` "$@"', --]

so that muss console container-name would default to bash and fallback to sh if nothing more specific was defined

@rwstauner
Copy link
Contributor Author

maybe a --run arg to use run instead of exec?
or

console_prefer_run: true

?

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