1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-08 03:27:04 +09:00
Satori/.devcontainer/scripts/postCreateCommand.sh
Ilona Tomkowicz ca48a0d0f7
[wasm] Codespaces need more disc to succeed building on container creation (#99803)
* Debug

* Building steps logging.

* Chop up restore and clean cache in between

* Restore does not take as much space as codespaces setup files in "/workspaces/.codespaces".

* Try removing the biggest offender.

* Cannot see the impact of cleanup on the size check logs.

* Move setup code into post-create

* Pass arg to the script, otherwise nothing is triggered

* Move all commands up to restore to onCreate. Restore should be done after codespaces setup when occupied disc space drops.

* Fix: wasm does not have artifacts dir on writing to this file.

* This would work but is not 100% reliable - user can interact with the VM before the command finishes.

* Build subset by subset.

* Easy fix - requre bigger disc.
2024-03-16 11:59:18 +01:00

14 lines
No EOL
425 B
Bash
Executable file

#!/usr/bin/env bash
set -e
opt=$1
case "$opt" in
android)
# Create the Android emulator.
${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools/bin/avdmanager -s create avd --name ${EMULATOR_NAME_X64} --package "system-images;android-${SDK_API_LEVEL};default;x86_64"
;;
esac
# reset the repo to the commit hash that was used to build the prebuilt Codespace
git reset --hard $(cat ./artifacts/prebuild.sha)