Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/al2klimov/dockerweb2
https://github.com/al2klimov/dockerweb2
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/al2klimov/dockerweb2
- Owner: Al2Klimov
- License: mpl-2.0
- Created: 2019-12-29T13:34:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-05T04:58:38.000Z (over 1 year ago)
- Last Synced: 2023-08-06T23:11:21.620Z (over 1 year ago)
- Language: Go
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Icinga Web 2] [Docker] image builder
Builds and deploys a script which clones the latest version
of Icinga Web 2 and optionally specific modules:```bash
docker run --rm -d -v dockerweb2-data:/data grandmaster/dockerweb2
```That script is suitable for building an Icinga Web 2 Docker image.
## Setup
1. Create a Git repository with some commits for the script described above
2. Prepare SSH:```bash
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
```3. Add `dockerweb2-data/.ssh/id_rsa.pub` as a deploy key
with write access to the Git repository
4. Optionally create `dockerweb2-data/.mailrc` which sets all variables
s-nail needs to send e-mails
5. Create `dockerweb2-data/config.yml`:```yaml
#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.
[Icinga Web 2]: https://github.com/Icinga/icingaweb2
[Docker]: https://www.docker.com