start stack from container (#40)
resolves #36 Co-authored-by: johba <johba@harb.eth> Reviewed-on: https://codeberg.org/johba/harb/pulls/40
This commit is contained in:
parent
3a7162462b
commit
4f7cebda56
10 changed files with 160 additions and 5 deletions
|
|
@ -18,6 +18,11 @@ start_stack() {
|
|||
rm -f "$PID_FILE"
|
||||
fi
|
||||
|
||||
# Show branch if set
|
||||
if [[ -n "${GIT_BRANCH:-}" ]]; then
|
||||
echo "Branch: $GIT_BRANCH"
|
||||
fi
|
||||
|
||||
echo "Building kraiken-lib..."
|
||||
./scripts/build-kraiken-lib.sh
|
||||
|
||||
|
|
@ -71,7 +76,16 @@ check_health() {
|
|||
}
|
||||
|
||||
usage() {
|
||||
echo "Usage: $0 {start|stop|health}"
|
||||
cat <<EOF
|
||||
Usage: $0 {start|stop|health}
|
||||
|
||||
Environment Variables:
|
||||
GIT_BRANCH Branch to checkout in containers
|
||||
|
||||
Examples:
|
||||
GIT_BRANCH=fix/something ./scripts/dev.sh start
|
||||
./scripts/dev.sh health
|
||||
EOF
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue