我如何安装Rundeck的Docker插件 [英] How do i install Rundeck's Docker Plugin
问题描述
我正在尝试通过Rundeck管理计划的作业(在Docker映像中)。我发现Rundeck有官方的Docker插件。但是,我找不到安装说明。
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.
我正在Docker上运行Rundeck 3.1。
I'm running Rundeck 3.1 on Docker.
推荐答案
您需要扩大官方形象。我留下添加了docker插件的以下 Dockerfile (文件名为 Dockerfile 也):
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
只需保存此文件(请记住文件名为 Dockerfile),然后将 plugin (zip文件) ),则需要将其构建:
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 .
现在您可以使用:
docker run -p 4440:4440 megadrive/rundeckcustom:1.0
这篇关于我如何安装Rundeck的Docker插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!