From b82316752d17ee2dc892dc1fa60e5556b24148ce Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 26 Apr 2025 12:24:59 +0200 Subject: [PATCH 1/3] Deploy containers to Docker Hub --- .drone-manifest.yml | 8 ++++---- .drone.yml | 9 +++------ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.drone-manifest.yml b/.drone-manifest.yml index 70818c7..c87ef06 100644 --- a/.drone-manifest.yml +++ b/.drone-manifest.yml @@ -1,4 +1,4 @@ -image: registry.nemunai.re/hathoris:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +image: nemunaire/hathoris:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} {{#if build.tags}} tags: {{#each build.tags}} @@ -6,16 +6,16 @@ tags: {{/each}} {{/if}} manifests: - - image: registry.nemunai.re/hathoris:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 + - image: nemunaire/hathoris:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 platform: architecture: amd64 os: linux - - image: registry.nemunai.re/hathoris:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 + - image: nemunaire/hathoris:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 platform: architecture: arm64 os: linux variant: v8 - - image: registry.nemunai.re/hathoris:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm + - image: nemunaire/hathoris:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm platform: architecture: arm os: linux diff --git a/.drone.yml b/.drone.yml index a4d1cec..19abf21 100644 --- a/.drone.yml +++ b/.drone.yml @@ -74,8 +74,7 @@ steps: - name: docker image: plugins/docker:linux-arm settings: - registry: registry.nemunai.re - repo: registry.nemunai.re/hathoris + repo: nemunaire/hathoris auto_tag: true auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} dockerfile: Dockerfile-norebuild @@ -133,8 +132,7 @@ steps: - name: docker image: plugins/docker settings: - registry: registry.nemunai.re - repo: registry.nemunai.re/hathoris + repo: nemunaire/hathoris auto_tag: true auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} dockerfile: Dockerfile-norebuild @@ -190,8 +188,7 @@ steps: - name: docker image: plugins/docker settings: - registry: registry.nemunai.re - repo: registry.nemunai.re/hathoris + repo: nemunaire/hathoris auto_tag: true auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} dockerfile: Dockerfile-norebuild From 2aff54281ea83e5fbb6c67be36443bb5b3db52aa Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 26 Apr 2025 12:33:32 +0200 Subject: [PATCH 2/3] Deploy binaries on Github --- .drone.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.drone.yml b/.drone.yml index 19abf21..28e26e2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -71,6 +71,18 @@ steps: event: - tag +- name: github release + image: plugins/github-release:linux-arm + settings: + api_key: + from_secret: github_api_token + files: + - deploy/hathoris-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}hf + - deploy/hathoris-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}v7 + when: + event: + - tag + - name: docker image: plugins/docker:linux-arm settings: @@ -129,6 +141,17 @@ steps: files: - deploy/hathoris-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} +- name: github release + image: plugins/github-release + settings: + api_key: + from_secret: github_api_token + files: + - deploy/hathoris-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + when: + event: + - tag + - name: docker image: plugins/docker settings: @@ -185,6 +208,17 @@ steps: files: - deploy/hathoris-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} +- name: github release + image: plugins/github-release + settings: + api_key: + from_secret: github_api_token + files: + - deploy/hathoris-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + when: + event: + - tag + - name: docker image: plugins/docker settings: From 10fb167d653990d60d6e551a54b3f92aea08e3e5 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 26 Apr 2025 11:19:36 +0200 Subject: [PATCH 3/3] Add a quick start guide --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e3ba621..f5387fc 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,27 @@ Hathoris is compatible with any Linux distribution that has PulseAudio. It also ### Quick Installation Guide -TODO: Add a quick installation guide. +1. Install dependancies. + On Debian/Ubuntu/Raspbian/armbian/...: `sudo apt install alsa-utils pulseaudio-utils mpv yt-dlp` + On Alpine: `sudo apk add alsa-utils pulseaudio-utils mpv yt-dlp` + On ArchLinux/Manjaro: `sudo pacman -S alsa-utils pulseaudio mpv yt-dlp` + +2. Download the latest release binary for your architecture; choose between ARMv6 (Raspberry Pi Zero), ARMv7 (Voltastreams, Raspberry Pi 2+), ARM64 (Raspberry Pi Zero 2 and 3+ **with 64 bits OS**): https://git.nemunai.re/nemunaire/hathoris/releases/latest + +3. Give execution permissions: `chmod +x hathoris-linux-armv7` + +4. (optional) [Prepare a configuration for optional virtual inputs](#audio-sources) (like radios, streaming sources) + + The file is called `settings.json`, it is expected to be in the directory where you execute `hathoris`. It can be overwrited by adding a command line argument like `-settings-file /etc/hathoris/settings.json`. + +5. Launch the binary: `./hathoris -bind :8081` + +6. The interface will be available on the port 8081 from anywhere on your local network. + + From your local machine, it'll be on + +Enjoy! ### Build the Project