diff --git a/apps/usbip-server/Dockerfile b/apps/usbip-server/Dockerfile new file mode 100644 index 0000000..5a6839c --- /dev/null +++ b/apps/usbip-server/Dockerfile @@ -0,0 +1,27 @@ +ARG VERSION +FROM docker.io/library/alpine:3.20 + +ARG TARGETPLATFORM +ARG VERSION +ARG CHANNEL + +ENV CHARSET="UTF-8" \ + LANG="en_US.UTF-8" \ + UMASK="0002" \ + TZ="Etc/UTC" + +USER root + +RUN \ + apk add --no-cache \ + bash \ + ca-certificates \ + catatonit \ + linux-tools-usbip~"${VERSION}" + +WORKDIR /config + +ENTRYPOINT ["/usr/bin/catatonit", "--"] +CMD ["/usr/sbin/usbipd"] + +LABEL org.opencontainers.image.source="https://github.com/torvalds/linux/blob/master/tools/usb/usbip/README" diff --git a/apps/usbip-server/ci/goss.yaml b/apps/usbip-server/ci/goss.yaml new file mode 100644 index 0000000..3e477b7 --- /dev/null +++ b/apps/usbip-server/ci/goss.yaml @@ -0,0 +1,11 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/goss-org/goss/master/docs/schema.yaml +process: + usbipd: + running: true +port: + tcp:3240: + listening: true +file: + /usr/sbin/usbipd: + exists: true diff --git a/apps/usbip-server/ci/latest.sh b/apps/usbip-server/ci/latest.sh new file mode 100755 index 0000000..c4cb3a4 --- /dev/null +++ b/apps/usbip-server/ci/latest.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +version=$(curl -sX GET "https://pkgs.alpinelinux.org/packages?name=linux-tools-usbip&branch=v3.20&arch" | grep -oP '(?<=)[^<]*' 2>/dev/null) +version="${version%%_*}" +version="${version%%-*}" +printf "%s" "${version}" diff --git a/apps/usbip-server/metadata.yaml b/apps/usbip-server/metadata.yaml new file mode 100644 index 0000000..ae68bb8 --- /dev/null +++ b/apps/usbip-server/metadata.yaml @@ -0,0 +1,10 @@ +--- +app: usbip-server +semver: true +channels: + - name: stable + platforms: ["linux/amd64"] + stable: true + tests: + enabled: true + type: web