Skip to content

Commit

Permalink
Merge branch 'docker-compose' into 'main'
Browse files Browse the repository at this point in the history
Docker compose

See merge request leoconforti/the-moby-effect!1
  • Loading branch information
leonitousconforti committed Nov 3, 2024
2 parents 25c3369 + 2a47302 commit e602e74
Show file tree
Hide file tree
Showing 23 changed files with 274 additions and 255 deletions.
6 changes: 3 additions & 3 deletions src/convey/Streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as ParseResult from "effect/ParseResult";
import * as Predicate from "effect/Predicate";
import * as Stream from "effect/Stream";

import * as Tar from "../archive/Tar.js";
import { TarballFromFilesystem, TarballFromMemory } from "../archive/Tar.js";

/**
* @since 1.0.0
Expand Down Expand Up @@ -42,5 +42,5 @@ export const packBuildContextIntoTarballStream: {
entries: Array<string> = ["dockerfile"]
): U =>
Predicate.isString(cwdOrEntries)
? (Tar.TarballFromFilesystem(cwdOrEntries, entries) as U)
: (Tar.TarballFromMemory(cwdOrEntries) as U);
? (TarballFromFilesystem(cwdOrEntries, entries) as U)
: (TarballFromMemory(cwdOrEntries) as U);
4 changes: 3 additions & 1 deletion src/demux/Multiplexed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ export const MultiplexedStreamSocketContentType = "application/vnd.docker.multip
* @category Type ids
* @internal
*/
export const MultiplexedStreamSocketTypeId: unique symbol = Symbol.for("the-moby-effect/demux/MultiplexedStreamSocket");
export const MultiplexedStreamSocketTypeId: unique symbol = Symbol.for(
"the-moby-effect/demux/MultiplexedStreamSocket"
) as MultiplexedStreamSocketTypeId;

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/demux/Raw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export const RawStreamSocketContentType = "application/vnd.docker.raw-stream" as
* @category Type ids
* @internal
*/
export const RawStreamSocketTypeId: unique symbol = Symbol.for("the-moby-effect/demux/RawStreamSocket");
export const RawStreamSocketTypeId: unique symbol = Symbol.for(
"the-moby-effect/demux/RawStreamSocket"
) as RawStreamSocketTypeId;

/**
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/demux/Stdio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as Scope from "effect/Scope";
import * as Sink from "effect/Sink";
import * as Stream from "effect/Stream";

import { Demux, demuxUnknownToSeparateSinks } from "./Demux.js";
import { type Demux, demuxUnknownToSeparateSinks } from "./Demux.js";

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/endpoints/Configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ import { maybeAddFilters, maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const ConfigsErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/ConfigsError");
export const ConfigsErrorTypeId: unique symbol = Symbol.for(
"@the-moby-effect/endpoints/ConfigsError"
) as ConfigsErrorTypeId;

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/endpoints/Containers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ import { maybeAddFilters, maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const ContainersErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/ContainersError");
export const ContainersErrorTypeId: unique symbol = Symbol.for(
"@the-moby-effect/endpoints/ContainersError"
) as ContainersErrorTypeId;

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/endpoints/Distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ import { RegistryDistributionInspect } from "../generated/index.js";
* @category Errors
* @internal
*/
export const DistributionsErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/DistributionsError");
export const DistributionsErrorTypeId: unique symbol = Symbol.for(
"@the-moby-effect/endpoints/DistributionsError"
) as DistributionsErrorTypeId;

/**
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/Execs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const ExecsErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/ExecsError");
export const ExecsErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/ExecsError") as ExecsErrorTypeId;

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/endpoints/Images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ import { maybeAddFilters, maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const ImagesErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/ImagesError");
export const ImagesErrorTypeId: unique symbol = Symbol.for(
"@the-moby-effect/endpoints/ImagesError"
) as ImagesErrorTypeId;

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/endpoints/Networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ import { maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const NetworksErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/NetworksError");
export const NetworksErrorTypeId: unique symbol = Symbol.for(
"@the-moby-effect/endpoints/NetworksError"
) as NetworksErrorTypeId;

/**
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/Nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const NodesErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/NodesError");
export const NodesErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/NodesError") as NodesErrorTypeId;

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/endpoints/Plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ import { maybeAddHeader, maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const PluginsErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/PluginsError");
export const PluginsErrorTypeId: unique symbol = Symbol.for(
"@the-moby-effect/endpoints/PluginsError"
) as PluginsErrorTypeId;

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/endpoints/Secrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ import { maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const SecretsErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/SecretsError");
export const SecretsErrorTypeId: unique symbol = Symbol.for(
"@the-moby-effect/endpoints/SecretsError"
) as SecretsErrorTypeId;

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/endpoints/Services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ import { maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const ServicesErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/ServicesError");
export const ServicesErrorTypeId: unique symbol = Symbol.for(
"@the-moby-effect/endpoints/ServicesError"
) as ServicesErrorTypeId;

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/endpoints/Session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ import { hijackResponseUnsafe } from "../demux/Hijack.js";
* @category Errors
* @internal
*/
export const SessionsErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/SessionsError");
export const SessionsErrorTypeId: unique symbol = Symbol.for(
"@the-moby-effect/endpoints/SessionsError"
) as SessionsErrorTypeId;

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/endpoints/Swarm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ import { maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const SwarmsErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/SwarmsError");
export const SwarmsErrorTypeId: unique symbol = Symbol.for(
"@the-moby-effect/endpoints/SwarmsError"
) as SwarmsErrorTypeId;

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/endpoints/System.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ import { maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const SystemsErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/SystemsError");
export const SystemsErrorTypeId: unique symbol = Symbol.for(
"@the-moby-effect/endpoints/SystemsError"
) as SystemsErrorTypeId;

/**
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/Tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const TasksErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/TasksError");
export const TasksErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/TasksError") as TasksErrorTypeId;

/**
* @since 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion src/endpoints/Volumes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ import { maybeAddQueryParameter } from "./Common.js";
* @category Errors
* @internal
*/
export const VolumesErrorTypeId: unique symbol = Symbol.for("@the-moby-effect/endpoints/VolumesError");
export const VolumesErrorTypeId: unique symbol = Symbol.for(
"@the-moby-effect/endpoints/VolumesError"
) as VolumesErrorTypeId;

/**
* @since 1.0.0
Expand Down
Loading

0 comments on commit e602e74

Please sign in to comment.