Skip to content

Commit ea4f8d6

Browse files
authored
Merge pull request #1582 from oracle-devrel/name-fixes
name changes
2 parents a7ed3da + 5da910d commit ea4f8d6

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

app-dev/devops-and-containers/functions/java-helloworld-AI-with-local-dev-and-oci-functions/files/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RUN ["mvn", "package"]
88
FROM fnproject/fn-java-fdk:jre17-1.0.187
99
WORKDIR /function
1010
COPY --from=build-stage /function/target/*.jar /function/app/
11-
CMD ["com.example.HelloAIFunction::handleRequest"]
11+
CMD ["com.example.fn.HelloFunction::handleRequest"]

app-dev/devops-and-containers/functions/java-helloworld-AI-with-local-dev-and-oci-functions/files/Dockerfile.local_oci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ RUN chmod 777 /config
1818
RUN chmod 777 /oci_api_key.pem
1919
RUN sed -i '/^key_file/d' /config
2020
RUN echo "key_file = /oci_api_key.pem" >> /config
21-
CMD ["com.example.HelloAIFunction::handleRequest"]
21+
CMD ["com.example.fn.HelloFunction::handleRequest"]

app-dev/devops-and-containers/functions/java-helloworld-AI-with-local-dev-and-oci-functions/files/Dockerfile.native

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN native-image \
88
-H:ReflectionConfigurationFiles=/app/reflection.json \
99
-Ob \
1010
-H:Name=Hello \
11-
-cp "/app/Helloaifunc-1.0-SNAPSHOT.jar:/app/lib/*" \
11+
-cp "/app/Hellofunc-1.0-SNAPSHOT.jar:/app/lib/*" \
1212
com.fnproject.fn.runtime.EntryPoint
1313

1414
FROM fnproject/fn-java-fdk:jre17-1.0.198 as fdk
@@ -17,4 +17,4 @@ FROM container-registry.oracle.com/os/oraclelinux:8-slim
1717
COPY --from=native /app/Hello .
1818
COPY --from=fdk /function/runtime/* ./
1919
ENTRYPOINT [ "./Hello" ]
20-
CMD [ "com.example.HelloAIFunction::handleRequest", "-Djava.library.path=/lib"]
20+
CMD [ "com.example.fn.HelloFunction::handleRequest", "-Djava.library.path=/lib"]

app-dev/devops-and-containers/functions/java-helloworld-AI-with-local-dev-and-oci-functions/files/func.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ version: 0.0.1
44
runtime: java
55
build_image: fnproject/fn-java-fdk-build:jdk17-1.0.187
66
run_image: fnproject/fn-java-fdk:jre17-1.0.187
7-
cmd: com.example.HelloAIFunction::handleRequest
7+
cmd: com.example.fn.HelloFunction::handleRequest
88
timeout: 120

app-dev/devops-and-containers/functions/java-helloworld-AI-with-local-dev-and-oci-functions/files/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>org.example</groupId>
8-
<artifactId>Helloaifunc</artifactId>
8+
<artifactId>Hellofunc</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010

1111
<build>

app-dev/devops-and-containers/functions/java-helloworld-AI-with-local-dev-and-oci-functions/files/reflection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"name": "com.example.HelloAIFunction",
3+
"name": "com.example.fn.HelloFunction",
44
"allDeclaredMethods": true,
55
"methods": [
66
{ "name": "<init>", "parameterTypes": [] }
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Software and the Larger Work(s), and to sublicense the foregoing rights on
3636
SOFTWARE.
3737
*/
3838

39-
package com.example;
39+
package com.example.fn;
4040

4141
import com.oracle.bmc.ClientConfiguration;
4242
import com.oracle.bmc.ConfigFileReader;
@@ -69,7 +69,7 @@ Software and the Larger Work(s), and to sublicense the foregoing rights on
6969
import java.util.*;
7070
import java.text.*;
7171

72-
public class HelloAIFunction {
72+
public class HelloFunction {
7373

7474
// FILL IN PROPER VALUES FOR OCI GENAI SERVICE
7575
private static final String ENDPOINT = "https://inference.generativeai.eu-frankfurt-1.oci.oraclecloud.com";

app-dev/devops-and-containers/functions/java-helloworld-with-local-dev-and-oci-functions/files/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RUN ["mvn", "package"]
88
FROM fnproject/fn-java-fdk:jre17-1.0.187
99
WORKDIR /function
1010
COPY --from=build-stage /function/target/*.jar /function/app/
11-
CMD ["com.example.HelloFunction::handleRequest"]
11+
CMD ["com.example.fn.HelloFunction::handleRequest"]

app-dev/devops-and-containers/functions/java-helloworld-with-local-dev-and-oci-functions/files/func.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ version: 0.0.1
44
runtime: java
55
build_image: fnproject/fn-java-fdk-build:jdk17-1.0.187
66
run_image: fnproject/fn-java-fdk:jre17-1.0.187
7-
cmd: com.example.HelloFunction::handleRequest
7+
cmd: com.example.fn.HelloFunction::handleRequest
88
timeout: 120
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Software and the Larger Work(s), and to sublicense the foregoing rights on
3636
SOFTWARE.
3737
*/
3838

39-
package com.example;
39+
package com.example.fn;
4040

4141
public class HelloFunction {
4242

0 commit comments

Comments
 (0)