36 lines
1.3 KiB
Makefile
36 lines
1.3 KiB
Makefile
COMPOSE_FILE_PATH := -f docker-compose.yml
|
|
help: ## Show this help.
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
|
|
|
build: ## Build developer docker images
|
|
docker-compose build
|
|
|
|
up: ## Run developer docker images
|
|
docker-compose $(COMPOSE_FILE_PATH) up -d
|
|
|
|
django-shell: ## Run django shell in developer container
|
|
docker-compose $(COMPOSE_FILE_PATH) run backend python manage.py shell
|
|
|
|
stop: ## Stop developer docker images
|
|
@docker-compose stop
|
|
|
|
restart:
|
|
@make -s stop
|
|
@make -s up
|
|
|
|
install: ## Install requrirements packages
|
|
pip install pip-tools
|
|
pip install -r requirements.txt -r dev-requirements.txt
|
|
(cd frontend && npm install)
|
|
|
|
lint: ## Run linters
|
|
isort backend/
|
|
black backend/
|
|
(cd frontend && npm run lint --fix)
|
|
|
|
install-oracle: ## install oracle db (maybe in use in future)
|
|
mkdir oracle
|
|
git clone https://github.com/oracle/docker-images.git oracle
|
|
wget https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-18c-1.0-1.x86_64.rpm -P oracle
|
|
cp oracle/oracle-database-xe-18c-1.0-1.x86_64.rpm oracle/OracleDatabase/SingleInstance/dockerfiles/18.4.0
|
|
./oracle/OracleDatabase/SingleInstance/dockerfiles/buildContainerImage.sh -x -v 18.4.0
|