Skip to content

Commit

Permalink
install libusb and mount usb into pod
Browse files Browse the repository at this point in the history
  • Loading branch information
tobru committed Jun 1, 2024
1 parent 5c365b7 commit cabd180
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.podstatus
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN --mount=type=cache,target=$POETRY_CACHE_DIR poetry install --no-root
FROM python:3.12-bookworm as runtime

RUN apt-get update && \
apt-get install -y nginx && \
apt-get install -y nginx python3-libusb1 && \
rm -rf /var/lib/apt/lists/*

ENV VIRTUAL_ENV=/app/.venv \
Expand Down
9 changes: 8 additions & 1 deletion deployment/apps/podstatus/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
protocol: TCP
env:
- name: LOG_LEVEL
value: DEBUG
value: INFO
- name: K8S_NAMESPACE
value: http-echo
envFrom:
Expand All @@ -40,3 +40,10 @@ spec:
path: /
port: http
resources: {}
volumeMounts:
- mountPath: /dev/bus/usb
name: dev-bus-usb
volumes:
- name: dev-bus-usb
hostPath:
path: /dev/bus/usb

0 comments on commit cabd180

Please sign in to comment.