-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (37 loc) · 1019 Bytes
/
Makefile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!make
ifneq (,$(wildcard ./.env))
include .env
export
endif
unittests:
pytest tests/unittests.py
quality_checks:
isort .
black .
pylint ./src
# training with local tracking server
train:
docker-compose -f docker-compose-train.yml up -d
python src/train_model.py --n_epochs=1
shutdown_local_env:
docker-compose -f docker-compose-train.yml down
build: quality_checks unittests
docker-compose build
integration_test: build
chmod +x tests/integration_test.sh
bash tests/integration_test.sh
publish: build integration_test
docker login -u ${DOCKER_USER} -p ${DOCKER_PW}
docker tag project_batch:latest xydo/zoomcamp-model:mlops_batch-0.1.0
docker push xydo/zoomcamp-model:mlops_batch-0.1.0
publish_only:
docker login -u ${DOCKER_USER} -p ${DOCKER_PW}
docker tag project_batch:latest xydo/zoomcamp-model:mlops_batch-0.1.0
docker push xydo/zoomcamp-model:mlops_batch-0.1.0
setup:
pipenv install --dev
pipenv shell
pre-commit install
cp sample.env .env
get_data:
python src/get_data.py