Add tag and logging options.
This commit is contained in:
parent
ddd4df92a2
commit
8ee61c4ebe
18
run.sh
18
run.sh
@ -59,6 +59,17 @@ echo "Starting API"
|
|||||||
cd /app/
|
cd /app/
|
||||||
yarn start &
|
yarn start &
|
||||||
|
|
||||||
|
LOG_OPTS=""
|
||||||
|
LOG_DIR="${LOG_DIR}"
|
||||||
|
|
||||||
|
if [[ -z "$LOG_DIR" ]] && [[ -d "/srv/containers/logs" ]]; then
|
||||||
|
LOG_DIR=/srv/containers/logs
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n "$LOG_DIR" ]]; then
|
||||||
|
LOG_OPTS="$LOG_OPTS --log-dir \"$LOG_DIR\""
|
||||||
|
fi
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
echo "=============================================================="
|
echo "=============================================================="
|
||||||
|
|
||||||
@ -69,6 +80,9 @@ while true; do
|
|||||||
--delete-names \
|
--delete-names \
|
||||||
--delete-volumes \
|
--delete-volumes \
|
||||||
--state-file /srv/deployments/webapps/autoremove.state \
|
--state-file /srv/deployments/webapps/autoremove.state \
|
||||||
|
--include-tags "$INCLUDE_TAGS" \
|
||||||
|
--exclude-tags "$EXCLUDE_TAGS" \
|
||||||
|
$EXTRA_UNDEPLOY_OPTS \
|
||||||
--discover
|
--discover
|
||||||
|
|
||||||
echo "############ DEPLOY #############"
|
echo "############ DEPLOY #############"
|
||||||
@ -81,6 +95,10 @@ while true; do
|
|||||||
--record-namespace-dns crn://${DEPLOYMENT_RECORD_NAMESPACE}/dns \
|
--record-namespace-dns crn://${DEPLOYMENT_RECORD_NAMESPACE}/dns \
|
||||||
--record-namespace-deployments crn://${DEPLOYMENT_RECORD_NAMESPACE}/deployments \
|
--record-namespace-deployments crn://${DEPLOYMENT_RECORD_NAMESPACE}/deployments \
|
||||||
--state-file /srv/deployments/webapps/autodeploy.state \
|
--state-file /srv/deployments/webapps/autodeploy.state \
|
||||||
|
--include-tags "$INCLUDE_TAGS" \
|
||||||
|
--exclude-tags "$EXCLUDE_TAGS" \
|
||||||
|
$LOG_OPTS \
|
||||||
|
$EXTRA_DEPLOY_OPTS \
|
||||||
--discover
|
--discover
|
||||||
|
|
||||||
# Cleanup any build leftovers
|
# Cleanup any build leftovers
|
||||||
|
Loading…
Reference in New Issue
Block a user