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 the directory, as using the '-f' flag would ignore a possibly existing `docker-compose.override.yml' * using remove-orphans to automatically adjust when services are removed from the stack
- 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 --remove-orphans" | ||
alias iotstack_down="cd "$IOTSTACK_HOME" && docker-compose down --remove-orphans" | ||
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 --build "$@"; }; 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