Skip to content

Commit

Permalink
Add welcome message
Browse files Browse the repository at this point in the history
  • Loading branch information
shub-kris committed Jan 30, 2024
1 parent 37a05c8 commit fb9d397
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions infrastructure/ami/hcl2-files/build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,14 @@ build {
provisioner "shell" {
inline = ["echo 'source /opt/aws_neuron_venv_pytorch/bin/activate' >> /home/ubuntu/.bashrc"]
}
provisioner "file" {
source = "scripts/welcome-msg.sh"
destination = "/tmp/99-custom-message"
}
provisioner "shell" {
inline = [
"sudo mv /tmp/99-custom-message /etc/update-motd.d/",
"sudo chmod +x /etc/update-motd.d/99-custom-message",
]
}
}
11 changes: 11 additions & 0 deletions infrastructure/ami/scripts/welcome-msg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
printf "=============================================================================\n"
printf " __| __|_ )\n"
printf " _| ( / HuggingFace Deep Learning Neuron AMI (Ubuntu 20.04)\n"
printf " ___|\___|___|\n"
printf "=============================================================================\n"
printf "Welcome to the HuggingFace Deep Learning Neuron AMI (Ubuntu 20.04)\n"
printf "* Examples: /home/ubuntu/huggingface-neuron-samples \n"
printf "* Notebooks: /home/ubuntu/huggingface-neuron-notebooks \n"
printf "* Documentation: https://huggingface.co/docs/optimum-neuron/ \n"
printf "=============================================================================\n"

0 comments on commit fb9d397

Please sign in to comment.