From 27ea5506bca7e6ef7ef565e847ea7e2db4a7c204 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 16 Apr 2025 11:56:02 +0200 Subject: [PATCH] feat: Default to 2 CPU cores and 2GB of RAM (#976) --- Dockerfile | 4 ++-- readme.md | 2 +- src/reset.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index a3ba94c..2ce4b1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,9 +61,9 @@ ADD --chmod=775 https://raw.githubusercontent.com/sud0woodo/patology/refs/heads/ VOLUME /storage EXPOSE 22 139 445 5000 -ENV RAM_SIZE="1G" +ENV RAM_SIZE="2G" +ENV CPU_CORES="2" ENV DISK_SIZE="16G" -ENV CPU_CORES="1" HEALTHCHECK --interval=60s --start-period=45s --retries=2 CMD /run/check.sh diff --git a/readme.md b/readme.md index 05a494e..23d6ee1 100644 --- a/readme.md +++ b/readme.md @@ -135,7 +135,7 @@ kubectl apply -f https://raw.githubusercontent.com/vdsm/virtual-dsm/refs/heads/m ### How do I change the amount of CPU or RAM? - By default, the container will be allowed to use a maximum of 1 CPU core and 1 GB of RAM. + By default, the container will be allowed to use a maximum of 2 CPU cores and 2 GB of RAM. If you want to adjust this, you can specify the desired amount using the following environment variables: diff --git a/src/reset.sh b/src/reset.sh index 2a7e5f6..cb0d6f3 100644 --- a/src/reset.sh +++ b/src/reset.sh @@ -17,8 +17,8 @@ echo "❯ For support visit $SUPPORT" : "${CONSOLE:="N"}" # Disable console mode : "${ALLOCATE:=""}" # Preallocate diskspace : "${ARGUMENTS:=""}" # Extra QEMU parameters -: "${CPU_CORES:="1"}" # Amount of CPU cores -: "${RAM_SIZE:="1G"}" # Maximum RAM amount +: "${CPU_CORES:="2"}" # Amount of CPU cores +: "${RAM_SIZE:="2G"}" # Maximum RAM amount : "${RAM_CHECK:="Y"}" # Check available RAM : "${DISK_SIZE:="16G"}" # Initial data disk size : "${STORAGE:="/storage"}" # Storage folder location