Skip to content

this-is-tobi/tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tools 🔧

Utility tools & scripts.

Docker

Utils images

Name Description Image name
act-runner act runner image for local CI tests (ubuntu based). ghcr.io/this-is-tobi/tools/act-runner
debug debug image with all convenients tools (debian based). ghcr.io/this-is-tobi/tools/debug
dev development image with all convenients tools (debian based). ghcr.io/this-is-tobi/tools/dev
pg-backup helper image to backup postgresql to s3 (postgres based). ghcr.io/this-is-tobi/tools/pg-backup
s3-backup helper image to backup s3 bucket to another s3 bucket (debian based). ghcr.io/this-is-tobi/tools/s3-backup
vault-backup helper image to backup vault raft cluster to s3 bucket (vault based). ghcr.io/this-is-tobi/tools/vault-backup

Backup images correlation table :

Name Image version Tool version
pg-backup 1.4.3 postgresql - 15.7
pg-backup 2.0.0 postgresql - 16.4
pg-backup 3.0.0 postgresql - 17.0
vault-backup 1.1.3 vault - 1.17.2
vault-backup 1.2.0 vault - 1.18.0

Tip

The backup images are supplied with a sample kubernetes cronjob in their respective folders.

Templates images

Name Description
nginx bitnami/nignx rootless conf with variables substitution.

Nodejs

Name Description
crypto.mjs set of crypto functions.

Shell

Name Description
add-keycloak-users.sh add keycloak users for a given keycloak realm.
backup-kube-pg.sh backup / restore postgres database from / to a kubernetes pod.
backup-kube-vault.sh backup / restore vault raft cluster from / to a kubernetes pod.
clone-subdir.sh clone a subdirectory from a git repository.
compose-to-matrix.sh parse docker-compose file to create github matrix.
copy-env-examples.sh copy all git project env*-examples files to env files.
delete-ghcr-image.sh delete image and subsequent manifests from ghcr.
export-argocd-resources.sh export ready-to-apply argocd resources.
get-keycloak-token.sh display keycloak token for the given infos.
list-keycloak-users.sh list keycloak users for a given keycloak realm.
manage-etc-hosts.sh add or update host ip adress in /etc/hosts.
purge-ghcr-tags.sh purge ghcr tags older than a given date.
trivy-report.sh parse trivy json reports to create a markdown summary.

Tip

Using a script directly from a curl command :

curl -s https://raw.githubusercontent.com/this-is-tobi/tools/main/shell/<script_name> | bash -s -- -h

Tools

Name Description
act local github action act wrapper.
kind local kubernetes kind wrapper.