https://github.com/deis/docker-shell-dev
A containerized development environment to support testing shell-based projects
https://github.com/deis/docker-shell-dev
Last synced: 8 months ago
JSON representation
A containerized development environment to support testing shell-based projects
- Host: GitHub
- URL: https://github.com/deis/docker-shell-dev
- Owner: deis
- License: mit
- Created: 2016-06-22T19:19:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-10T21:27:45.000Z (about 9 years ago)
- Last Synced: 2025-05-30T10:16:00.724Z (about 1 year ago)
- Language: Makefile
- Size: 9.77 KB
- Stars: 3
- Watchers: 8
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deis/docker-shell-dev
[](https://ci.deis.io/job/Deis/job/docker-shell-dev/job/master/)
[](https://quay.io/repository/deis/shell-dev)
A containerized environment for running [bats][] tests and/or [shellcheck][] against bash scripts.
## Image Contents
* [bats][] for running `.bats` tests
* [shellcheck][] for running `shellcheck` against bash scripts
* [jq][]
## Usage
Mount the host directory containing your bash `scripts` dir and bats
`tests` dir and then simply supply the appropriate `bats`/`shellcheck` command to run:
```console
$ docker run --rm \
--volume /path/to/dir:/workdir \
--workdir /workdir \
quay.io/deis/shell-dev:latest \
bats tests
```
```console
$ docker run --rm \
--volume /path/to/dir:/workdir \
--workdir /workdir \
quay.io/deis/shell-dev:latest \
shellcheck scripts/*
```
The latest deis/shell-dev Docker image is available at:
* [Quay.io][]
```
docker pull quay.io/deis/shell-dev
```
* [Docker Hub][]
```
docker pull deis/shell-dev
```
[bats]: https://github.com/sstephenson/bats/
[shellcheck]: https://github.com/koalaman/shellcheck
[jq]: https://stedolan.github.io/jq/
[Quay.io]: https://quay.io
[Docker Hub]: https://hub.docker.com