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

normalize usage of docker-compose #774

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions shift
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,7 @@ sub_attach() { # <service> - Run bash on a running service
}

sub_compose() { # <cmd...> - Run a compose with associated files
OS=`uname`
if [ "$OS" == "Darwin" ] ; then
docker compose $@
elif [ "$OS" == "Linux" ] ; then
docker-compose $@
else
echo "not sure how to handle your OS' version of docker. One of the above should work!"
exit 255
fi
docker-compose $@
}

sub_logs() { # <service>, ... - Show last 50 lines and attach to a service
Expand Down