https://github.com/ungtb10d/docker-shellcheck
docker-shellcheck
https://github.com/ungtb10d/docker-shellcheck
Last synced: 4 months ago
JSON representation
docker-shellcheck
- Host: GitHub
- URL: https://github.com/ungtb10d/docker-shellcheck
- Owner: ungtb10d
- Created: 2023-01-06T17:48:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T17:48:21.000Z (over 2 years ago)
- Last Synced: 2025-01-10T22:45:18.645Z (6 months ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerized ShellCheck
[](https://github.com/MyDockerfiles/ShellCheck)
[](https://hub.docker.com/r/peterdavehello/shellcheck/)
[](https://microbadger.com/images/peterdavehello/shellcheck/)
[](https://hub.docker.com/r/peterdavehello/shellcheck/tags/)[](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
```