Skip to content

Commit

Permalink
fix: Support for host.docker.internal
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk authored Nov 22, 2024
1 parent a605ba2 commit adfc728
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,11 @@ if [ -f "${INPUT_CONFIG_FILE}" ]; then
export NODE_CONFIG_DIR=
fi

# Check if running inside a GitHub Action, and configure host.docker.internal if so
if [ -n "$GITHUB_ACTIONS" ]; then
echo "Running inside GitHub Actions. Adding host.docker.internal to /etc/hosts."
echo "172.17.0.1 host.docker.internal" >> /etc/hosts
fi

# Change directory and start the app
cd /openactive-test-suite && exec npm start -- "$@"

0 comments on commit adfc728

Please sign in to comment.