forked from YelpArchive/mysql_streamer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile-opensource
More file actions
32 lines (22 loc) · 1.04 KB
/
Copy pathMakefile-opensource
File metadata and controls
32 lines (22 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.PHONY: clean venv-dev test itest build-image compose-prefix
DOCKER_TAG ?= replication-handler-opensource-dev-$(USER)
test:
OPEN_SOURCE_MODE=True FORCE_AVOID_INTERNAL_PACKAGES=True tox -c tox-opensource.ini
itest: cook-image
OPEN_SOURCE_MODE=True FORCE_AVOID_INTERNAL_PACKAGES=True DOCKER_TAG=$(DOCKER_TAG) tox -c tox-opensource.ini -e itest
itest_db:
tox -c tox-opensource.ini -e itest_db
cook-image:
docker build -f Dockerfile-opensource -t $(DOCKER_TAG) .
clean:
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
venv-dev:
virtualenv --python=python2.7 ./virtualenv_run
./virtualenv_run/bin/pip install -i https://pypi.yelpcorp.com/simple/ -r requirements.d/dev.txt
install-hooks:
tox -e pre-commit -- install -f --install-hooks
compose-prefix:
@OPEN_SOURCE_MODE=True echo "DOCKER_TAG=$(DOCKER_TAG) `python -c "from data_pipeline.testing_helpers.containers import Containers; print Containers.compose_prefix()"`"
interactive-streamer: cook-image
OPEN_SOURCE_MODE=True DOCKER_TAG=$(DOCKER_TAG) python interactive_streamer.py