feat(frontend): added `build` attribute to `IEditServiceForm` interface

* Updated `build` attribute in `IService` interface to adhere to the specification.
pull/85/head
Samuel Rowe 3 years ago
parent e6538a6368
commit 24d8adb5f8

@ -108,18 +108,18 @@ export interface INetworkTopLevel {
} }
export interface IService { export interface IService {
build: { build?: {
context: string; context: string;
dockerfile: string; dockerfile?: string;
args: KeyValPair[]; args?: Record<string, string> | string[];
ssh: string[]; ssh?: string[];
cache_from: string[]; cache_from?: string[];
cache_to: string[]; cache_to?: string[];
extra_hosts: string[]; extra_hosts?: string[];
isolation: string; isolation?: string;
labels: KeyValPair[]; labels?: Record<string, string> | string[];
shm_size: string | number; shm_size?: string | number;
target: string; target?: string;
}; };
cpu_count: string | number; cpu_count: string | number;
cpu_percent: string | number; cpu_percent: string | number;
@ -360,6 +360,31 @@ export interface IGeneratePayload {
} }
export interface IEditServiceForm { export interface IEditServiceForm {
build: {
context: string;
dockerfile: string;
arguments: {
key: string[];
value: string[];
}[];
sshAuthentications: {
id: string;
path: string;
}[];
cacheFrom: string[];
cacheTo: string[];
extraHosts: {
hostName: string;
ipAddress: string;
}[];
isolation: string;
labels: {
key: string[];
value: string[];
}[];
sharedMemorySize: string;
target: string;
};
serviceName: string; serviceName: string;
imageName: string; imageName: string;
imageTag: string; imageTag: string;

Loading…
Cancel
Save