Extracts docker conversion logic to own file, plus some other stuff

This commit is contained in:
Alicia Sykes
2023-04-23 13:32:01 +01:00
parent 7d039bbff8
commit ad09771f54
3 changed files with 109 additions and 1 deletions

View File

@@ -80,3 +80,23 @@ export interface DockerHubResponse {
content_types: string[]; // An array of supported content types for the repository
}
export interface DockerCompose {
version: string;
services: {
[serviceName: string]: {
image: string;
ports?: string[];
environment?: { [envVar: string]: string };
volumes?: string[];
restart?: string;
command?: string;
build?: string | { context: string; dockerfile?: string };
networks?: string[] | { [networkName: string]: { aliases?: string[] } };
depends_on?: string[];
labels?: { [labelName: string]: string };
};
};
networks?: { [networkName: string]: {} };
volumes?: { [volumeName: string]: {} };
}