-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
42 lines (31 loc) · 1.32 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
include .env
APP_NAME := iris-coach
# ==============================================================================
# Docker support
COMPOSE_FILE := compose.yml --env-file .env
compose-build:
@echo ${APP_NAME}: building w/ ${COMPOSE_FILE}
@docker compose -f ${COMPOSE_FILE} build --no-cache
compose-up:
@echo ${APP_NAME}: starting w/ ${COMPOSE_FILE}
@docker compose -f ${COMPOSE_FILE} up --quiet-pull --remove-orphans
compose-down:
@echo ${APP_NAME}: ending w/ ${COMPOSE_FILE}
@docker compose -f ${COMPOSE_FILE} down --remove-orphans --volumes
## 🚨 Use with caution
docker-prune: compose-down
@echo ${APP_NAME}: pruning docker images, volumes
@docker image prune -f
@docker system prune --volumes -af
# ==============================================================================
start: compose-build compose-up
restart:
@docker compose restart
@docker compose exec iris /docker-entrypoint-initdb.d/init.sh
kill: docker-prune
# ==============================================================================
# InterSystems
# ref: https://github.com/grongierisc/interoperability-embedded-python?tab=readme-ov-file#7-command-line
# ==============================================================================
start-app:
@streamlit run src/python/rag/🧑🏻⚕️_Chat.py --server.port=8051 --server.address=0.0.0.0