generated from UrFU-Python-GitHub-Classroom/python-telegram-bot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 665 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 665 Bytes
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
all: run
init_dev:
@python3 -m venv .venv
@. .venv/bin/activate; pip install --upgrade pip -r requirements.txt -r requirements-dev.txt
## Runs application. Builds, creates, starts, and attaches to containers for a service. | Common
run:
@mkdir -p data && chmod 777 data
@docker compose up -d --build
## Stops application. Stops running container without removing them.
stop:
@docker compose stop
## Removes stopped service containers.
clean:
@docker compose down --remove-orphans
## Starts container for debug
debug:
@docker compose -f docker-compose.debug.yml up -d --build
stopdebug:
@docker compose -f docker-compose.debug.yml down --remove-orphans