Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 05ad84cc99 | |||
| d95b9d221d |
@ -5,7 +5,7 @@ ADD https://git.tanshu.com/api/v1/repos/tanshu/gru/tags /tags.json
|
|||||||
RUN git clone --single-branch --depth 1 --branch latest https://git.tanshu.com/tanshu/gru.git /app
|
RUN git clone --single-branch --depth 1 --branch latest https://git.tanshu.com/tanshu/gru.git /app
|
||||||
|
|
||||||
# Install Poetry
|
# Install Poetry
|
||||||
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | POETRY_HOME=/opt/poetry python && \
|
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python && \
|
||||||
cd /usr/local/bin && \
|
cd /usr/local/bin && \
|
||||||
ln -s /opt/poetry/bin/poetry && \
|
ln -s /opt/poetry/bin/poetry && \
|
||||||
poetry config virtualenvs.create false
|
poetry config virtualenvs.create false
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# DO Community Playbooks: Docker
|
# DO Community Playbooks: Docker
|
||||||
#################################################
|
#################################################
|
||||||
---
|
---
|
||||||
- hosts: gru
|
- hosts: all
|
||||||
become: true
|
become: true
|
||||||
vars_files:
|
vars_files:
|
||||||
- "vars/gru.yml"
|
- "vars/gru.yml"
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import uvicorn
|
|||||||
from fastapi import FastAPI, Form
|
from fastapi import FastAPI, Form
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
from .core.config import settings
|
from .config import settings
|
||||||
|
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "gru"
|
name = "gru"
|
||||||
version = "0.0.1"
|
version = "0.0.2"
|
||||||
description = "Sensor manager."
|
description = "Sensor manager."
|
||||||
authors = ["tanshu <git@tanshu.com>"]
|
authors = ["tanshu <git@tanshu.com>"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user