nerves-hub/nerves_hub_web
소개
펌웨어 업데이트, 상태 보고서, 대화형 기기 콘솔을 포함해 Nerves 기기 플릿을 관리합니다.
시스템 및 인프라What you can do
- Delivery of signed firmware to authenticated Nerves devices
- Robust and reliable, confirmed to work at a scale of hundreds of thousands of devices
- Hardware device certificate authentication
- Shared secret authentication for easy onboarding and simpler setups
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalNervesHub
NervesHub is an open-source resilient firmware update and device management platform that scales with your fleet.
Pre-built Docker images are available via the GitHub Container Registry.
Issue reports, Pull Requests and feature requests are very welcome.
Features
- Delivery of signed firmware to authenticated Nerves devices
- Robust and reliable, confirmed to work at a scale of hundreds of thousands of devices
- Hardware device certificate authentication
- Shared secret authentication for easy onboarding and simpler setups
- Self-hostable with minimal infrastructure, Dockerfile provided
- Remote IEx terminal for debugging and device recovery
- A comprehensive API documented using OpenAPI
- and more...
Sponsors
NervesHub development is sponsored by:
Project overview and setup
Development environment setup
The .tool-versions files contains the Erlang, Elixir and NodeJS versions.
While mise is recommended, you can also use asdf-vm if you prefer.
Modify the .tool-versions if you want to use a later version of Erlang, Elixir, or NodeJS.
You'll also need fwup and xdelta3, which build firmware deltas for
fwup-based firmware. See the fwup installation
instructions and the xdelta3
instructions.
ESP-IDF firmware deltas are built with detools
rather than xdelta3, because that is the format devices decode. On mise you
already have it: mise.toml pins the version and mise install fetches it,
which needs uv or pipx for mise to install Python packages with
(mise use -g uv@latest). Otherwise install it yourself with pip install detools.
If you are using a Debian/Ubuntu system, it's recommended to install the inotify-tools package:
sudo apt install inotify-tools
First time application setup
Setup database connection
Postgres 18 is recommended for development and running in production environments. You can use a local postgres or use the included Docker compose:
docker compose up -dRun
mix setupto fetch dependencies, initialize the database, and compile web assets.
Starting the application
mix phx.server- start the server processiex -S mix phx.server- start the server with the interactive shell
Once the server is running, by default in development you can access it at http://localhost:4000
In development you can login into a pre-generated account with the email
[email protected] and password nerveshubweb.
Running Tests
- Make sure you've completed your database connection setup
- Fetch and compile
testdependencies:MIX_ENV=test mix test.setup - Run tests:
mix test
Using v1.x
The 1.x version is now Legacy NervesHub (maint-v1.0
branch) and is under very limited maintenance. Migration to v2.x is strongly encouraged.
Migration from 1.x to 2.x
Migration should be quite straight-forward, there should not be any breaking changes. It is still the same application and NervesHubLink should stay largely compatible.
You may find you no longer need a lot of the AWS services that was relied on by the 1.x version. We recommend decommissioning those if they aren't used for other things.
Version 2.x requires an application server to run on, an S3-compatible object storage and a Postgres database. It also requires some control over how ingress is done for custom SSL handling. This should all be less than the requirements of Legacy NervesHub.
관련 프로젝트 살펴보기
불러오는 중…
