An open API service indexing awesome lists of open source software.

https://github.com/kornicameister/hadolint-shim

Provides `sh` compatible shim that wraps hadolint docker execution
https://github.com/kornicameister/hadolint-shim

hadolint linter shim

Last synced: 8 months ago
JSON representation

Provides `sh` compatible shim that wraps hadolint docker execution

Awesome Lists containing this project

README

          

# [hadolint](https://github.com/hadolint/hadolint)-shim ![Install](https://github.com/kornicameister/hadolint-shim/workflows/Install/badge.svg?branch=master) ![Lint](https://github.com/kornicameister/hadolint-shim/workflows/Lint/badge.svg?branch=master)

Provides `bash` compatible shim that wraps hadolint's `docker run hadolint/hadolint` execution to ease up usage
on system where `hadolint` provides no static binaries.

## Installation

### One liner

- regular user: ```curl -sSL https://git.io/JfcCJ | PREFIX=~/.local bash /dev/stdin```
- **root** user: ```curl -sSL https://git.io/JfcCJ | PREFIX=/usr/local sudo bash /dev/stdin```

### Direct

`curl -sSL https://raw.githubusercontent.com/kornicameister/hadolint-shim/master/hadolint -o $HOME/.local/bin/hadolint ; chmod +x $HOME/.local/bin/hadolint ; bash -c 'hadolint --version'`

This is fastest installation method but be **warned** that it assumes that `$HOME/.local/.bin`:

- exists
- is added to `$PATH`

## Usage

Exactly same as in [here](https://github.com/hadolint/hadolint#how-to-use)