Skip to content

Commit b8b7d0f

Browse files
author
Vadym Kazulkin
committed
investigate spring boot and in crac in lambda container image
1 parent 9470f39 commit b8b7d0f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-boot-3.2-docker-image-with-crac/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ COPY --from=build /src/target/*.jar ./
2727

2828

2929
# Set runtime interface client as default command for the container runtime
30-
ENTRYPOINT [ "/usr/bin/java", "-cp", "./*", "com.amazonaws.services.lambda.runtime.api.client.AWSLambda" ]
30+
ENTRYPOINT [ "$JAVA_HOME/bin/java", "-cp", "./*", "com.amazonaws.services.lambda.runtime.api.client.AWSLambda" ]
3131

3232
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
3333
# CMD [ "software.amazonaws.example.product.handler.GetProductByIdHandler::handleRequest" ]

spring-boot-3.2-docker-image-with-crac/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Resources:
110110
Type: AWS::Serverless::Function
111111
Properties:
112112
PackageType: Image
113-
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-spring-boot-3.2-java21-custom-docker-image-with-crac:v1
113+
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-spring-boot-3.2-java21-custom-docker-image-crac:v1
114114
ImageConfig:
115115
Command: ["org.springframework.cloud.function.adapter.aws.FunctionInvoker::handleRequest"]
116116
Environment:
@@ -139,7 +139,7 @@ Resources:
139139
Type: AWS::Serverless::Function
140140
Properties:
141141
PackageType: Image
142-
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-spring-boot-3.2-java21-custom-docker-image-with-crac:v1
142+
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-spring-boot-3.2-java21-custom-docker-image-crac:v1
143143
ImageConfig:
144144
Command: ["org.springframework.cloud.function.adapter.aws.FunctionInvoker::handleRequest"]
145145
Environment:

0 commit comments

Comments
 (0)