I needed a simple way to kick off a rundeck job and monitor the output from a seperate CI tool. For various reasons, this was the best means to the end - at least for now.
It's based on Alpine Linux and is pretty tiny, only pulling in curl to do the rundeck interaction. All behavior is based on environment variables.
RUNDECK_URL
required - The base URL on which all Rundeck URLs are built. This should only include the portion of the URL prior to the/api
path.RUNDECK_TOKEN
required - The token to use to authenticate to RundeckRUNDECK_JOB_ID
required - The Rundeck Job ID to executeRUNDECK_JOB_OPTIONS
optional - JSON formatted options to pass to the rundeck execute call