#!/bin/bash
# Gateway Project Main Script

#
# Use shellcheck to lint this file
#

base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )

: "${GATEWAY_CONFIG_DIR:="$base_dir/config"}"

# Set configuration directory
export GATEWAY_CONFIG_DIR

# Execute the gateway application with the main class
exec "$base_dir"/bin/gateway-run-class io.confluent.gateway.app.GatewayApplication "$@"
