diff options
Diffstat (limited to 'tools/docker')
-rw-r--r-- | tools/docker/demo_deploy.sh | 4 | ||||
-rw-r--r-- | tools/docker/docker-cluster.sh | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/docker/demo_deploy.sh b/tools/docker/demo_deploy.sh index e25b19c..7943d18 100644 --- a/tools/docker/demo_deploy.sh +++ b/tools/docker/demo_deploy.sh @@ -50,11 +50,11 @@ bash ~/models/tools/docker/docker-cluster.sh all $master "$workers" # causes the ssh session to end before the prometheus setup, if both scripts # are in the same ssh session echo "Setting up Prometheus..." -ssh -x -o StrictHostKeyChecking=no ubuntu@$admin_ip mkdir -p \ +ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$admin_ip mkdir -p \ /home/ubuntu/models/tools/prometheus scp -r -o StrictHostKeyChecking=no ~/models/tools/prometheus/* \ ubuntu@$admin_ip:/home/ubuntu/models/tools/prometheus -ssh -x -o StrictHostKeyChecking=no ubuntu@$admin_ip <<EOF +ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$admin_ip <<EOF exec ssh-agent bash ssh-add $key cd models/tools/prometheus diff --git a/tools/docker/docker-cluster.sh b/tools/docker/docker-cluster.sh index ce2701d..3d0a34b 100644 --- a/tools/docker/docker-cluster.sh +++ b/tools/docker/docker-cluster.sh @@ -76,10 +76,10 @@ EOF # jq is used for parsing API reponses sudo apt-get install -y jq scp -o StrictHostKeyChecking=no /tmp/prereqs.sh ubuntu@$master:/home/ubuntu/prereqs.sh - ssh -x -o StrictHostKeyChecking=no ubuntu@$master bash /home/ubuntu/prereqs.sh + ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$master bash /home/ubuntu/prereqs.sh # activate docker API # Per https://www.ivankrizsan.se/2016/05/18/enabling-docker-remote-api-on-ubuntu-16-04/ - ssh -x -o StrictHostKeyChecking=no ubuntu@$master <<EOF + ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$master <<EOF sudo sed -i -- 's~fd://~fd:// -H tcp://0.0.0.0:4243~' /lib/systemd/system/docker.service sudo systemctl daemon-reload sudo service docker restart @@ -98,8 +98,8 @@ EOF for worker in $workers; do log "setting up worker at $worker" scp -o StrictHostKeyChecking=no /tmp/prereqs.sh ubuntu@$worker:/home/ubuntu/. - ssh -x -o StrictHostKeyChecking=no ubuntu@$worker bash /home/ubuntu/prereqs.sh - ssh -x -o StrictHostKeyChecking=no ubuntu@$worker sudo $token + ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$worker bash /home/ubuntu/prereqs.sh + ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$worker sudo $token done log "testing service creation" |