Public | Automated Build

Last pushed: a year ago
Short Description
Rundeck for docker management
Full Description

Rundeck for docker management

This image enables you to manage your docker on server using docker-compose.

Default rundeck version: 2.6.8

Instruction

  1. install docker
  2. install docker-compose
  3. launch container

Docker info

build image (only needed if you clone this github repository)

docker build -t rundeck-docker ./

build image with specified rundeck version

docker build -t rundeck-docker --build-arg="RUNDECK_VERSION=2.6.8" ./

launch container

docker run -d -p 4440:4440 -v /run/docker.sock:/var/run/docker.sock -v /tmp/rundeck/var/rundeck:/var/rundeck -v /tmp/rundeck/var/lib/rundeck/var:/var/lib/rundeck/var -v /tmp/rundeck/var/lib/rundeck/logs:/var/lib/rundeck/logs --name rundeck-docker imaghonet/rundeck-docker

Docker compose info

  1. Download docker-compose.yml into your desired folder
  2. change to the folder and run:
    docker-compose up -d
    
    For details see docker-compose.yml

Logging

Log4j.properties is modified to log only to stdout (org.apache.log4j.ConsoleAppender)

Environment variables

  • User management (realm.properties)
    ```bash
    RUNDECK_ADMIN_NAME = admin
    RUNDECK_ADMIN_PASS = admin

RUNDECK_USER_NAME = user
RUNDECK_USER_PASS = user


* Java settings (profiles)
```bash
RUNDECK_JVM_XMX = 1024m
RUNDECK_JVM_XMS = 256m
RUNDECK_JVM_XX_MAX_PERM_SIZE = 256m
  • Rundeck Config (rundeck-config.properties)

    RUNDECK_LOGLEVEL_DEFAULT = INFO
    RUNDECK_GRAILS_SERVER_URL = http://localhost:4440
    
  • Framework properties (framework.properties)

    FRAMEWORK_SERVER_NAME = localhost
    FRAMEWORK_SERVER_HOSTNAME = localhost
    FRAMEWORK_SERVER_PORT = 4440
    FRAMEWORK_SERVER_URL = http://localhost:4440
    FRAMEWORK_SERVER_USERNAME = admin
    FRAMEWORK_SERVER_PASSWORD = admin
    

Volumes

  • /your/host/path/projects:/var/rundeck/projects
    stores the projects settings

  • /your/host/path/var:/var/lib/rundeck/var
    cache and temp data

  • /your/host/path/logs:/var/lib/rundeck/logs
    job execution output logs

  • /your/host/path/data:/var/lib/rundeck/data
    rundeck database where the job configuration is stored

  • /run/docker.sock:/var/run/docker.sock
    connection to hosts docker enables rundeck to control your host docker. Any docker command executed in rundeck container will affect the host.

Rundeck jobs for docker management

Download the Docker management jar file and import it via Configure -> Import Archive. You need to login as admin.

Licence

See the LICENCE file

Docker Pull Command
Owner
imaghonet
Source Repository