Skip to content

Commit 2063c06

Browse files
committed
trying to run fn user with correct cli flags
1 parent 4a5b363 commit 2063c06

4 files changed

Lines changed: 1 addition & 5 deletions

File tree

images/init-native/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ WORKDIR /function
3030
COPY --from=build-native-image /function/func func
3131
COPY --from=build-native-image /function/runtime/lib/* .
3232
ENTRYPOINT ["./func", "-XX:MaximumHeapSizePercent=80"]
33-
RUN addgroup --system --gid 1000 fn && adduser --uid 1000 --group fn fn
3433
CMD [ "com.example.fn.HelloFunction::handleRequest" ]

images/init-native/Dockerfile-init-image

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ fi\n\
2222
tar 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
2625
CMD ["./build_init_image.sh"]

images/runtime/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ COPY src/main/c/libfnunixsocket.so /function/runtime/lib/
44

55
RUN ["/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.

images/runtime/Dockerfile-jre11

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ COPY src/main/c/libfnunixsocket.so /function/runtime/lib/
44

55
RUN ["/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.

0 commit comments

Comments
 (0)