We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64a05b0 commit 1e46792Copy full SHA for 1e46792
entrypoint.sh
@@ -2,6 +2,21 @@
2
3
set -eux -o pipefile
4
5
+# check for minimum requirements
6
+REQUIRED_MEM_KB=$((6 * 1024 * 1024))
7
+total_mem_kb=$(cat /proc/meminfo | awk '/MemTotal:/ {print $2}')
8
+if [ $total_mem_kb -lt $((REQUIRED_MEM_KB)) ]; then
9
+ printf "Preview installation of Gitpod requires a system with at least 6GB of memory\n"
10
+ exit 1
11
+fi
12
+
13
+REQUIRED_CORES=4
14
+total_cores=$(nproc)
15
+if [ $total_cores -lt $((REQUIRED_CORES)) ]; then
16
+ printf "Preview installation of Gitpod requires a system with at least 4 CPU Cores\n"
17
18
19
20
# Get container's IP address
21
NODE_IP=$(hostname -i)
22
DOMAIN_STRING=${NODE_IP//[.]/-}
0 commit comments