Skip to content

Commit

Permalink
feat: add usbip-server
Browse files Browse the repository at this point in the history
  • Loading branch information
prehor committed Jun 16, 2024
1 parent bfeea8a commit 6b7ef78
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
27 changes: 27 additions & 0 deletions apps/usbip-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"
11 changes: 11 additions & 0 deletions apps/usbip-server/ci/goss.yaml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions apps/usbip-server/ci/latest.sh
Original file line number Diff line number Diff line change
@@ -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 '(?<=<td class="version">)[^<]*' 2>/dev/null)
version="${version%%_*}"
version="${version%%-*}"
printf "%s" "${version}"
10 changes: 10 additions & 0 deletions apps/usbip-server/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
app: usbip-server
semver: true
channels:
- name: stable
platforms: ["linux/amd64"]
stable: true
tests:
enabled: true
type: web

0 comments on commit 6b7ef78

Please sign in to comment.