Skip to content

Instantly share code, notes, and snippets.

@tomfaulhaber
Created December 4, 2018 17:38
Show Gist options
  • Save tomfaulhaber/ed3c9f80db24e2e68f7c05dcd5c67af7 to your computer and use it in GitHub Desktop.
Save tomfaulhaber/ed3c9f80db24e2e68f7c05dcd5c67af7 to your computer and use it in GitHub Desktop.
detox
#!/bin/bash
docker build -t tox-runner .
#!/bin/bash
dir=$(git rev-parse --show-toplevel)
docker run -it --rm -v ${dir}:${dir} -w ${dir} -v ${HOME}/.aws:/root/.aws tox-runner tox $*
FROM ubuntu:16.04
RUN apt-get -y update && apt-get install -y --no-install-recommends \
wget \
python \
python-dev \
python3.5 \
python3.5-dev \
gcc \
ca-certificates
RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
RUN pip install virtualenv tox pytest pytest-cov pytest-concurrent flake8
WORKDIR /work
ENV PYTHONUNBUFFERED TRUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment