【文件属性】:
文件名称:rubix服务
文件大小:81KB
文件格式:ZIP
更新时间:2021-02-23 05:37:56
Python
rubix服务
在开发中运行
用来管理依赖
安装简单脚本
./setup.sh
加入venv
poetry shell
构建本地二进制
poetry run pyinstaller run.py -n rubix-service --clean --onefile \
--add-data VERSION:. \
--add-data systemd:systemd
输出为: dist/rubix-service
Docker构建
建造
./docker.sh
输出图像是: rubix-service:dev
跑
docker create volume rubix-service-data
docker run --rm -it -p 1616:1616 -p 1313:1313 -v rubix-service-data:/data --name rubix-
【文件预览】:
rubix-service-master
----.gitignore(182B)
----README.md(6KB)
----out()
--------.gitkeep(0B)
----script.bash(6KB)
----CHANGELOG.md(3KB)
----.github()
--------workflows()
----systemd()
--------nubeio-app-service.service(400B)
----tests()
--------system()
--------__init__.py(0B)
----docker.sh(575B)
----.gitattributes(211B)
----setup.sh(320B)
----docker()
--------runtime.Dockerfile(2KB)
--------.env(64B)
--------build.alpine.Dockerfile(1KB)
--------build.Dockerfile(1KB)
----src()
--------app.py(2KB)
--------system()
--------pyinstaller.py(366B)
--------utils()
--------server.py(2KB)
--------reverse_proxy_routes.py(1KB)
--------inheritors.py(361B)
--------setting.py(4KB)
--------model.py(632B)
--------routes.py(4KB)
--------__init__.py(127B)
--------platform()
--------users()
----config()
--------logging.example.conf(711B)
--------logging.prod.example.conf(711B)
----pyproject.toml(785B)
----.editorconfig(176B)
----VERSION(6B)
----poetry.lock(50KB)
----run.py(3KB)