feat(appstore): add service volumes and published ports
This commit is contained in:
@@ -95,6 +95,8 @@ export class OneboxServicesManager {
|
||||
image: options.useOneboxRegistry ? imageToPull : options.image,
|
||||
registry: options.registry,
|
||||
envVars: options.envVars || {},
|
||||
volumes: options.volumes || [],
|
||||
publishedPorts: options.publishedPorts || [],
|
||||
port: options.port,
|
||||
domain: options.domain,
|
||||
status: 'stopped',
|
||||
@@ -578,6 +580,8 @@ export class OneboxServicesManager {
|
||||
port?: number;
|
||||
domain?: string;
|
||||
envVars?: Record<string, string>;
|
||||
volumes?: IService['volumes'];
|
||||
publishedPorts?: IService['publishedPorts'];
|
||||
}
|
||||
): Promise<IService> {
|
||||
try {
|
||||
@@ -616,6 +620,8 @@ export class OneboxServicesManager {
|
||||
if (updates.port !== undefined) updateData.port = updates.port;
|
||||
if (updates.domain !== undefined) updateData.domain = updates.domain;
|
||||
if (updates.envVars !== undefined) updateData.envVars = updates.envVars;
|
||||
if (updates.volumes !== undefined) updateData.volumes = updates.volumes;
|
||||
if (updates.publishedPorts !== undefined) updateData.publishedPorts = updates.publishedPorts;
|
||||
|
||||
this.database.updateService(service.id!, updateData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user