Skip to content

Commit fb9d397

Browse files
committed
Add welcome message
1 parent 37a05c8 commit fb9d397

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

infrastructure/ami/hcl2-files/build.pkr.hcl

+10
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,14 @@ build {
1616
provisioner "shell" {
1717
inline = ["echo 'source /opt/aws_neuron_venv_pytorch/bin/activate' >> /home/ubuntu/.bashrc"]
1818
}
19+
provisioner "file" {
20+
source = "scripts/welcome-msg.sh"
21+
destination = "/tmp/99-custom-message"
22+
}
23+
provisioner "shell" {
24+
inline = [
25+
"sudo mv /tmp/99-custom-message /etc/update-motd.d/",
26+
"sudo chmod +x /etc/update-motd.d/99-custom-message",
27+
]
28+
}
1929
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
printf "=============================================================================\n"
3+
printf " __| __|_ )\n"
4+
printf " _| ( / HuggingFace Deep Learning Neuron AMI (Ubuntu 20.04)\n"
5+
printf " ___|\___|___|\n"
6+
printf "=============================================================================\n"
7+
printf "Welcome to the HuggingFace Deep Learning Neuron AMI (Ubuntu 20.04)\n"
8+
printf "* Examples: /home/ubuntu/huggingface-neuron-samples \n"
9+
printf "* Notebooks: /home/ubuntu/huggingface-neuron-notebooks \n"
10+
printf "* Documentation: https://huggingface.co/docs/optimum-neuron/ \n"
11+
printf "=============================================================================\n"

0 commit comments

Comments
 (0)