mirror of
https://github.com/weaveworks/scope.git
synced 2026-02-14 18:09:59 +00:00
use weavescope image for all remote work, so they're labelled works.weave.role=system
This commit is contained in:
4
scope
4
scope
@@ -95,7 +95,7 @@ weave_dns_add() {
|
||||
}
|
||||
|
||||
weave_dns_present() {
|
||||
docker run --rm gliderlabs/alpine nc -z $DOCKER_BRIDGE_IP 53 || is_running $WEAVEDNS_CONTAINER_NAME
|
||||
docker run --rm --entrypoint /bin/sh $SCOPE_IMAGE -c "nc -z $DOCKER_BRIDGE_IP 53" || is_running $WEAVEDNS_CONTAINER_NAME
|
||||
}
|
||||
|
||||
set_docker_bridge_ip() {
|
||||
@@ -168,7 +168,7 @@ case "$COMMAND" in
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
$WEAVESCOPE_DOCKER_ARGS $SCOPE_IMAGE $WEAVESCOPE_DNS_ARGS $SCOPE_ARGS --probe.docker true "$@")
|
||||
|
||||
IP_ADDRS=$(docker run --rm --net=host gliderlabs/alpine /bin/sh -c "$IP_ADDR_CMD")
|
||||
IP_ADDRS=$(docker run --rm --net=host --entrypoint /bin/sh $SCOPE_IMAGE -c "$IP_ADDR_CMD")
|
||||
if command_exists weave && is_running $WEAVE_CONTAINER_NAME && weave_dns_present; then
|
||||
if [ -z "$IP_ADDRS" ]; then
|
||||
echo "Could not determine local IP address; Weave DNS integration will not work correctly."
|
||||
|
||||
Reference in New Issue
Block a user