From 7428e088572353b985f36a5d2416c4f77816f746 Mon Sep 17 00:00:00 2001 From: ImMin5 Date: Fri, 21 Feb 2025 04:02:21 +0900 Subject: [PATCH] build: modify Dockerfile for increasing workers Signed-off-by: ImMin5 --- Dockerfile | 12 ++++++------ README.md | 2 +- src/setup.py | 24 ++++++++++++------------ 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index 403d3ea..75c3a66 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ FROM cloudforet/python-core:2.0 -ENV PYTHONUNBUFFERED 1 -ENV SPACEONE_PORT 50051 -ENV SERVER_TYPE grpc -ENV PKG_DIR /tmp/pkg -ENV SRC_DIR /tmp/src +ENV PYTHONUNBUFFERED=1 +ENV SPACEONE_PORT=50051 +ENV SERVER_TYPE=grpc +ENV PKG_DIR=/tmp/pkg +ENV SRC_DIR=/tmp/src RUN apt update && apt upgrade -y @@ -21,4 +21,4 @@ RUN python3 setup.py install && rm -rf /tmp/* EXPOSE ${SPACEONE_PORT} ENTRYPOINT ["spaceone"] -CMD ["run", "plugin-server", "plugin"] +CMD ["run", "plugin-server", "plugin", "-w", "12"] diff --git a/README.md b/README.md index eaefea4..5e30afb 100644 --- a/README.md +++ b/README.md @@ -27,4 +27,4 @@ Plugin for collecting AWS HyperBilling data ## Options -Currently, not required. +*Example* diff --git a/src/setup.py b/src/setup.py index 6abdc40..04506fc 100644 --- a/src/setup.py +++ b/src/setup.py @@ -16,25 +16,25 @@ from setuptools import setup, find_packages -with open('VERSION', 'r') as f: +with open("VERSION", "r") as f: VERSION = f.read().strip() f.close() setup( - name='plugin-aws-hyperbilling-cost-datasource', + name="plugin-aws-hyperbilling-cost-datasource", version=VERSION, - description='Data source plugin for AWS HyperBilling', - long_description='', - url='https://www.spaceone.dev/', - author='MEGAZONE SpaceONE Team', - author_email='admin@spaceone.dev', - license='Apache License 2.0', + description="Data source plugin for AWS HyperBilling", + long_description="", + url="https://www.spaceone.dev/", + author="MEGAZONE SpaceONE Team", + author_email="admin@spaceone.dev", + license="Apache License 2.0", packages=find_packages(), install_requires=[ - 'spaceone-core', - 'spaceone-api', - 'spaceone-cost-analysis', - 'pyarrow' + "spaceone-core", + "spaceone-api", + "spaceone-cost-analysis==2.0.dev204", + "pyarrow", ], zip_safe=False, )