[PR #206] [MERGED] Use RAM=max or RAM=half to suit all machines, dynamically. #731

Closed
opened 2026-02-27 23:01:52 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sickcodes/Docker-OSX/pull/206
Author: @sickcodes
Created: 3/17/2021
Status: Merged
Merged: 3/17/2021
Merged by: @sickcodes

Base: masterHead: dyanmic-ram-default


📝 Commits (3)

  • 413b09d Use RAM=max or RAM=half to suit all machines, dynamically.
  • 57e8d0c Typo: Use RAM=max or RAM=half to suit all machines, dynamically.
  • d4b8a0f Fix RAM math error for -e RAM=max

📊 Changes

3 files changed (+12 additions, -2 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 Dockerfile (+7 -0)
📝 README.md (+4 -2)

📄 Description

Fixes https://github.com/sickcodes/Docker-OSX/issues/197

Reverts https://github.com/sickcodes/Docker-OSX/pull/189

[[ "${RAM}" = max ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 900000"))"
[[ "${RAM}" = half ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 2000000"))"

E.g. if you have 32GB of ram:
max = 31
half = 16


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sickcodes/Docker-OSX/pull/206 **Author:** [@sickcodes](https://github.com/sickcodes) **Created:** 3/17/2021 **Status:** ✅ Merged **Merged:** 3/17/2021 **Merged by:** [@sickcodes](https://github.com/sickcodes) **Base:** `master` ← **Head:** `dyanmic-ram-default` --- ### 📝 Commits (3) - [`413b09d`](https://github.com/sickcodes/Docker-OSX/commit/413b09df93ef25c4f2a1e82fa60e9dc49dc7afbe) Use RAM=max or RAM=half to suit all machines, dynamically. - [`57e8d0c`](https://github.com/sickcodes/Docker-OSX/commit/57e8d0c06dfcbe4ab2b08ea9f2e626a46dcc11e2) Typo: Use RAM=max or RAM=half to suit all machines, dynamically. - [`d4b8a0f`](https://github.com/sickcodes/Docker-OSX/commit/d4b8a0f2be50c06ab3dffed0bba35da948df4ceb) Fix RAM math error for -e RAM=max ### 📊 Changes **3 files changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `Dockerfile` (+7 -0) 📝 `README.md` (+4 -2) </details> ### 📄 Description Fixes https://github.com/sickcodes/Docker-OSX/issues/197 Reverts https://github.com/sickcodes/Docker-OSX/pull/189 ```bash [[ "${RAM}" = max ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 900000"))" [[ "${RAM}" = half ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 2000000"))" ``` E.g. if you have 32GB of ram: max = 31 half = 16 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 23:01:52 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-OSX#731
No description provided.