Skip to content

Tools container with, tfenv, tgenv, kubectl, docker, dbt, sqlcmd, packer, etc.

License

Notifications You must be signed in to change notification settings

star3am/tools-container

Repository files navigation

pre-commit

Pre-Commit

This is an example repository showing how to use Git pre-commit to help you become a better developer. It does great little things for you such as check your YAML and JSON syntax. But it also helps you stay safe and secure by scanning your repository for AWS credentials and SSH private_key files.

Install

Local Development

You will need the following tools to get started before you can use this repo and commence local development

Build Agent

You will need the following tools installed on the build agent to use this

  • Git
  • Docker Daemon

You can add your own pre-commit hooks, and there is support for all Operating Systems and most Languages.

Most of all, have fun becoming a better developer <3

Command Line CLI Supported

Name Azure Google AWS Kubectl Dbt Terraform Terragrunt TFENV Python Pip Packer Cookiecutter Pre-Commit
Tools ✓ ✓
✓ ✓

Dependencies

Usage

  • pre-commit install

Links

See:

Features

Local Development

For local development we use Docker and Docker compose. See run.sh

Operating Architecture Support

Name Amd64 Arch64
Linux
Linux
Mac
Mac
Windows

Pre-Commit

A FAIL

git commit -am "update default tgenv to amd64"

check for added large files..............................................Passed
check for merge conflicts................................................Passed
check vcs permalinks.....................................................Passed
forbid new submodules................................(no files to check)Skipped
don't commit to branch...................................................Failed
- hook id: no-commit-to-branch
- exit code: 1
fix end of files.........................................................Passed
trim trailing whitespace.................................................Passed
check yaml...........................................(no files to check)Skipped
check for merge conflicts................................................Passed
check for broken symlinks............................(no files to check)Skipped
check json...........................................(no files to check)Skipped
check for case conflicts.................................................Passed
mixed line ending........................................................Passed
detect aws credentials...................................................Passed
detect private key.......................................................Passed
Terraform fmt........................................(no files to check)Skipped
Terraform docs.......................................(no files to check)Skipped
Lint Dockerfiles.........................................................Passed

Fix the error

git checkout -b feature/pre-commit

A PASS

git commit -am "fix pre-commit dont commit to branch"
pre-commit installed at /home/ubuntu/.git-template/hooks/pre-commit
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/antonbabenko/pre-commit-terraform.
[INFO] Initializing environment for https://github.com/hadolint/hadolint.
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
check for added large files..............................................Passed
check for merge conflicts................................................Passed
check vcs permalinks.....................................................Passed
forbid new submodules................................(no files to check)Skipped
don't commit to branch...................................................Passed
fix end of files.........................................................Passed
trim trailing whitespace.................................................Passed
check yaml...........................................(no files to check)Skipped
check for merge conflicts................................................Passed
check for broken symlinks............................(no files to check)Skipped
check json...........................................(no files to check)Skipped
check for case conflicts.................................................Passed
mixed line ending........................................................Passed
detect aws credentials...................................................Passed
detect private key.......................................................Passed
Terraform fmt........................................(no files to check)Skipped
Terraform docs.......................................(no files to check)Skipped
Lint Dockerfiles.........................................................Passed

Module Documentation

  • See docs folder

About

Tools container with, tfenv, tgenv, kubectl, docker, dbt, sqlcmd, packer, etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published