Compare commits

...

4 Commits

Author SHA1 Message Date
Maxi Quoß 5435d914b3 remove broadcast again
https://github.com/seriousm4x/UpSnap/pull/1760#issuecomment-5720918551
2026-09-18 12:07:15 +02:00
Maxi Quoß fc4e34da61 update docker dev container 2026-09-18 12:01:20 +02:00
Maxi Quoß 730873a347 goreleaser: build for riscv64 2026-09-18 11:52:38 +02:00
invario 9f05b1c134 Docker - add line in compose for dbus if using fqdn with .local domain (#1772)
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
2026-09-18 11:48:51 +02:00
6 changed files with 17 additions and 5 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ RUN addgroup -g 1000 upsnap &&\
WORKDIR /app
COPY --from=downloader /app/upsnap upsnap
LABEL org.opencontainers.image.source="https://github.com/seriousm4x/UpSnap" \
org.opencontainers.image.url="https://github.com/seriousm4x/UpSnap" \
org.opencontainers.image.licenses="MIT"
org.opencontainers.image.url="https://github.com/seriousm4x/UpSnap" \
org.opencontainers.image.licenses="MIT"
HEALTHCHECK --interval=10s \
CMD curl -fs "http://${UPSNAP_HTTP_LISTEN}/api/health" || exit 1
CMD ["serve","--http","${UPSNAP_HTTP_LISTEN}"]
+1 -1
View File
@@ -1,4 +1,4 @@
FROM node:alpine AS node
FROM node:bookworm AS node
WORKDIR /app
COPY frontend/ .
RUN npm i -g pnpm &&\
+1
View File
@@ -20,6 +20,7 @@ builds:
- amd64
- arm64
- arm
- riscv64
goarm:
- "6"
- "7"
-2
View File
@@ -88,8 +88,6 @@ func wakeUDP(broadcastIp string, deviceIp string, target net.HardwareAddr, passw
destinations = append(destinations,
fmt.Sprintf("%s:9", deviceIp),
fmt.Sprintf("%s:7", deviceIp),
"255.255.255.255:9",
"255.255.255.255:7",
)
}
+8
View File
@@ -1,5 +1,9 @@
services:
upsnap:
cap_add:
- NET_RAW # Required for privileged ping, network device scan, and IP address tracking (nmap)
cap_drop:
- ALL
container_name: upsnap
build:
dockerfile: Dockerfile.dev
@@ -7,6 +11,10 @@ services:
restart: unless-stopped
volumes:
- ./data:/app/pb_data
# # If you want to use FQDN instead of an IP and it is a ".local" domain, avahi and dbus must be installed on
# # the host, and the host dbus must be mounted in the container.
# # Before uncommmenting, ensure you are familiar with potential security implications of mounting dbus
# - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro
# # To use a non-root user, create the mountpoint first before starting
# # the container (mkdir data) so that it has the right permissions.
# user: 1000:1000
+5
View File
@@ -10,6 +10,11 @@ services:
restart: unless-stopped
volumes:
- ./data:/app/pb_data
# # If you want to use FQDN instead of an IP and it is a ".local" domain, avahi and dbus must be installed on
# # the host, and the host dbus must be mounted in the container.
# # Before uncommmenting, ensure you are familiar with potential security implications of mounting dbus
# - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro
# # To use a non-root user, create the mountpoint first (mkdir data) so that it has the right permission.
# user: 1000:1000
# environment: