Giter VIP home page Giter VIP logo

cerebrum's Introduction

V2X-Data-Processing

1. 本地调试

# 创建 python 虚拟环境
python3 -m virtualenv .venv
# 进入 python 虚拟环境
. .venv/bin/activate

# 安装依赖
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements/algo.txt
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt

# 启动数据处理服务
python main.py

2. 单元测试和代码格式检查

tox

3. 容器镜像制作和部署

# pytorch 基础镜像镜
# docker build -t 99cloud/v2x-algo-base -f Dockerfile-algo-base .

CONTAINER_NAME=v2x-data-processing
DOCKER_IMAGE=openv2x/${CONTAINER_NAME}

docker build -t ${DOCKER_IMAGE} .
docker stop ${CONTAINER_NAME}; docker rm ${CONTAINER_NAME}
docker run -d --name ${CONTAINER_NAME} ${DOCKER_IMAGE}

4. 手动更新

4.1 手动制作和上传容器镜像

如果容器镜像已存在,可以跳过此步骤

docker build -t cereburm .
docker tag cereburm openv2x/cereburm:latest
docker push openv2x/cereburm:latest

4.2 手动将容器镜像部署到测试环境

DEPLOY_HOST=v2x-server
# DEPLOY_HOST=v2x-test

cat .drone.yml | grep v2x-server | grep -v -E "^\s*#" | grep -E '^\s*-' | sed "s/v2x-server/${DEPLOY_HOST}/g"| sed 's/-//' > /tmp/deploy-cereburm.sh

# 然后检查一下 /tmp/deploy-cereburm.sh 是否有需要修改的地方
cat /tmp/deploy-cereburm.sh
bash /tmp/deploy-cereburm.sh

Notice

  1. Please run "dprint fmt" to format markdown files before creating PR.

cerebrum's People

Contributors

frankgty avatar wu-wenxiang avatar wd77baby avatar sivan0227 avatar ruyi-feng avatar qiaolei1 avatar

Stargazers

Huihuang Zhu avatar Dongyu_Tian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.