Created
May 10, 2015 16:13
-
-
Save Neppord/2c2be5989012dad1949d to your computer and use it in GitHub Desktop.
compose alias
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
#! /usr/bin/env bash | |
set -e | |
( | |
__DIR="$PWD" | |
while [ "$__DIR" != "/" ] && [ ! -e "${__DIR}/docker-compose.yml" ]; do | |
__DIR=`dirname "$__DIR"` | |
done | |
cd "$__DIR" | |
docker-compose $* | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment