-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix myst reference, add missing config file
- Loading branch information
1 parent
5ad5fc3
commit 5221666
Showing
2 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
source/examples/xgboost-azure-mnmg-daskcloudprovider/configs/cloud_init.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#cloud-config | ||
|
||
|
||
# Bootstrap | ||
packages: | ||
- apt-transport-https | ||
- ca-certificates | ||
- curl | ||
- gnupg-agent | ||
- software-properties-common | ||
- ubuntu-drivers-common | ||
|
||
# Enable ipv4 forwarding, required on CIS hardened machines | ||
write_files: | ||
- path: /etc/sysctl.d/enabled_ipv4_forwarding.conf | ||
content: | | ||
net.ipv4.conf.all.forwarding=1 | ||
|
||
# create the docker group | ||
groups: | ||
- docker | ||
|
||
# Add default auto created user to docker group | ||
system_info: | ||
default_user: | ||
groups: [docker] | ||
|
||
|
||
runcmd: | ||
|
||
# Install Docker | ||
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | ||
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | ||
- apt-get update -y | ||
- apt-get install -y docker-ce docker-ce-cli containerd.io | ||
- systemctl start docker | ||
- systemctl enable docker | ||
|
||
|
||
|
||
# Install NVIDIA driver | ||
- DEBIAN_FRONTEND=noninteractive ubuntu-drivers install | ||
|
||
# Install NVIDIA docker | ||
- curl -fsSL https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - | ||
- curl -s -L https://nvidia.github.io/nvidia-docker/$(. /etc/os-release;echo $ID$VERSION_ID)/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list | ||
- apt-get update -y | ||
- apt-get install -y nvidia-docker2 | ||
- systemctl restart docker | ||
|
||
# Attempt to run a RAPIDS container to download the container layers and decompress them | ||
- 'docker run --net=host --gpus=all --shm-size=256m rapidsai/rapidsai:cuda11.2-runtime-ubuntu18.04-py3.8 dask-scheduler --version' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters