made pa_job_manager use mythtv:mythtv, but had to hardcode PJM_* vars, I tried to pass them through docker-compose.yml
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
FROM ubuntu:20.04
|
FROM ubuntu:20.04
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
USER root
|
||||||
|
ENV PJM_UID=500
|
||||||
|
ENV PJM_GID=500
|
||||||
|
RUN groupadd -g ${PJM_GID} mythtv && useradd -r -u ${PJM_UID} -g ${PJM_GID} mythtv
|
||||||
ENV TZ=Australia/Melbourne
|
ENV TZ=Australia/Melbourne
|
||||||
RUN truncate -s0 /tmp/preseed.cfg && \
|
RUN truncate -s0 /tmp/preseed.cfg && \
|
||||||
(echo "tzdata tzdata/Areas select Australia" >> /tmp/preseed.cfg) && \
|
(echo "tzdata tzdata/Areas select Australia" >> /tmp/preseed.cfg) && \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
python3 ./pa_job_manager.py &
|
su - mythtv -g mythtv -c "python3 /code/pa_job_manager.py" &
|
||||||
gunicorn --bind=0.0.0.0:443 --workers=2 --threads=2 --certfile /etc/letsencrypt/live/pa.depaoli.id.au/fullchain.pem --keyfile /etc/letsencrypt/live/pa.depaoli.id.au/privkey.pem main:app
|
gunicorn --bind=0.0.0.0:443 --workers=2 --threads=2 --certfile /etc/letsencrypt/live/pa.depaoli.id.au/fullchain.pem --keyfile /etc/letsencrypt/live/pa.depaoli.id.au/privkey.pem main:app
|
||||||
|
|||||||
Reference in New Issue
Block a user