Skip to content

Instantly share code, notes, and snippets.

@alexei-led
Last active September 13, 2018 05:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexei-led/4725b86e985761684013 to your computer and use it in GitHub Desktop.
Save alexei-led/4725b86e985761684013 to your computer and use it in GitHub Desktop.
docker-test command (simple implementation)
#!/bin/bash
image="app"
tag="latest"
echo "FROM ${image}:${tag}" > Dockerfile.test && \
docker build -t "${image}:${tag}-test" -f Dockerfile.test . && \
docker run -it --rm -v $(pwd)/tests/results:/var/tests/results "${image}:${tag}-test" && \
rm Dockerfile.test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment