File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,5 +30,4 @@ WORKDIR /function
3030COPY --from=build-native-image /function/func func
3131COPY --from=build-native-image /function/runtime/lib/* .
3232ENTRYPOINT ["./func" , "-XX:MaximumHeapSizePercent=80" ]
33- RUN addgroup --system --gid 1000 fn && adduser --uid 1000 --group fn fn
3433CMD [ "com.example.fn.HelloFunction::handleRequest" ]
Original file line number Diff line number Diff line change 2222tar c src pom.xml func.init.yaml Dockerfile\n' > build_init_image.sh \
2323 && chmod 755 build_init_image.sh
2424
25- RUN addgroup -g 1000 -S fn && adduser -S -u 1000 -G fn fn
2625CMD ["./build_init_image.sh"]
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ COPY src/main/c/libfnunixsocket.so /function/runtime/lib/
44
55RUN ["/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java" , "-Xshare:dump" ]
66
7- RUN addgroup -g 1000 -S fn && adduser -S -u 1000 -G fn fn
7+ RUN addgroup --system --gid 1000 fn && adduser --uid 1000 --group fn fn
88
99# UseCGroupMemoryLimitForHeap looks up /sys/fs/cgroup/memory/memory.limit_in_bytes inside the container to determine
1010# what the heap should be set to. This is an experimental feature at the moment, thus we need to unlock to use it.
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ COPY src/main/c/libfnunixsocket.so /function/runtime/lib/
44
55RUN ["/usr/bin/java", "-Xshare:dump"]
66
7- RUN addgroup -g 1000 -S fn && adduser -S -u 1000 -G fn fn
8-
97# The UseExeperimentalVMOptions, UseCGroupMemoryLimitForHeap and MaxRAMFraction options that were used in the JDK 9 builds are
108# no longer supported in JDK 11 - so these have been removed. We now rely on the built-in ContainerSupport option that Linux JDKs
119# use to configure themselves when detecting they are running in a container.
You can’t perform that action at this time.
0 commit comments