Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterdavehello/docker-shellcheck
🐳 Dockerized ShellCheck: A static analysis tool for shell scripts
https://github.com/peterdavehello/docker-shellcheck
alpine bash docker docker-image hacktoberfest linter script shell shellcheck shellscript syntax
Last synced: 11 days ago
JSON representation
🐳 Dockerized ShellCheck: A static analysis tool for shell scripts
- Host: GitHub
- URL: https://github.com/peterdavehello/docker-shellcheck
- Owner: PeterDaveHello
- Created: 2017-05-29T07:36:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-03T08:42:23.000Z (4 months ago)
- Last Synced: 2024-10-19T23:24:15.027Z (18 days ago)
- Topics: alpine, bash, docker, docker-image, hacktoberfest, linter, script, shell, shellcheck, shellscript, syntax
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/peterdavehello/shellcheck/
- Size: 24.4 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerized ShellCheck
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/MyDockerfiles/ShellCheck)
[![Docker Hub pulls](https://img.shields.io/docker/pulls/peterdavehello/shellcheck.svg)](https://hub.docker.com/r/peterdavehello/shellcheck/)[![Docker Hub badge](https://dockeri.co/image/peterdavehello/shellcheck)](https://hub.docker.com/r/peterdavehello/shellcheck/)
## About ShellCheck
A static analysis tool for shell scripts, homepage and repository below:
-
-Please note that this Docker image repository is not part of the ShellCheck project.
## Available image tags
See [tags](https://hub.docker.com/r/peterdavehello/shellcheck/tags) page on Docker Hub
## Usage
### Command line
```sh
SHELLCHECK_VERSION=0.7.1
docker run --rm -it -v `pwd`:/scripts peterdavehello/shellcheck:$SHELLCHECK_VERSION shellcheck /scripts/script.sh
```### In GitLab CI
```yaml
shellcheck:
stage: test
image: peterdavehello/shellcheck:0.7.1
only:
changes:
- "**/*.bash"
before_script:
- shellcheck --version
script:
- find . -name "*.sh" | xargs -n 1 shellcheck --color=always
tags:
- docker
```