Icinga Web 2 Docker image builder
50K+
Builds and deploys a script which clones the latest version of Icinga Web 2 and optionally specific modules:
docker run --rm -d -v dockerweb2-data:/data grandmaster/dockerweb2
That script is suitable for building an Icinga Web 2 Docker image.
mkdir dockerweb2-data/.ssh
ssh-keygen -q -b 4096 -t rsa -N '' -C [email protected] -f dockerweb2-data/.ssh/id_rsa
ssh-keyscan git.example.com > dockerweb2-data/.ssh/known_hosts
dockerweb2-data/.ssh/id_rsa.pub as a deploy key
with write access to the Git repositorydockerweb2-data/.mailrc which sets all variables
s-nail needs to send e-mailsdockerweb2-data/config.yml:#log:
# How verbosely to log (trace / debug / info / warn / error)
#level: info
build:
# When to build and deploy, crontab format
every: '0 0 * * *'
github:
# Icinga Web 2 GitHub repository
framework: Icinga/icingaweb2
mods:
# GitHub account to auto-discover Icinga Web 2 modules of
- user: Icinga
repos:
# Pattern of Icinga Web 2 module repositories (with module name in parens),
# Golang regex format
- |-
\Aicingaweb2-module-(.+)\z
deploy:
# Git repository to deploy the script to
remote: '[email protected]:jdoe/icingaweb2-docker.git'
# Git config
config:
user.name: JD-OE Bot
user.email: [email protected]
# Script name
script: get-iw2.sh
# Commit message
commit: Update get-iw2.sh
#notify:
# Who to notify about repos not covered by the configured patterns
# via e-mail (s-nail)
#s_nail: [email protected]
The daemon reloads its config automatically.
Content type
Image
Digest
Size
91 MB
Last updated
over 5 years ago
docker pull grandmaster/dockerweb2