forked from nebari-dev/nebari
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrates Hadolint for Dockerfile linting (nebari-dev#917)
* CI: Add Hadolint configuration and GitHub Action to lint Dockerfiles * Fixing working directory path to run Hadolint * fix hadolint file path * DOCS: Add Hadolint specific docs in testing guide * DOCS: Fix Vale errors * Add a pre-commit hook for Hadolint * Update hadolint pre-commit hooks Co-authored-by: iameskild <eskild@doublee.io>
- Loading branch information
1 parent
2444a69
commit 07bba79
Showing
6 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
ignored: | ||
- DL3048 | ||
- DL3008 | ||
- DL3013 | ||
- DL3003 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/psf/black | ||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/flake8 | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 3.8.4 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/hadolint/hadolint.git | ||
rev: v2.3.0 | ||
hooks: | ||
- id: hadolint-docker | ||
entry: hadolint/hadolint:v2.3.0 hadolint | ||
args: [ | ||
"--ignore", "DL3048", | ||
"--ignore", "DL3008", | ||
"--ignore", "DL3013", | ||
"--ignore", "DL3003", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,4 @@ exceptions: | |
- Digital Ocean | ||
- Spot | ||
- Amazon Web Services | ||
- Dockerfiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,3 +127,5 @@ walkthrough | |
webapp | ||
yaml | ||
ClearML | ||
Hadolint | ||
Dockerfiles |