Skip to content

Commit

Permalink
Bump device-portal and docs for v3 protocol (#18)
Browse files Browse the repository at this point in the history
* Bump device-portal and docs for v3 protocol

* Try to fix avahi-daemon with `pkscope-{machine-name}.local`

* Continue trying to fix avahi hostname registration

* Update `CHANGELOG.md`

* Bump planktoscope docs container

* Bump planktoscope docs container
  • Loading branch information
ethanjli authored Nov 29, 2024
1 parent 9c1c928 commit 2f81f6b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project uses [Calendar Versioning](https://calver.org/) with a `YYYY.minor.patch` scheme.
All dates in this file are given in the [UTC time zone](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).

## Unreleased

### Changed

- `core/apps/planktoscope/device-portal`: the `ghcr.io/planktoscope/device-portal` container is upgraded from v0.2.3 to v0.2.4.
- `core/apps/planktoscope/docs`: the `ghcr.io/planktoscope/project-docs` container is upgraded.

### Fixed
- `core/host/machine-name`: the `update-hostname` systemd service provided by this package now explicitly starts before the `avahi-daemon` systemd service, so that Avahi correctly registers the device as `pkscope-{machine-name}.local` instead of registering it as `raspberrypi.local` (based on the default hostname).

## v2024.0.0-beta.2 - 2024-09-19

### Added
Expand Down
2 changes: 1 addition & 1 deletion core/apps/planktoscope/device-portal/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
server:
image: ghcr.io/planktoscope/device-portal:0.2.3
image: ghcr.io/planktoscope/device-portal:0.2.4

networks:
default:
Expand Down
2 changes: 1 addition & 1 deletion core/apps/planktoscope/docs/compose-full-site.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
services:
server:
image: ghcr.io/planktoscope/project-docs:2024.0.0-beta.2
image: ghcr.io/planktoscope/project-docs:sha-087e173
2 changes: 1 addition & 1 deletion core/apps/planktoscope/docs/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
server:
image: ghcr.io/planktoscope/project-docs:2024.0.0-beta.2-minimal
image: ghcr.io/planktoscope/project-docs:sha-087e173-minimal
volumes:
- server-data:/data
- server-config:/config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Requires=systemd-hostnamed.service
After=systemd-hostnamed.service
Wants=network-pre.target
Before=network-pre.target
Before=avahi-daemon.service

[Service]
Type=oneshot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Wants=avahi-daemon.socket
[Service]
Type=simple
ExecStart=/usr/bin/bash -c "/usr/bin/avahi-publish -a -R %i.local 192.168.4.1"
# FIXME: replace this with a package to generate a /etc/avahi/hosts file from
# a /etc/avahi/hosts.d directory, just like how we generate /etc/hosts!

[Install]
WantedBy=multi-user.target

0 comments on commit 2f81f6b

Please sign in to comment.