Skip to content

Commit

Permalink
docker: addition of .dockerignore
Browse files Browse the repository at this point in the history
* Adds `.dockerignore` excluding among others Python cache files.  This
  solves a problem when using both `tox` and `docker` to run the test
  suite on the same host, as in:

     $ tox -e py27
     $ docker run flaskmenu_web python setup.py test

* Note that when running tests via `docker-compose`, one still needs to
  clean `__pycache__` manually before running the test suite, due to
  local directory mounting:

     $ find . -name __pycache__ -exec rm -rf {} \;
     $ docker-compose run web python setup.py test

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
  • Loading branch information
tiborsimko committed Mar 17, 2015
1 parent 17a7bd6 commit 60e3b0f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*.egg-info/
*.egg/
*.o
*.pyc
*.so
.cache
.coverage
.git
.tox
__pycache__/
build/
dist/

0 comments on commit 60e3b0f

Please sign in to comment.