From 6ce8a8c64831815bbf7b577e72dc361e0c0ad4a1 Mon Sep 17 00:00:00 2001 From: protokey Date: Tue, 13 Oct 2026 20:21:17 +0400 Subject: [PATCH] =?UTF-8?q?chore:=20=D0=BE=D0=BA=D1=80=D1=83=D0=B6=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=20=D1=83=D0=BC=D0=BE=D0=BB?= =?UTF-8?q?=D1=87=D0=B0=D0=BD=D0=B8=D1=8E=20=D0=B2=20~/.py=5Fenvs/robotex,?= =?UTF-8?q?=20VENV=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BE=D0=BF=D1=80=D0=B5?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D1=8F=D0=B5=D1=82=D1=81=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- Makefile | 8 ++++++-- README.md | 4 +--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 73384d4..4280b92 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VENV := .venv +VENV ?= $(HOME)/.py_envs/robotex PYTHON := $(VENV)/bin/python PIP := $(PYTHON) -m pip WHEELS_DIR := wheels @@ -106,7 +106,11 @@ release: build docker-compose.prod.yml > $(RELEASE_DIR)/docker-compose.yml cp dot_env $(RELEASE_DIR)/.env for img in $(DEPS_IMAGES); do docker image inspect $$img >/dev/null 2>&1 || docker pull $$img; done - docker save $(API_IMAGE):$(ver) $(WORKER_IMAGE):$(ver) $(DEPS_IMAGES) | gzip > $(RELEASE_DIR)/robotex-$(ver).tar.gz + # TODO: я хочу парамтером управлять сохранить в файл или отправить в свой реджестри + # if produce == file: + docker save $(API_IMAGE):$(ver) $(WORKER_IMAGE):$(ver) $(DEPS_IMAGES) | gzip > $(RELEASE_DIR)/robotex-$(ver).tar.gz + # else: + # docker push docker.sokolab.xyz/$(API_IMAGE):$(ver) docker.sokolab.xyz/$(WORKER_IMAGE):$(ver) docker.sokolab.xyz/$(DEPS_IMAGES) @printf '%s\n' \ '# Robotex $(ver)' \ '' \ diff --git a/README.md b/README.md index 4f09ad6..e18a854 100644 --- a/README.md +++ b/README.md @@ -155,9 +155,7 @@ Not done yet: ## Local development ```bash -python -m venv .venv -source .venv/bin/activate -make sync-offline +make sync-offline # venv in ~/.py_envs/robotex; another path: make VENV=... docker compose up -d rabbitmq redis # queue and storage cd src && RABBITMQ_URL=... REDIS_URL=... uvicorn main:app --reload cd src && dramatiq worker.actors --processes 1 --threads 4