joerocklin / docker-rundeck-execute

Execute a rundeck job and follow the output

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rundeck Execute

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.

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 Rundeck
  • RUNDECK_JOB_ID required - The Rundeck Job ID to execute
  • RUNDECK_JOB_OPTIONS optional - JSON formatted options to pass to the rundeck execute call

About

Execute a rundeck job and follow the output


Languages

Language:Shell 90.2%Language:Dockerfile 9.8%