Open
Conversation
slamotte
commented
Sep 22, 2025
| DOCKER_ARGS=( | ||
| --rm | ||
| --privileged | ||
| --platform linux/amd64 # Suppress warnings if building on Apple Silicon |
Author
There was a problem hiding this comment.
Avoid the annoying message (I'm still building stuff on my Mac)
| # using a dated dir on the host to refresh daily if building multiple times | ||
| BUILD_DATE=$(date +%Y-%m-%d) | ||
| OFFLINE_REPO_BUILD_CACHE_DIR="$HOME/.cache/omarchy/iso_${BUILD_DATE}/airootfs/var/cache/omarchy" | ||
| OMARCHY_CACHE_DIR="${OMARCHY_CACHE_DIR:-$HOME/.cache/omarchy}" |
Author
There was a problem hiding this comment.
Use a sensible default location that can be overridden with an env var.
slamotte
commented
Dec 21, 2025
| --rm | ||
| --privileged | ||
| --platform linux/amd64 # Suppress warnings if building on Apple Silicon | ||
| --ulimit nofile=8192:8192 # Prevent "Too many open files in system" errors during build |
Author
There was a problem hiding this comment.
I started getting an error "Too many open files in system" during builds, so this fixes that.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rather than cache some things in
/var/cacheand others in~/.cache, consolidate everything into one master cache directory. Plus make this location configurable with an env var if you want to override the default.Also, delete previous days' cache folders since they won't be used anymore (they're each > 5GB)