armada/entrypoint.sh

17 lines
198 B
Bash
Executable File

#!/bin/bash
CMD="armada"
PORT="8000"
set -e
if [ "$1" = 'server' ]; then
gunicorn server:api -b :$PORT
fi
if [ "$1" = 'tiller' ] || [ "$1" = 'apply' ]; then
exec $CMD "$@"
fi
exec "$@"