This commit is contained in:
wuyifan 2024-06-26 15:33:05 +08:00
parent a1e41d3417
commit abd6f3a3e6
2 changed files with 37 additions and 11 deletions

37
Makefile Normal file
View File

@ -0,0 +1,37 @@
VERSION := $(shell git rev-parse --short HEAD)
SHELL=/bin/bash
CONDA_ACTIVATE=source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate
# Image URL to use all building/pushing image targets
export IMAGE=reg.docker.alibaba-inc.com/ob-robot/reposyncer:v0.0.1
all: backend-docker frontend-docker
##@ docker
extra-download: ## git clone the extra reference
git submodule update --init
frontend-build:
cd web && $(MAKE) static
docker-build: ## Build docker image
docker build -t ${IMAGE} .
docker-push: ## Push docker image
docker push ${IMAGE}
backend-docker: extra-download frontend-build docker-build docker-push
##@ run
py39:
$(CONDA_ACTIVATE) py39
run: py39
python main.py
static:
cd web && $(MAKE) static
backrun:
nohup python main.py > /tmp/robot.log 2>&1 &

View File

@ -1,11 +0,0 @@
uvicorn==0.14.0
SQLAlchemy==1.4.21
fastapi==0.66.0
aiohttp==3.7.4.post0
pydantic==1.8.2
starlette==0.14.2
aiomysql==0.0.21
requests==2.26.0
loguru==0.6.0
typing-extensions==4.1.1
aiofiles==0.8.0