@codedazur/cdk-docker-cluster 0.9.4 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @codedazur/cdk-docker-cluster
2
2
 
3
+ ## 0.9.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`315085a`](https://github.com/codedazur/toolkit/commit/315085a029c6f0f2f71b1a48ea223b0b78d316aa) Thanks [@thijsdaniels](https://github.com/thijsdaniels)! - The DockerCluster's site distribution attribute was renamed.
8
+
9
+ - Updated dependencies [[`315085a`](https://github.com/codedazur/toolkit/commit/315085a029c6f0f2f71b1a48ea223b0b78d316aa)]:
10
+ - @codedazur/cdk-site-distribution@0.5.3
11
+
12
+ ## 0.9.5
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`ddef1e0`](https://github.com/codedazur/toolkit/commit/361f03c2aafe7a2bc04789b433c99ca79350da2a)]:
17
+ - @codedazur/cdk-site-distribution@0.5.2
18
+
3
19
  ## 0.9.4
4
20
 
5
21
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -37,11 +37,11 @@ declare class DockerCluster extends Construct {
37
37
  readonly domain?: string;
38
38
  readonly image: ContainerImage;
39
39
  readonly service: ApplicationLoadBalancedFargateService;
40
- readonly distribution: SiteDistribution;
40
+ readonly siteDistribution: SiteDistribution;
41
41
  constructor(scope: Construct, id: string, props: DockerClusterProps);
42
42
  protected createImage(source: string | SourceProps): aws_cdk_lib_aws_ecs.AssetImage;
43
43
  protected createService(): ApplicationLoadBalancedFargateService;
44
- protected createDistribution(): SiteDistribution;
44
+ protected createSiteDistribution(): SiteDistribution;
45
45
  protected getOutputDirectory(): string;
46
46
  }
47
47
 
package/dist/index.d.ts CHANGED
@@ -37,11 +37,11 @@ declare class DockerCluster extends Construct {
37
37
  readonly domain?: string;
38
38
  readonly image: ContainerImage;
39
39
  readonly service: ApplicationLoadBalancedFargateService;
40
- readonly distribution: SiteDistribution;
40
+ readonly siteDistribution: SiteDistribution;
41
41
  constructor(scope: Construct, id: string, props: DockerClusterProps);
42
42
  protected createImage(source: string | SourceProps): aws_cdk_lib_aws_ecs.AssetImage;
43
43
  protected createService(): ApplicationLoadBalancedFargateService;
44
- protected createDistribution(): SiteDistribution;
44
+ protected createSiteDistribution(): SiteDistribution;
45
45
  protected getOutputDirectory(): string;
46
46
  }
47
47
 
package/dist/index.js CHANGED
@@ -39,12 +39,14 @@ var DockerCluster = class extends import_constructs.Construct {
39
39
  this.props = props;
40
40
  this.image = this.props.source instanceof import_aws_ecs.ContainerImage ? this.props.source : this.createImage(this.props.source);
41
41
  this.service = this.createService();
42
- this.distribution = this.createDistribution();
42
+ this.siteDistribution = this.createSiteDistribution();
43
43
  }
44
44
  createImage(source) {
45
45
  const props = {
46
46
  exclude: [`**/${this.getOutputDirectory()}`],
47
47
  platform: import_aws_ecr_assets.Platform.LINUX_AMD64
48
+ // networkMode: NetworkMode.HOST, // @todo Use the host network mode.
49
+ // cacheFrom: [], // @todo Use the previously built image as a cache.
48
50
  };
49
51
  if (typeof source === "string") {
50
52
  return import_aws_ecs.ContainerImage.fromAsset(source, props);
@@ -83,7 +85,7 @@ var DockerCluster = class extends import_constructs.Construct {
83
85
  }
84
86
  return service;
85
87
  }
86
- createDistribution() {
88
+ createSiteDistribution() {
87
89
  return new import_cdk_site_distribution.SiteDistribution(this, "Distribution", {
88
90
  allowedMethods: import_aws_cloudfront.AllowedMethods.ALLOW_ALL,
89
91
  cachePolicy: {
package/dist/index.mjs CHANGED
@@ -23,12 +23,14 @@ var DockerCluster = class extends Construct {
23
23
  this.props = props;
24
24
  this.image = this.props.source instanceof ContainerImage ? this.props.source : this.createImage(this.props.source);
25
25
  this.service = this.createService();
26
- this.distribution = this.createDistribution();
26
+ this.siteDistribution = this.createSiteDistribution();
27
27
  }
28
28
  createImage(source) {
29
29
  const props = {
30
30
  exclude: [`**/${this.getOutputDirectory()}`],
31
31
  platform: Platform.LINUX_AMD64
32
+ // networkMode: NetworkMode.HOST, // @todo Use the host network mode.
33
+ // cacheFrom: [], // @todo Use the previously built image as a cache.
32
34
  };
33
35
  if (typeof source === "string") {
34
36
  return ContainerImage.fromAsset(source, props);
@@ -67,7 +69,7 @@ var DockerCluster = class extends Construct {
67
69
  }
68
70
  return service;
69
71
  }
70
- createDistribution() {
72
+ createSiteDistribution() {
71
73
  return new SiteDistribution(this, "Distribution", {
72
74
  allowedMethods: AllowedMethods.ALLOW_ALL,
73
75
  cachePolicy: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codedazur/cdk-docker-cluster",
3
- "version": "0.9.4",
3
+ "version": "0.9.6",
4
4
  "main": ".dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "constructs": ">=10"
28
28
  },
29
29
  "dependencies": {
30
- "@codedazur/cdk-site-distribution": "^0.5.1"
30
+ "@codedazur/cdk-site-distribution": "^0.5.3"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^20.14.10",