Skip to content

Commit

Permalink
Implement watchdog in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
abegong committed Mar 4, 2018
1 parent bb01fc1 commit 6a4c80e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Expand Up @@ -8,5 +8,3 @@ RUN pip install jupyter

COPY . ./
RUN pip install .

RUN pytest
16 changes: 15 additions & 1 deletion docker-compose.yml
Expand Up @@ -18,4 +18,18 @@ services:
POSTGRES_PASSWORD: test
POSTGRES_DB: test
ports:
- "5432:5432"
- "5432:5432"

watchdog:
build:
context: .
dockerfile: Dockerfile
volumes:
- type: bind
source: .
target: /home/jovyan/work/great_expectations
links:
- postgres:postgres
depends_on:
- postgres
command: watchmedo shell-command --patterns="*.py;*.txt;*.json" --recursive --command='pytest' .
3 changes: 2 additions & 1 deletion requirements.txt
Expand Up @@ -8,4 +8,5 @@ argh>=0.26.2
jsonschema>=2.5.1
SQLAlchemy>=1.1.13
psycopg2>=2.7.3.2
pytest==3.2.5
pytest==3.2.5
watchdog==0.8.3

0 comments on commit 6a4c80e

Please sign in to comment.