-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (45 loc) · 1.22 KB
/
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
49
50
51
52
53
54
55
-include .env
export
brew:
brew bundle
pre-commit-setup:
pre-commit install
python-setup: brew pre-commit-setup
pyenv install --skip-existing 3.8.12
echo 'eval "$(pyenv init --path)"' >> ~/.bashrc
pyenv local 3.8.12
# Install all requirements
reqs:
pip install -r requirements.txt
pip install -e .
# Python venv setup
venv:
python3 -m venv .venv && \
source .venv/bin/activate && \
make reqs
@echo "=========="
@echo "Virtual environment successfully created. To activate the venv:"
@echo " \033[0;32msource .venv/bin/activate"
# Perform base setup
setup:
docker swarm init
docker-compose -f setup-compose.yml up --detach
setup/buckets:
mc config host add minio http://localhost:9000 minio_admin minio_password
mc mb --ignore-existing minio/raw-data
mc mb --ignore-existing minio/processed-data
mc mb --ignore-existing minio/enriched-data
teardown:
docker swarm leave --force
# Stop all running docker containers
docker stop airflow-webserver
docker stop airflow-scheduler
docker stop airflow-init
docker stop postgres
docker stop minio_container
# Remove the images from the system
docker rm airflow-webserver
docker rm airflow-scheduler
docker rm airflow-init
docker rm postgres
docker rm minio_container