@fy-stack/app-construct 0.0.147-alpha.3053 → 0.0.147-alpha.3055
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-app-container.d.ts","sourceRoot":"","sources":["../../../src/lib/containers/image-app-container.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAEhD,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;
|
|
1
|
+
{"version":3,"file":"image-app-container.d.ts","sourceRoot":"","sources":["../../../src/lib/containers/image-app-container.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAEhD,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;CAgC/D"}
|
|
@@ -11,7 +11,12 @@ const constructs_1 = require("constructs");
|
|
|
11
11
|
class ImageAppContainer extends constructs_1.Construct {
|
|
12
12
|
constructor(scope, id, props) {
|
|
13
13
|
super(scope, id);
|
|
14
|
-
const
|
|
14
|
+
const stackName = cdk.Stack.of(this).stackName;
|
|
15
|
+
const repo = new ecr.Repository(this, 'Repository', {
|
|
16
|
+
repositoryName: stackName,
|
|
17
|
+
emptyOnDelete: true,
|
|
18
|
+
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
|
19
|
+
});
|
|
15
20
|
const container = new ecrAssets.DockerImageAsset(this, 'ContainerAsset', {
|
|
16
21
|
directory: props.output,
|
|
17
22
|
platform: ecrAssets.Platform.LINUX_AMD64,
|
|
@@ -22,7 +27,7 @@ class ImageAppContainer extends constructs_1.Construct {
|
|
|
22
27
|
dest: new ecrDeployment.DockerImageName(cdk.Fn.join(':', [repo.repositoryUri, props.version])),
|
|
23
28
|
});
|
|
24
29
|
new ssm.StringParameter(this, 'OutputParams', {
|
|
25
|
-
parameterName:
|
|
30
|
+
parameterName: stackName,
|
|
26
31
|
stringValue: JSON.stringify({
|
|
27
32
|
repository: repo.repositoryName,
|
|
28
33
|
tag: props.version,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-app-router-container.d.ts","sourceRoot":"","sources":["../../../src/lib/containers/next-app-router-container.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAErD,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;
|
|
1
|
+
{"version":3,"file":"next-app-router-container.d.ts","sourceRoot":"","sources":["../../../src/lib/containers/next-app-router-container.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAErD,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;CA0CpE"}
|
|
@@ -12,8 +12,11 @@ const next_app_router_1 = require("../shared/next-app-router");
|
|
|
12
12
|
class NextAppRouterContainer extends constructs_1.Construct {
|
|
13
13
|
constructor(scope, id, props) {
|
|
14
14
|
super(scope, id);
|
|
15
|
+
const stackName = cdk.Stack.of(this).stackName;
|
|
15
16
|
const repo = new ecr.Repository(this, 'Repository', {
|
|
17
|
+
repositoryName: stackName,
|
|
16
18
|
emptyOnDelete: true,
|
|
19
|
+
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
|
17
20
|
});
|
|
18
21
|
const container = new ecrAssets.DockerImageAsset(this, 'ContainerAsset', {
|
|
19
22
|
directory: props.output,
|
|
@@ -26,7 +29,7 @@ class NextAppRouterContainer extends constructs_1.Construct {
|
|
|
26
29
|
dest: new ecrDeployment.DockerImageName(cdk.Fn.join(':', [repo.repositoryUri, props.version])),
|
|
27
30
|
});
|
|
28
31
|
new ssm.StringParameter(this, 'OutputParams', {
|
|
29
|
-
parameterName:
|
|
32
|
+
parameterName: stackName,
|
|
30
33
|
stringValue: JSON.stringify({
|
|
31
34
|
repository: repo.repositoryName,
|
|
32
35
|
tag: props.version,
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fy-stack/app-construct",
|
|
3
|
-
"version": "0.0.147-alpha.
|
|
3
|
+
"version": "0.0.147-alpha.3055",
|
|
4
4
|
"repository": "https://github.com/festusyuma/fy-stack",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@fy-stack/types": "0.0.147-alpha.
|
|
6
|
+
"@fy-stack/types": "0.0.147-alpha.3055",
|
|
7
7
|
"tslib": "^2.3.0",
|
|
8
8
|
"zod": "^3.24.1"
|
|
9
9
|
},
|