mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-26 14:36:30 +00:00
Update enter.sh
This commit is contained in:
parent
fff08c6101
commit
9dca4fc837
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
BUILDER_UID="$(id -u)"
|
||||||
|
BUILDER_GID="$(id -g)"
|
||||||
|
CACHE_DIR="${CACHE_DIR:-$HOME/hassos-cache}"
|
||||||
|
|
||||||
|
sudo mkdir -p "${CACHE_DIR}"
|
||||||
|
sudo chown -R "${BUILDER_UID}:${BUILDER_GID}" "${CACHE_DIR}"
|
||||||
|
sudo docker build -t hassos:local .
|
||||||
|
sudo docker run -it --rm --privileged \
|
||||||
|
-v "$(pwd):/build" -v "${CACHE_DIR}:/cache" \
|
||||||
|
-e BUILDER_UID="${BUILDER_UID}" -e BUILDER_GID="${BUILDER_GID}" \
|
||||||
|
hassos:local bash
|
Loading…
x
Reference in New Issue
Block a user