PromucFlow_constructor/deploy/docker/route-tests/run.sh
Shrikant Sharat Kandula 0a9f9b9043
test: Fix Caddy route tests with custom Caddy (#32675)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **Refactor**
- Updated base Docker image and installation processes for tools within
the Docker environment.
- **Chores**
- Modified scripts to enhance file handling and environment variable
configurations.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-04-18 14:03:10 +05:30

25 lines
435 B
Bash
Executable File

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