Skip to content

Instantly share code, notes, and snippets.

@stabenfeldt
Created March 30, 2017 13:00
Show Gist options
  • Save stabenfeldt/0e597073efa7f659b236eb6096fdd41a to your computer and use it in GitHub Desktop.
Save stabenfeldt/0e597073efa7f659b236eb6096fdd41a to your computer and use it in GitHub Desktop.
bash script for running tests in docker container
#!/bin/bash
# This builds a Docker image and runs the tests within a container using that image.
# Delete the old image first to be sure we don't run our tests on an old image
docker rmi meshnodebackend_tests
docker-compose \
-f docker-compose-test.yml \
run --rm tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment