mirror of
https://github.com/logos-storage/logos-storage-local-harness.git
synced 2026-01-02 13:33:11 +00:00
15 lines
270 B
Bash
Executable File
15 lines
270 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e -o pipefail
|
|
|
|
if [ "$OSTYPE" = "darwin" ]; then
|
|
HOST_IP="host-gateway"
|
|
elif [ "$OSTYPE" = "linux-gnu" ]; then
|
|
HOST_IP=$(hostname -I | cut -d " " -f 1)
|
|
else
|
|
echo "Unsupported OS: $OSTYPE"
|
|
exit 1
|
|
fi
|
|
|
|
export HOST_IP
|
|
docker compose up "$@"
|