Sign inSign up

graze/bats

By graze

Updated 8 months ago

docker image for automated bats testing

Image
2

50K+

graze/bats repository overview

BATS (bash automated testing system)

Build Status Docker Pulls Image Size

This is a docker image containing bats and a few other useful bits: jq, make, curl, docker, git

Usage

docker run --rm -v $(pwd):/app graze/bats /app/tests

Usage with docker

To be able to run docker commands within this container you need to mount the docker sock:

docker run --rm \
    -v $(pwd):/app \
    -v /var/run/docker.sock:/var/run/docker.sock \
    graze/bats /app/tests
@test "entrypoint is bats" {
  run bash -c "docker inspect graze/bats:$tag | jq -r '.[].Config.Entrypoint[]'"
  echo 'status:' $status
  echo 'output:' $output
  [ "$status" -eq 0 ]
  [ "$output" = "/usr/local/bin/bats" ]
}

Tag summary

Content type

Image

Digest

sha256:4a9de078d

Size

95.4 MB

Last updated

8 months ago

docker pull graze/bats