Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
176 views
in Technique[技术] by (71.8m points)

How do i install Rundeck's Docker Plugin

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...