Uses the `phone home` module to email you when cloud-init finishes its job.
3.3K
Uses the phone home module to email you when cloud-init finishes its job.
Run
docker run -d -p 80:8000 -e MAIL_USERNAME=[YOUR_SMTP_LOGIN] -e MAIL_PASSWORD=[YOUR_SMTP_PASSWORD] knobik/cloud-init-mailer:latest
default env values:
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS="${MAIL_USERNAME}"
MAIL_FROM_NAME="${APP_NAME}"
cloud-init datasource example
phone_home:
url: http://your-server-hosting-this/api/norify
post:
- hostname
tries: 3
Content type
Image
Digest
sha256:0b910097d…
Size
43.4 MB
Last updated
almost 2 years ago
docker pull knobik/cloud-init-mailer