Files
stacks-blockchain-api/rosetta-cli-config/docker/docker-entrypoint.sh
Asim Mehmood f764054cb8 feat: rosetta data api and construction validation with rosetta-cli
* test: added test for rosetta cli check:construction and check:data

* ci: added github workflow to test  roseta-cli:data

* ci: add github action for rosetta-cli: construction

* refactor: refactor cli tests

* fix: use localhoust for github actions in rosetta config file

* fix: github actions

* fix: rebase issue

* refactor: update rosetta-cli env files path

* refactor: remove hard coded cli container and use rosetta-cli ouput

* perf: remove unnecessary wait of 20 seconds
2021-11-16 10:18:04 -06:00

16 lines
405 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 "$@"