Merge pull request #33 from tteck/dev

Add Yacht to Podman Home Assistant Container LXC
This commit is contained in:
tteckster 2022-02-12 10:37:14 -05:00 committed by GitHub
commit b2cc10cbf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 10 deletions

View File

@ -78,8 +78,8 @@ ________________________________________________________________________________
<summary markdown="span"> 🔸Home Assistant Container LXC (Podman)</summary>
<p align="center"><img src="https://heise.cloudimg.io/width/223/q50.png-lossy-50.webp-lossy-50.foil1/_www-heise-de_/imgs/18/2/5/8/2/8/1/0/podman_logo-670078d7ea1d15a6.png" width="100" height="100"/>
<img src="https://avatars.githubusercontent.com/u/13844975?s=200&amp;v=4" alt="@home-assistant" width="100" height="100"/><img/></p>
<img src="https://avatars.githubusercontent.com/u/13844975?s=200&amp;v=4" alt="@home-assistant" width="100" height="100"/><img/><img src="https://raw.githubusercontent.com/SelfhostedPro/Yacht/master/readme_media/Yacht_logo_1_dark.png" height="80"/><img/></p>
<h1 align="center" id="heading"> Podman Home Assistant Container LXC </h1>
<h3 align="center" id="heading"> With ZFS Filesystem Support </h3>
To create a new Proxmox Podman Home Assistant Container, run the following from Proxmox web shell.
@ -94,6 +94,8 @@ bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/p
After the script completes, If you're dissatisfied with the default settings, click on the LXC, then on the **_Resources_** tab and change the **_Memory_** and **_Cores_** settings to what you desire. Changes are immediate.
**Home Assistant Interface - IP:8123**
**Yacht Interface - IP:8000**
⚙️ **Path to HA /config**
```yaml
@ -130,6 +132,20 @@ Run from the LXC console
```yaml
./update.sh
```
⚙️ **Initial Yacht Login**
**username**
```yaml
admin@yacht.local
```
**password**
```yaml
pass
```
⚙️ **Add Yacht Template**
```yaml
https://raw.githubusercontent.com/SelfhostedPro/selfhosted_templates/yacht/Template/template.json
```
____________________________________________________________________________________________
</details>

View File

@ -168,11 +168,9 @@ pct push $CTID podman_ha_setup.sh /podman_ha_setup.sh -perms 755
pct exec $CTID /podman_ha_setup.sh
IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
info "Successfully created Podman Home Assistant Container LXC to $CTID."
msg "
Home Assistant should be reachable by going to the following URL.
http://${IP}:8123
"
info "Successfully Created Podman Home Assistant Container LXC to $CTID."
echo -e "\e[1;92m Home Assistant Container should be reachable by going to the following URL.
http://${IP}:8123
Yacht should be reachable by going to the following URL.
http://${IP}:8000
\e[0m"

View File

@ -56,6 +56,20 @@ apt-get -qqy install \
echo -e "${CHECKMARK} \e[1;92m Installing Podman... \e[0m"
apt-get -y install podman &>/dev/null
echo -e "${CHECKMARK} \e[1;92m Pulling Yacht Image...\e[0m"
podman pull ghcr.io/selfhostedpro/yacht:latest &>/dev/null
echo -e "${CHECKMARK} \e[1;92m Installing Yacht... \e[0m"
podman volume create yacht >/dev/null
podman run -d \
--name yacht \
-v /var/run/podman/podman.sock:/var/run/docker.sock \
-v yacht:/config \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-p 8000:8000 \
selfhostedpro/yacht:latest &>/dev/null
echo -e "${CHECKMARK} \e[1;92m Pulling Home Assistant Image...\e[0m"
podman pull docker.io/homeassistant/home-assistant:stable &>/dev/null