2023-08-11 14:44:33 +00:00
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
SHELL := /bin/bash
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build: ## Build the Docker image
|
|
|
|
@poetry export --only main --output requirements.txt
|
|
|
|
@docker build --tag ds-interview .
|
|
|
|
|
2023-10-19 08:21:42 +00:00
|
|
|
.PHONY: data
|
|
|
|
data: ## Create dataset
|
|
|
|
@poetry run make-data
|
|
|
|
|
2023-08-11 14:44:33 +00:00
|
|
|
.PHONY: help
|
|
|
|
help: ## Show all available commands
|
|
|
|
@awk 'BEGIN {FS = ":.*##"; printf "Usage: make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-36s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST);
|
|
|
|
|
2023-10-19 08:26:21 +00:00
|
|
|
.PHONY: install
|
|
|
|
install: ## Install dependencies
|
|
|
|
@poetry install --no-interaction
|
|
|
|
|
2023-08-11 14:44:33 +00:00
|
|
|
.PHONY: run
|
|
|
|
run: ## Run the Docker image
|
|
|
|
@docker run --rm -it -p "8888:8888" ds-interview jupyter lab --collaborative --no-browser --allow-root --ip "0.0.0.0" --ServerApp.allow_remote_access true --config Xfrozen_modules=off
|