Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Feature: Spark vnet custom dns hostname fix #490

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions aztk/node_scripts/setup_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ apt-get -y update
apt-get -y install docker-ce
echo "Done installing Docker"

# set hostname in /etc/hosts if dns cannot resolve
if ! host $HOSTNAME ; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: add some echo statements here to know what the script is trying to do.

echo $(hostname -I | awk '{print $1}') $HOSTNAME >> /etc/hosts
fi

if [ $gpu_enabled == "True" ]; then
echo "running nvidia install"
sudo apt-get -y install nvidia-384
Expand Down