PromucFlow_constructor/deploy/docker/route-tests/run.sh

25 lines
435 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -o errexit
set -o nounset
2023-12-23 02:41:12 +00:00
cd "$(dirname "$0")"
docker build -f Dockerfile --tag ar ..
declare -a args
args+=(--hostname ar)
2023-12-23 06:38:04 +00:00
if [[ "${CI-}" != true ]]; then
2023-12-23 02:41:12 +00:00
args+=(--interactive --tty)
fi
docker run \
--name ar \
--rm \
2023-12-23 02:41:12 +00:00
"${args[@]}" \
-e OPEN_SHELL="${OPEN_SHELL-}" \
2023-12-23 02:41:12 +00:00
--volume "$(dirname "$PWD")/fs/opt/appsmith/caddy-reconfigure.mjs:/caddy-reconfigure.mjs:ro" \
--volume ".:/code:ro" \
ar