rename stack to composestack
All checks were successful
Build and push Docker image / build (push) Successful in 9s
All checks were successful
Build and push Docker image / build (push) Successful in 9s
This commit is contained in:
parent
62d4ad061e
commit
a0cfb72340
3 changed files with 7 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
||||||
* https://raw.githubusercontent.com/immich-app/immich/main/docker/docker-compose.yml
|
* https://raw.githubusercontent.com/immich-app/immich/main/docker/docker-compose.yml
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Stack } from "../mod.ts";
|
import { ComposeStack } from "../mod.ts";
|
||||||
|
|
||||||
interface ImmichStackOptions {
|
interface ImmichStackOptions {
|
||||||
stackName?: string;
|
stackName?: string;
|
||||||
|
@ -16,7 +16,7 @@ interface ImmichStackOptions {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ImmichStack extends Stack {
|
export class ImmichStack extends ComposeStack {
|
||||||
constructor(props: ImmichStackOptions) {
|
constructor(props: ImmichStackOptions) {
|
||||||
super(props.stackName ?? "immich");
|
super(props.stackName ?? "immich");
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ function mapRecordToCompose<T, F extends { toCompose(): T }>(
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stack is a collection of services, networks, and volumes.
|
* ComposeStack is a collection of services, networks, and volumes.
|
||||||
* Every stack gets turned into a compose file at the end of the execution.
|
* Every stack gets turned into a compose file at the end of the execution.
|
||||||
* To create a stack, define a new class that extends Stack, then
|
* To create a stack, define a new class that extends Stack, then
|
||||||
* instantiate the class with the name of the stack.
|
* instantiate the class with the name of the stack.
|
||||||
|
@ -41,7 +41,7 @@ function mapRecordToCompose<T, F extends { toCompose(): T }>(
|
||||||
* const stack = new ExampleStack("example");
|
* const stack = new ExampleStack("example");
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
export class Stack {
|
export class ComposeStack {
|
||||||
private services: Record<string, Service> = {};
|
private services: Record<string, Service> = {};
|
||||||
private networks: Record<string, Network> = {};
|
private networks: Record<string, Network> = {};
|
||||||
private volumes: Record<string, Volume> = {};
|
private volumes: Record<string, Volume> = {};
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { Stack } from "./components/mod.ts";
|
import { ComposeStack } from "./components/mod.ts";
|
||||||
import { ComposeSpecification } from "./compose-schema.ts";
|
import { ComposeSpecification } from "./compose-schema.ts";
|
||||||
|
|
||||||
const deployments: Stack[] = [];
|
const deployments: ComposeStack[] = [];
|
||||||
|
|
||||||
export function registerDeployment(stack: Stack) {
|
export function registerDeployment(stack: ComposeStack) {
|
||||||
deployments.push(stack);
|
deployments.push(stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue