Skip to content

Commit f6b8ce4

Browse files
authored
Merge pull request #28 from ImMin5/master
Fix Dockerfile for SpaceONE 2.0
2 parents cb55061 + 2ffa83d commit f6b8ce4

File tree

13 files changed

+301
-246
lines changed

13 files changed

+301
-246
lines changed

deploy/helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: SpaceONE plugin Helm chart for Kubernetes
44

55
type: application
66

7-
version: 1.3.9
7+
version: 1.3.10
88
appVersion: 1.x.y
99

1010

deploy/helm/config/config.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
REMOTE_URL:
2-
- file:///opt/spaceone/plugin/config/database.yaml
3-
- file:///opt/spaceone/plugin/config/shared.yaml
4-
- file:///opt/spaceone/plugin/config/application.yaml
2+
- file:///opt/spaceone/plugin/config/database.yaml
3+
- file:///opt/spaceone/plugin/config/shared.yaml
4+
- file:///opt/spaceone/plugin/config/application.yaml
55
GLOBAL:
66
MAX_WORKERS: 1000
77
DATABASES:
@@ -31,13 +31,6 @@ GLOBAL:
3131
file:
3232
type: file
3333
filename: /var/log/spaceone/plugin.log
34-
HANDLERS:
35-
authentication:
36-
- backend: spaceone.core.handler.authentication_handler.AuthenticationGRPCHandler
37-
uri: grpc://identity:50051/v1/Domain/get_public_key
38-
authorization:
39-
- backend: spaceone.core.handler.authorization_handler.AuthorizationGRPCHandler
40-
uri: grpc://identity:50051/v1/Authorization/verify
4134
CONNECTORS:
4235
IdentityConnector:
4336
endpoint:

deploy/helm/templates/deployment-rest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
resources:
4444
{{- toYaml .Values.resources.rest | nindent 12 }}
4545
{{- end }}
46-
command: ['spaceone', 'rest', 'spaceone.{{ regexReplaceAll "-" .Values.name "_" }}', '-p', '8000']
46+
command: ['spaceone', 'run', 'rest-server','spaceone.{{ regexReplaceAll "-" .Values.name "_" }}', '-p', '8000']
4747
ports:
4848
- containerPort: 8000
4949
volumeMounts:

pkg/pip_requirements.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
spaceone-api
2-
mongoengine
3-
redis
4-
python-consul

src/setup.py

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,15 @@
1717
from setuptools import setup, find_packages
1818

1919
setup(
20-
name='spaceone-plugin',
21-
version=os.environ.get('PACKAGE_VERSION'),
22-
description='SpaceONE plugin service',
23-
long_description='',
24-
url='https://www.spaceone.dev/',
25-
author='MEGAZONE SpaceONE Team',
26-
author_email='admin@spaceone.dev',
27-
license='Apache License 2.0',
20+
name="spaceone-plugin",
21+
version=os.environ.get("PACKAGE_VERSION"),
22+
description="SpaceONE plugin service",
23+
long_description="",
24+
url="https://www.spaceone.dev/",
25+
author="MEGAZONE SpaceONE Team",
26+
author_email="admin@spaceone.dev",
27+
license="Apache License 2.0",
2828
packages=find_packages(),
29-
install_requires=[
30-
'spaceone-core',
31-
'spaceone-api',
32-
'mongoengine',
33-
'redis',
34-
'python-consul'
35-
],
29+
install_requires=["spaceone-api"],
3630
zip_safe=False,
3731
)

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

Whitespace-only changes.

src/spaceone/plugin/conf/proto_conf.py

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from spaceone.core.pygrpc.server import GRPCServer
2+
from spaceone.plugin.interface.grpc.plugin import Plugin
3+
from spaceone.plugin.interface.grpc.supervisor import Supervisor
4+
5+
__all__ = ["app"]
6+
7+
app = GRPCServer()
8+
app.add_service(Plugin)
9+
app.add_service(Supervisor)

0 commit comments

Comments
 (0)