Skip to content

A containerized development environment to support testing shell-based projects

License

Notifications You must be signed in to change notification settings

deis/docker-shell-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deis/docker-shell-dev

Build Status Docker Repository on Quay

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:

$ docker run --rm \
  --volume /path/to/dir:/workdir \
  --workdir /workdir \
  quay.io/deis/shell-dev:latest \
  bats tests
$ 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:

About

A containerized development environment to support testing shell-based projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published