Improves redmine wikis adding Rancher, GitHub and DockerHub links. The image is created under the name: eeacms/redmine-wikiman
docker run --rm -e RANCHER_CONFIG="RANCHER-URL,RANCHER-ACCESS-KEY,RANCHER-SECRET-KEY" eeacms/redmine-wikiman
docker run --rm -e RANCHER_CONFIG="RANCHER-URL,RANCHER-ACCESS-KEY,RANCHER-SECRET-KEY" -e WIKI_SERVER="REDMINE_URL" -e WIKI_APIKEY="REDMINE-KEY" -e WIKI_PROJECT=project -e WIKI_HOSTS_PAGE=RancherHosts -e WIKI_STACKS_PAGE=RancherStacks -e WIKI_CONTAINERS_PAGE=RancherContainers -e DOCKERHUB_USER=user -e DOCKERHUB_PASS=password eeacms/redmine-wikiman
The scripts can be run in python, with the following arguments:
For example: python /listcontainers.py -v -n
Updates a redmine wiki page with the list of current docker containers per rancher environment ( including image, stack, status), calculating memory reservation and limit per host/environment/rancher and comparing it with the real memory values.
Updates a redmine wiki page with the list of current hosts per rancher environment ( including check_mk link, docker version, OS version), calculating available and used memory percentages.
Updates a redmine wiki page with the list of current rancher stacks per environment ( including date created, state and health, catalog, description and tags ).
Updates a redmine draft wiki page with the list of current pods/containers per rancher2 cluster grouped by nodes ( including namespace, image, status), calculating memory reservation and limit per cluster. The listing is performed on each cluster and a main instance will merge each cluster's generated draft into a final wiki page per environment.
Updates a redmine draft wiki page with the list of current nodes per rancher2 cluster ( including check_mk link, taints, docker version, OS version), calculating available and used memory percentages. The listing is performed on each cluster and a main instance will merge each cluster's generated draft into a final wiki page per environment.
Updates a redmine draft wiki page with the list of current apps per rancher2 cluster grouped by namespaces ( including state, helm chart name, helm chart version, description). The listing is performed on each cluster and a main instance will merge each cluster's generated draft into a final wiki page per environment.
Updates all wiki subpages for a redmine wiki page, searching for "DeploymentRepoURL" url and extracting docker image information ( docker hub link and github link ) and adding and populating "Source code information" section of the wiki with it.
Updates all factsheet wiki subpages to match the factsheet template. It adds missing mandatory fields and sections, reorders the existing ones, and generates a report grouped by product owner.
The script can detect alternate section titles and normalize them to match the title in the template. This is especially useful when changing a title in the template. Specify them as *Alternate titles* : title one; title two (a list delimited by ;).
Updates all wiki subpages for a redmine wiki page, searching for "Service location" link and extracting it from the current rancher stacks list (created by liststacks.py) and adding the stack link in the field "Rancher Stack URL" to it.
To make the development easier, you can mount the scripts in a volume and run them:
docker run -v $(pwd)/src:/src -e RANCHER_CONFIG="RANCHER-URL,RANCHER-ACCESS-KEY,RANCHER-SECRET-KEY" -e WIKI_SERVER="REDMINE_URL" -e WIKI_APIKEY="REDMINE-KEY" -e WIKI_PROJECT=project -e WIKI_HOSTS_PAGE=RancherHosts -e WIKI_STACKS_PAGE=RancherStacks -e WIKI_CONTAINERS_PAGE=RancherContainers eeacms/rancher2redmine sh
$python /src/listcontainers.py -v
Content type
Image
Digest
sha256:646ad3c72…
Size
75.3 MB
Last updated
5 days ago
docker pull eeacms/redmine-wikiman