You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
513 B
22 lines
513 B
5 years ago
|
#!/bin/bash
|
||
|
|
||
|
if [ "$?" != "0" ]; then
|
||
|
DOCKER_VM_IP=''
|
||
|
fi
|
||
|
|
||
|
if [ -z "$TRAVIS" ]; then
|
||
|
if docker info | grep Alpine > /dev/null; then
|
||
|
echo "Looks like docker for mac is running"
|
||
|
DOCKER_VM_IP='127.0.0.1'
|
||
|
elif docker info | grep dlite > /dev/null; then
|
||
|
echo "Looks like docker based on dlite is running"
|
||
|
DOCKER_VM_IP=`dlite ip`
|
||
|
fi
|
||
|
|
||
|
export KAFKA_ADVERTISED_HOST_NAME=$DOCKER_VM_IP
|
||
|
docker-compose down
|
||
|
docker-compose up -d
|
||
|
else
|
||
|
DOCKER_VM_IP='127.0.0.1'
|
||
|
fi
|