Fix: Revert Cluster Setup File (#342)
* Reverted changes of cluster setup * Reverted cluster setup file
This commit is contained in:
Родитель
ec1a4df838
Коммит
372e382048
|
@ -1,4 +1,27 @@
|
|||
#!/bin/bash
|
||||
wget https://github.com/Azure/batch-insights/releases/download/go-beta.1/batch-insights
|
||||
chmod +x batch-insights
|
||||
./batch-insights > node-stats.log &
|
||||
# Entry point for the start task. It will install the docker runtime and pull down the required docker images
|
||||
apt-get -y install linux-image-extra-$(uname -r) linux-image-extra-virtual
|
||||
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче