Fix: Revert Cluster Setup File (#342)

* Reverted changes of cluster setup

* Reverted cluster setup file
This commit is contained in:
Brian Hoang 2019-02-07 12:26:20 -08:00 коммит произвёл GitHub
Родитель ec1a4df838
Коммит 372e382048
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 26 добавлений и 3 удалений

Просмотреть файл

@ -1,4 +1,27 @@
#!/bin/bash #!/bin/bash
wget https://github.com/Azure/batch-insights/releases/download/go-beta.1/batch-insights # Entry point for the start task. It will install the docker runtime and pull down the required docker images
chmod +x batch-insights apt-get -y install linux-image-extra-$(uname -r) linux-image-extra-virtual
./batch-insights > node-stats.log &
apt-get -y install apt-transport-https
apt-get -y install curl
apt-get -y install ca-certificates
apt-get -y install software-properties-common
# Install docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get -y update
apt-get -y install docker-ce
# Unzip resource files and set permissions
apt-get -y install zip unzip
# Check docker is running
docker info > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "UNKNOWN - Unable to talk to the docker daemon"
exit 3
fi
# Create required directories
mkdir -p /mnt/batch/tasks/shared/R/packages