Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build): Create symlink to .cache so we dont run out of space #116

Merged
merged 2 commits into from
Jan 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,12 @@ patch -f ./layers/meta-jupyter/conf/layer.conf ./meta-jupyter-backport.patch
export BITBAKEDIR=${THISDIR}/tools/bitbake
. layers/openembedded-core/oe-init-build-env ${THISDIR}/build

# electron is ignoring the cache download set by the electron_config_cache env var
# so for now lets manually create a symlink and set its download location to /volumes/cache
mkdir -p /volumes/cache/electron
mkdir -p /volumes/cache/yarn
mkdir -p /volumes/cache/pip
# Download locations are being ignored and we are running out of space, so
# for now just create a symlink from /volumes/cache to ~/.cache which is
# externally mounted to S3.
mkdir -p /volumes/cache/
mkdir -p ~/.cache/
ln -sf /volumes/cache/electron ~/.cache/electron
ln -sf /volumes/cache/yarn ~/.cache/yarn
ln -sf /volumes/cache/pip ~/.cache/pip
ln -sf /volumes/cache ~/.cache

BB_NUMBER_THREADS=$(nproc) bitbake ${TARGET} "$@"
exit $?
Loading