forked from gcgarner/IOTstack
-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix .bash_aliases to not to assume ~/IOTstack
* must change directory, as using only the '-f' flag would ignore a possibly existing `docker-compose.override.yml'
- Loading branch information
Showing
3 changed files
with
23 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
alias iotstack_up="docker-compose -f ~/IOTstack/docker-compose.yml up -d" | ||
alias iotstack_down="docker-compose -f ~/IOTstack/docker-compose.yml down" | ||
alias iotstack_start="docker-compose -f ~/IOTstack/docker-compose.yml start" | ||
alias iotstack_stop="docker-compose -f ~/IOTstack/docker-compose.yml stop" | ||
alias iotstack_update="docker-compose -f ~/IOTstack/docker-compose.yml pull" | ||
alias iotstack_build="docker-compose -f ~/IOTstack/docker-compose.yml build" | ||
|
||
IOTSTACK_HOME="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
alias iotstack_up="cd "$IOTSTACK_HOME" && docker-compose up -d --build --remove-orphans" | ||
alias iotstack_down="cd "$IOTSTACK_HOME" && docker-compose down" | ||
alias iotstack_start="cd "$IOTSTACK_HOME" && docker-compose start" | ||
alias iotstack_stop="cd "$IOTSTACK_HOME" && docker-compose stop" | ||
alias iotstack_pull="cd "$IOTSTACK_HOME" && docker-compose pull" | ||
alias iotstack_build="cd "$IOTSTACK_HOME" && docker-compose build --pull --no-cache" | ||
alias iotstack_update_docker_images='f(){ iotstack_pull "$@" && iotstack_build "$@" && iotstack_up "$@"; }; f' |
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
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