setup namespace remote builder (#398)

* setup namespace remote builder

* lil more

* use nsc build for now

* load
This commit is contained in:
Adeeb Shihadeh
2024-10-31 14:40:05 -07:00
committed by GitHub
parent deab0e9c9d
commit 753de49f95
2 changed files with 26 additions and 8 deletions

16
scripts/ns_docker.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/bash
set -e
# for fast arm64 builds: https://namespace.so/docs/features/faster-builds
if ! command -v nsc &> /dev/null; then
echo "nsc missing, install with"
echo ""
echo "curl -fsSL https://get.namespace.so/cloud/install.sh | sh"
exit 1
fi
nsc version update
nsc docker buildx cleanup
nsc docker buildx setup --use