/docker-shell-dev

A containerized development environment to support testing shell-based projects

Primary LanguageMakefile

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: