Files
stacks-blockchain-api/stacks-blockchain/docker/docker-entrypoint.sh
Faried Nawaz 3b2104e11b test: add github action to test rosetta endpoints
Also add "npm run test:integration:rosetta"

Change made by @zone117x in https://github.com/fariedt/stacks-blockchain-api/pull/2
2020-09-08 18:23:05 +02:00

16 lines
407 B
Bash

#!/usr/bin/env bash
# Use this script to enable host.docker.internal on Docker for linux.
# See https://github.com/bufferings/docker-access-host
HOST_DOMAIN="host.docker.internal"
ping -q -c1 $HOST_DOMAIN > /dev/null 2>&1
if [ $? -ne 0 ]; then
HOST_IP=$(ip route | awk 'NR==1 {print $3}')
echo -e "$HOST_IP\t$HOST_DOMAIN" >> /etc/hosts
fi
cat /etc/hosts
echo "patched host.docker.internal"
exec "$@"