Skip to content

Commit 74d21b7

Browse files
authored
Merge pull request #65 from devsapp/fix-cc-springboot
fix custom container springboot run in app center
2 parents 1b7c9e3 + 9d97b45 commit 74d21b7

File tree

5 files changed

+9
-15
lines changed

5 files changed

+9
-15
lines changed

custom-container-function/fc-custom-container-http-springboot/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: start-fc-custom-container-http-springboot
33
Provider:
44
- 阿里云
5-
Version: 1.2.15
5+
Version: 1.2.16
66
Description: 快速部署一个基于custom container runtime 的 springboot HTTP 类型的 Hello World 到阿里云函数计算
77
HomePage: https://github.com/devsapp/start-fc
88
Tags:
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
FROM maven:3.8.2-openjdk-8
1+
FROM rsonghuster/openjdk8:stretch
22

3-
RUN mkdir -p /usr/src/app
4-
WORKDIR /usr/src/app
3+
RUN mkdir -p /usr/app
4+
WORKDIR /usr/app
55
COPY src ./src
66
COPY pom.xml ./pom.xml
77
COPY settings.xml /usr/share/maven/conf/settings.xml
88
RUN mvn package
9-
10-
## prod image on FC
11-
FROM maven:3.8.2-openjdk-8
12-
RUN mkdir -p /usr/src/app
13-
WORKDIR /usr/src/app
14-
COPY --from=0 /usr/src/app/target/demo-0.1.0.jar /usr/src/app/demo.jar
15-
ENTRYPOINT ["java", "-jar", "demo.jar"]
9+
ENTRYPOINT ["java", "-jar", "/usr/app/target/demo-0.1.0.jar"]

custom-container-function/fc-custom-container-http-springboot/src/code/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<parent>
1414
<groupId>org.springframework.boot</groupId>
1515
<artifactId>spring-boot-starter-parent</artifactId>
16-
<version>2.3.0.RELEASE</version>
16+
<version>2.1.8.RELEASE</version>
1717
<relativePath />
1818
</parent>
1919

custom-container-function/fc-custom-container-http-springboot/src/s.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ services:
5050
name: "{{ functionName }}"
5151
description: 'hello world by serverless devs'
5252
caPort: 9000
53-
memorySize: 256
53+
memorySize: 1024
54+
instanceConcurrency: 16
5455
timeout: 60
5556
runtime: custom-container
5657
customContainerConfig:

update.list

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
custom-container-function/fc-custom-container-event-python3.9
2-
custom-container-function/fc-custom-container-event-nodejs14
1+
custom-container-function/fc-custom-container-http-springboot

0 commit comments

Comments
 (0)