ConfigurationActions & NotificationsXMPP
XMPP
The xmpp trigger lets you send container update notifications as XMPP chat messages.
Pre-release docs
These docs cover v1.9, a release candidate that isn't generally available yet. Running the stable release? Read the docs for v1.7.
The xmpp trigger lets you send container update notifications as chat messages over XMPP. Drydock opens a session for each notification, sends one message and closes the session.
Variables
| Env var | Required | Description | Supported values | Default value when missing |
|---|---|---|---|---|
DD_NOTIFICATION_XMPP_{trigger_name}_SERVICE | 🔴 | The XMPP service endpoint | xmpp://, xmpps://, ws:// or wss:// url | |
DD_NOTIFICATION_XMPP_{trigger_name}_DOMAIN | ⚪ | The XMPP domain, when it differs from the service host | Any string | |
DD_NOTIFICATION_XMPP_{trigger_name}_USER | 🔴 | The account user name | The local part of the account JID | |
DD_NOTIFICATION_XMPP_{trigger_name}_PASSWORD | 🔴 | The account password | ||
DD_NOTIFICATION_XMPP_{trigger_name}_TO | 🔴 | The recipient JID | A JID such as ops@example.com | |
DD_NOTIFICATION_XMPP_{trigger_name}_TIMEOUT | ⚪ | Milliseconds to wait for the whole session before failing | Number greater than 0 | 10000 |
This trigger also supports the common configuration variables.
Examples
Configure the trigger
services:
drydock:
image: codeswhat/drydock:1.9.0-rc.6
...
environment:
- DD_NOTIFICATION_XMPP_OPS_SERVICE=xmpp://xmpp.example.com:5222
- DD_NOTIFICATION_XMPP_OPS_DOMAIN=example.com
- DD_NOTIFICATION_XMPP_OPS_USER=drydock
- DD_NOTIFICATION_XMPP_OPS_PASSWORD=your-password
- DD_NOTIFICATION_XMPP_OPS_TO=ops@example.com