-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (23 loc) · 1.19 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
COMPOSE_FILE=docker-compose.yml
DOCKER_COMPOSE=docker-compose -f $(COMPOSE_FILE)
default: build
#================================================================================
# Managing the Docker environment (Building and Starting)
#================================================================================
build: ## Build all Docker images
@echo "Building Chatbot images"
@$(DOCKER_COMPOSE) build
start-attached: ## Start the server in attached mode
@echo "${GREEN}Starting Chatbot in attached mode${RESET}"
$(DOCKER_COMPOSE) up
#==============================================
# Application management commands
#==============================================
makemigrations: ## Create migrations using the Django `makemigrations` management command
$(DOCKER_COMPOSE) run --rm web python manage.py makemigrations
migrate: ## Run migrations using the Django `migrate` management command
$(DOCKER_COMPOSE) run --rm web python manage.py migrate
create-superuser: ## Create a new superuser using the Django `createsuperuser` management command
$(DOCKER_COMPOSE) run --rm web python manage.py createsuperuser
test: ## Run automated tests
$(DOCKER_COMPOSE) run --rm web python manage.py test