update version, create dir with ignore error
This commit is contained in:
parent
7fb36c9e75
commit
2da9d1a85d
2
debian/postinst
vendored
2
debian/postinst
vendored
@ -9,7 +9,7 @@ fi
|
|||||||
if [ ! -d "/usr/share/ffplayout/db" ]; then
|
if [ ! -d "/usr/share/ffplayout/db" ]; then
|
||||||
mkdir "/usr/share/ffplayout/db"
|
mkdir "/usr/share/ffplayout/db"
|
||||||
mkdir -p "/var/lib/ffplayout/playlists"
|
mkdir -p "/var/lib/ffplayout/playlists"
|
||||||
mkdir "/var/lib/ffplayout/tv-media"
|
mkdir -p "/var/lib/ffplayout/tv-media"
|
||||||
|
|
||||||
IP=$(hostname -I | cut -d ' ' -f1)
|
IP=$(hostname -I | cut -d ' ' -f1)
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \
|
|||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
|
||||||
ARG FFPLAYOUT_VERSION=0.18.0
|
ARG FFPLAYOUT_VERSION=0.18.1
|
||||||
COPY README.md *.rpm /tmp/
|
COPY README.md *.rpm /tmp/
|
||||||
|
|
||||||
RUN dnf update -y && \
|
RUN dnf update -y && \
|
||||||
|
@ -235,7 +235,7 @@ RUN \
|
|||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
|
||||||
ARG FFPLAYOUT_VERSION=0.17.0
|
ARG FFPLAYOUT_VERSION=0.18.1
|
||||||
|
|
||||||
ENV LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib
|
ENV LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib
|
||||||
|
|
||||||
|
@ -433,7 +433,7 @@ RUN \
|
|||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
|
||||||
ARG FFPLAYOUT_VERSION=0.17.0
|
ARG FFPLAYOUT_VERSION=0.18.1
|
||||||
|
|
||||||
ENV LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib
|
ENV LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib
|
||||||
|
|
||||||
|
@ -91,21 +91,21 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
|
|||||||
rm -f /lib/systemd/system/basic.target.wants/*;\
|
rm -f /lib/systemd/system/basic.target.wants/*;\
|
||||||
rm -f /lib/systemd/system/anaconda.target.wants/*;
|
rm -f /lib/systemd/system/anaconda.target.wants/*;
|
||||||
RUN yum -y install net-tools openssh-server
|
RUN yum -y install net-tools openssh-server
|
||||||
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
|
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
|
||||||
|
|
||||||
RUN yum update -y \
|
RUN yum update -y \
|
||||||
&& yum install -y dejavu-sans-fonts sudo wget \
|
&& yum install -y dejavu-sans-fonts sudo wget \
|
||||||
&& wget -q -O /tmp/ffplayout-0.17.0-1.x86_64.rpm "https://github.com/ffplayout/ffplayout/releases/download/v0.17.0/ffplayout-0.17.0-1.x86_64.rpm" \
|
&& wget -q -O /tmp/ffplayout-0.18.1-1.x86_64.rpm "https://github.com/ffplayout/ffplayout/releases/download/v0.18.1/ffplayout-0.18.1-1.x86_64.rpm" \
|
||||||
&& yum install -y /tmp/ffplayout-0.17.0-1.x86_64.rpm \
|
&& yum install -y /tmp/ffplayout-0.18.1-1.x86_64.rpm \
|
||||||
&& yum clean all \
|
&& yum clean all \
|
||||||
&& echo 'Docker!' | passwd --stdin root \
|
&& echo 'Docker!' | passwd --stdin root \
|
||||||
&& rm /tmp/ffplayout-0.17.0-1.x86_64.rpm \
|
&& rm /tmp/ffplayout-0.18.1-1.x86_64.rpm \
|
||||||
&& mkdir -p /home/ffpu && chown -R ffpu: /home/ffpu \
|
&& mkdir -p /home/ffpu && chown -R ffpu: /home/ffpu \
|
||||||
&& systemctl enable ffplayout \
|
&& systemctl enable ffplayout \
|
||||||
&& systemctl enable ffpapi
|
&& systemctl enable ffpapi
|
||||||
|
|
||||||
EXPOSE 8787
|
EXPOSE 8787
|
||||||
RUN echo "/usr/local/lib" >> /etc/ld.so.conf.d/nvidia.conf
|
RUN echo "/usr/local/lib" >> /etc/ld.so.conf.d/nvidia.conf
|
||||||
RUN echo "/usr/local/cuda/compat/" >> /etc/ld.so.conf.d/nvidia.conf
|
RUN echo "/usr/local/cuda/compat/" >> /etc/ld.so.conf.d/nvidia.conf
|
||||||
|
|
||||||
VOLUME [ "/sys/fs/cgroup", "/tmp", "/run", "/run/lock", "/etc/ffplayout", "/usr/share/ffplayout" ,"/var/lib/ffplayout" ]
|
VOLUME [ "/sys/fs/cgroup", "/tmp", "/run", "/run/lock", "/etc/ffplayout", "/usr/share/ffplayout" ,"/var/lib/ffplayout" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user