How do i install Rundeck's Docker Plugin

冷暖自知 提交于 2020-01-07 17:32:34

问题


I'm trying to manage scheduled jobs (in a Docker image) via Rundeck. I found out that Rundeck has official Docker plugins. However, i couldn't find the instructions to install them.

Here's a video on how to use the plugins, but missing the installation part.

I'm running Rundeck 3.1 on Docker.


回答1:


You need to extend the official image. I leave the following Dockerfile that adds the docker plugin (the file name is "Dockerfile" too):

# OFFICIAL RUNDECK DOCKER IMAGE :-)
FROM rundeck/rundeck:3.2.0

# BUILD INFO
MAINTAINER MegaDrive68k <somebody@example.net>

# ENVIRONMENT PARAMS
ENV RDECK_BASE=/home/rundeck

# ADD THE DOCKER PLUGIN (IN FACT, YOU CAN ADD ANYTHING IF YOU WANT)
COPY docker-container-1.4.1.zip ${RDECK_BASE}/libext

Just save this file (remember that the file name is "Dockerfile") and put the plugin (zip file) in the same directory, then you need to build it:

docker build -t megadrive/rundeckcustom:1.0 .

And now you can run it with:

docker run -p 4440:4440 megadrive/rundeckcustom:1.0


来源:https://stackoverflow.com/questions/59466889/how-do-i-install-rundecks-docker-plugin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!