Skip to content

Commit

Permalink
Bump device-portal and docs for v3 protocol, fix Avahi hostname handl…
Browse files Browse the repository at this point in the history
…ing (#51)
  • Loading branch information
ethanjli authored Nov 29, 2024
1 parent dc43531 commit eefb8be
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ All dates in this file are given in the [UTC time zone](https://en.wikipedia.org

- Merged the github.com/PlanktoScope/device-pkgs repo into this pallet, by moving all packages from there into here.

## Unreleased (v2024.0.0-beta.3)

### 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 packages/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@sha256:8d3dc83ede36e4b17c50393ac3ebc34f684dee2f18c81621072d2a5b869fba70
image: ghcr.io/planktoscope/device-portal:0.2.4
networks:
default:
name: none
Expand Down
2 changes: 1 addition & 1 deletion packages/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@sha256:ce7db9194d20aeb27f07595f6935e41c300061c94867f63b51fd61881cf9d5b8
image: ghcr.io/planktoscope/project-docs:sha-087e173
2 changes: 1 addition & 1 deletion packages/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@sha256:e4acfdf2fc67884a409bc031af7459c1a48e0bb2d17140a602cb590700ee171e
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 eefb8be

Please sign in to comment.