Skip to content

Commit df62d3d

Browse files
fix: python-core 버전 1과 현재 배포된 다른 라이브러리와의 grpc 버전 호환성 문제로 인한 python-core 버전2로 update 작업
Signed-off-by: jinyoungmoonDEV <moonjinyoung.dev@gmail.com>
1 parent 1583cbb commit df62d3d

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM cloudforet/python-core:1
1+
FROM cloudforet/python-core:2.0
22

33
ENV PYTHONUNBUFFERED 1
44
ENV CLOUDONE_PORT 50051
@@ -22,4 +22,4 @@ RUN python3 setup.py install && \
2222
EXPOSE ${CLOUDONE_PORT}
2323

2424
ENTRYPOINT ["spaceone"]
25-
CMD ["grpc", "spaceone.inventory"]
25+
CMD ["run", "grpc-server", "spaceone.inventory"]

src/spaceone/inventory/api/plugin/__init__.py

Whitespace-only changes.
File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from spaceone.core.pygrpc.server import GRPCServer
2+
from .collector import Collector
3+
4+
_all_ = ["app"]
5+
6+
app = GRPCServer()
7+
app.add_service(Collector)
File renamed without changes.

src/spaceone/inventory/service/collector_service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111

1212
class CollectorService(BaseService):
13+
resource = "Collector"
14+
1315
def __init__(self, metadata):
1416
super().__init__(metadata)
1517

0 commit comments

Comments
 (0)