Rundeck server based on Debian
edit | blame | history | raw

Rundeck

This is a Docker image of Rundeck (http://rundeck.org)
based on debian:latest

Upgrading

Since version 3.0 /etc/rundeck/profile will be overriden!
To customize JVM options use environment variable:
RDECK_JVM_SETTINGS. See section "Configuration" below.

Usage

docker run -d --name=rundeck -p 4440:4440 jacekkow/rundeck

Rundeck should be available at http://127.0.0.1:4440/
(user/password pairs: user/user and admin/admin)

By default it uses H2 database and Docker data volumes
for storage persistence.

You can update such installation by passing
--volumes-from to docker run:

docker stop rundeck
docker rename rundeck rundeck-old
docker run -d --name=rundeck -p 4440:4440 \
	--volumes-from rundeck-old \
	jacekkow/rundeck
docker rm -v rundeck-old

Local volumes

You can use local storage instead of data volumes:

docker run -d --name=rundeck -p 4440:4440 \
	-v /srv/rundeck/etc:/etc/rundeck \
	-v /srv/rundeck/data:/var/lib/rundeck/data \
	-v /srv/rundeck/logs:/var/lib/rundeck/logs \
	-v /srv/rundeck/rundeck:/var/rundeck \
	-v /srv/rundeck/ssh:/var/lib/rundeck/.ssh \
	jacekkow/rundeck

External database

To increase performance, use MySQL instead of H2 database:

docker run -d --name=rundeck-db \
	-e MYSQL_ROOT_PASSWORD=root-pass \
	-e MYSQL_USER=rundeck \
	-e MYSQL_PASSWORD=rundeck-pass \
	-e MYSQL_DATABASE=rundeck \
	mariadb
docker run -d --name=rundeck -p 4440:4440 \
	-v /srv/rundeck/etc:/etc/rundeck \
	-v /srv/rundeck/data:/var/lib/rundeck/data \
	-v /srv/rundeck/logs:/var/lib/rundeck/logs \
	-v /srv/rundeck/rundeck:/var/rundeck \
	-v /srv/rundeck/ssh:/var/lib/rundeck/.ssh \
	--link rundeck-db:rundeck-db \
	jacekkow/rundeck

Then set the following options in
/srv/rundeck/etc/rundeck-config.properties

dataSource.url = jdbc:mysql://rundeck-db/rundeck?autoReconnect=true
dataSource.username = rundeck
dataSource.password = rundeck-pass

and restart the container:

docker restart rundeck

Configuration

You can change Java system properties and JVM options by modifying
RDECK_JVM_SETTINGS environment variable, which defaults to:

-Xmx1024m -Xms256m -XX:MaxMetaspaceSize=256m -server

Sample:

docker run -d --name=rundeck -p 4440:4440 \
	-v /srv/rundeck/etc:/etc/rundeck \
	-v /srv/rundeck/data:/var/lib/rundeck/data \
	-v /srv/rundeck/logs:/var/lib/rundeck/logs \
	-v /srv/rundeck/rundeck:/var/rundeck \
	-v /srv/rundeck/ssh:/var/lib/rundeck/.ssh \
	-e RDECK_JVM_SETTINGS="-Xms1024m -Xmx1024" \
	jacekkow/rundeck
edit | blame | history | raw
BSD 3-Clause License

Copyright (c) 2015-2020, Jacek Kowalski
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
README 3 KB