Skip to content

Commit bd81231

Browse files
author
Vadym Kazulkin
committed
investigate spring boot and in crac in lambda container image
1 parent 76f2112 commit bd81231

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ COPY --from=build /src/target/*.jar ./
2929
# Set runtime interface client as default command for the container runtime
3030
#ENTRYPOINT [ "/usr/bin/java", "-cp", "./*", "com.amazonaws.services.lambda.runtime.api.client.AWSLambda" ]
3131

32-
ENTRYPOINT exec $JAVA_HOME/bin/java -cp "./*" com.amazonaws.services.lambda.runtime.api.client.AWSLambda
33-
32+
ENTRYPOINT $JAVA_HOME/bin/java -cp "./*" com.amazonaws.services.lambda.runtime.api.client.AWSLambda
3433
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
3534
# 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-crac-custom-docker-image:v1
113+
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-spring-boot-3.2-java21-with-crac-custom-docker-image: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-crac-custom-docker-image:v1
142+
ImageUri: !Sub ${AWS::AccountId}.dkr.ecr.eu-central-1.amazonaws.com/aws-spring-boot-3.2-java21-with-crac-custom-docker-image:v1
143143
ImageConfig:
144144
Command: ["org.springframework.cloud.function.adapter.aws.FunctionInvoker::handleRequest"]
145145
Environment:

0 commit comments

Comments
 (0)