-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add "hey neon" ww, Docker container, extras, CLI option
- Loading branch information
Showing
10 changed files
with
116 additions
and
7 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,61 @@ | ||
name: Publish Docker Containers | ||
on: | ||
registry: | ||
type: string | ||
default: ghcr.io | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }}-websat | ||
|
||
jobs: | ||
build_and_publish_docker: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.version.version }} | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Get Version | ||
id: version | ||
run: | | ||
VERSION=$(sed "s/a/-a./" <<< $(python setup.py --version)) | ||
echo ::set-output name=version::${VERSION} | ||
env: | ||
image_name: ${{ env.IMAGE_NAME }} | ||
|
||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Extract metadata for base Docker | ||
id: base_meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
type=semver,pattern={{version}},value=${{ steps.version.outputs.version }} | ||
type=ref,event=branch | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./Dockerfile.websat | ||
push: true | ||
tags: ${{ steps.base_meta.outputs.tags }} | ||
labels: ${{ steps.base_meta.outputs.labels }} | ||
platforms: linux/amd64,linux/arm64,linux/arm/v7 |
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,24 @@ | ||
FROM python:3.8-slim | ||
|
||
LABEL vendor=neon.ai \ | ||
ai.neon.name="neon-iris-websat" | ||
|
||
ENV OVOS_CONFIG_BASE_FOLDER neon | ||
ENV OVOS_CONFIG_FILENAME neon.yaml | ||
ENV XDG_CONFIG_HOME /config | ||
|
||
|
||
RUN apt update && \ | ||
apt install -y ffmpeg \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ADD . /neon_iris | ||
WORKDIR /neon_iris | ||
|
||
RUN pip install wheel && \ | ||
pip install .[web_sat] | ||
|
||
COPY docker_overlay/ / | ||
EXPOSE 8000 | ||
|
||
CMD ["iris", "start-websat"] |
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 |
---|---|---|
|
@@ -28,6 +28,10 @@ | |
<!-- Silero VAD --> | ||
<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected]/dist/bundle.min.js"></script> | ||
<!-- Config --> | ||
<script> | ||
const WS_URL = "{{ ws_url }}"; | ||
</script> | ||
<!-- AI Code --> | ||
<script src="/static/scripts/websocket.js"></script> | ||
<script src="/static/scripts/audio.js"></script> | ||
|
Binary file not shown.
Binary file not shown.
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