Skip to content

Commit

Permalink
podstatus needs to run as root because usb
Browse files Browse the repository at this point in the history
  • Loading branch information
tobru committed Sep 11, 2024
1 parent af9faea commit d2b7355
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
9 changes: 0 additions & 9 deletions Dockerfile.podstatus
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
COPY podstatus ./podstatus
COPY nginx.conf /etc/nginx/nginx.conf

RUN set -x && \
useradd -ms /bin/bash podstatus && \
mkdir -p /opt/data && \
ls -Alh /opt/data && \
chown -R podstatus:root /app /opt/data /var/log/nginx /var/lib/nginx && \
chmod -R g=u /app /opt/data /var/log/nginx /var/lib/nginx

USER podstatus:root

EXPOSE 8080

CMD ["sh", "-c", "nginx && gunicorn -k gevent podstatus.app:app"]
2 changes: 1 addition & 1 deletion deployment/apps/podstatus/deployment-blinkstick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
imagePullPolicy: Always
command:
- python
- conferenceli/blinkstick-controller.py
- podstatus/blinkstick-controller.py
env:
- name: LOG_LEVEL
value: INFO
Expand Down
1 change: 0 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /app/nginx.pid;

error_log /dev/stdout info;
Expand Down

0 comments on commit d2b7355

Please sign in to comment.