GeRRI. GGCE run container error.
I have tried to run the ggce-server container using this command:
docker run --name 'ggce-server' --memory 4g -p 8081:8080 -e "JAVA_OPTIONS=-XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -Xms1500m -XX:+UnlockExperimentalVMOptions -Djava.awt.headless=true -server -Dnetworkaddress.cache.ttl=10 --add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED" -e "DB_URL=jdbc:sqlserver://172.24.112.1:1433;DatabaseName=GGCE_GeRRI" -e "DB_USERNAME=gg_user" -e "DB_PASSWORD=gguPA55w0rd!!11" -e "BASE_URL=http://172.24.112.1:8081" -e "FRONTEND_URL=http://172.24.112.1:3000" -e "DATA_DIR=/data/gringlobal" -v ggce-server-data:/data/gringlobal dockerhub.croptrust.org/grin-global/grin-global-server:latest
but I got this error:
WARNING: User is root The user should be (re)set to 'jetty' in the Dockerfile
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000a2400000, 1048576000, 0) failed; error='Not enough space' (errno=12) jetty dry run failed:
There is insufficient memory for the Java Runtime Environment to continue. Native memory allocation (mmap) failed to map 1048576000 bytes for committing reserved memory. An error report file with more information is saved as: /var/lib/jetty/hs_err_pid12.log