This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
name: Ship Home Assistant Add-on | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
workflows: | ||
uses: hassio-addons/workflows/.github/workflows/base-deploy.yaml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: Ava | ||
url: https://github.com/0x77dev/ava | ||
maintainer: Mykhailo Marynenko <mykhailo+oss@0x77dev> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
ARG BUILD_FROM=oven/bun:1-debian | ||
FROM ${BUILD_FROM} | ||
|
||
FROM base as workspace | ||
ENV NODE_ENV=production | ||
WORKDIR /usr/src/app | ||
COPY . . | ||
|
||
FROM workspace as build | ||
COPY --from=node:lts-bullseye /usr/local/bin/node /usr/local/bin/node | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \ | ||
build-essential python3 llvm clang | ||
RUN bun install --frozen-lockfile | ||
|
||
FROM workspace | ||
COPY --from=build /usr/src/ava/node_modules /usr/src/ava/node_modules | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \ | ||
jq curl | ||
|
||
ARG BASHIO_VERSION="v0.16.2" | ||
|
||
RUN curl -J -L -o /tmp/bashio.tar.gz \ | ||
"https://github.com/hassio-addons/bashio/archive/${BASHIO_VERSION}.tar.gz" \ | ||
&& mkdir /tmp/bashio \ | ||
&& tar zxvf \ | ||
/tmp/bashio.tar.gz \ | ||
--strip 1 -C /tmp/bashio \ | ||
&& mv /tmp/bashio/lib /usr/lib/bashio \ | ||
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio | ||
|
||
EXPOSE 2881 | ||
|
||
LABEL \ | ||
io.hass.name="Ada Server for ${BUILD_ARCH}" \ | ||
io.hass.description="Ada Server Add-on: ${BUILD_ARCH} bun debian v1 image" \ | ||
io.hass.arch="${BUILD_ARCH}" \ | ||
io.hass.type="base" \ | ||
io.hass.version=${BUILD_VERSION} \ | ||
io.hass.base.version=${BUILD_VERSION} \ | ||
io.hass.base.name="debian" \ | ||
io.hass.base.image="ghcr.io/0x77dev/ava/server" \ | ||
maintainer="Mykhailo Marynenko <mykhailo@0x77.dev>" \ | ||
org.opencontainers.image.title="Ada Server for ${BUILD_ARCH" \ | ||
org.opencontainers.image.description="Ada Server Add-on: ${BUILD_ARCH} bun debian v1 image" \ | ||
org.opencontainers.image.vendor="Ava Add-ons" \ | ||
org.opencontainers.image.authors="Mykhailo Marynenko <mykhailo@0x77.dev>" \ | ||
org.opencontainers.image.licenses="GPL-3.0" \ | ||
org.opencontainers.image.url="https://github.com/${BUILD_REPOSITORY}" \ | ||
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \ | ||
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \ | ||
org.opencontainers.image.created=${BUILD_DATE} \ | ||
org.opencontainers.image.revision=${BUILD_REF} \ | ||
org.opencontainers.image.version=${BUILD_VERSION} | ||
|
||
CMD ["/usr/src/ava/server/hass-entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
build_from: | ||
aarch64: oven/bun:1-debian | ||
amd64: oven/bun:1-debian | ||
codenotary: | ||
signer: mykhailo@0x77.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: "Ava Server" | ||
description: "Self-hosted personal assistant in minutes with built-in Home Assistant integration and great extensibility and customizability." | ||
version: "0.0.0" | ||
slug: "ava_server" | ||
init: false | ||
arch: | ||
- aarch64 | ||
- amd64 | ||
ports: | ||
2881/tcp: 2881 | ||
image: ghcr.io/0x77dev/ava/server | ||
homeassistant_api: true | ||
ingress: true | ||
ingress_port: 2881 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bashio | ||
|
||
LLM="$(bashio::config 'llm' | jq -r .llm)" | ||
EMBEDDINGS="$(bashio::config 'embeddings' | jq -r .llm)" | ||
HOMEASSISTANT='{"url": "ws://supervisor/core/websocket", "token": "${SUPERVISOR_TOKEN}"}' |