Fix devcontainer and testing Dockerfile (#962)

* Fix permissions for `scripts/setup`

* Add new script

* Use script

* Update Dockerfile

* Rename and clone

* Perms

* Fix

* fi
This commit is contained in:
Bas Nijholt 2024-04-06 11:25:47 +02:00 committed by GitHub
commit 2f31b42cb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 33 additions and 26 deletions

11
scripts/setup-devcontainer Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/.."
# Clone only if the folder doesn't exist
if [[ ! -d "core" ]]; then
git clone --depth 1 --branch dev https://github.com/home-assistant/core.git
fi
./scripts/install_ha
pre-commit install-hooks