ATS-812: PoC FFmpeg skeleton - experiments

- quick PoC hack to update Dockerfile to FFmpeg 4.2.4 on CentOS 8 (from 3.4.8-1 on CentOS 7) base docker image

- TODO raise story/task to do this properly (as part of epic) !
This commit is contained in:
Jan Vonka
2021-03-29 17:28:04 +01:00
parent 8dacb86cb8
commit d0d1fd8cdb

View File

@@ -3,13 +3,12 @@
# TODO PoC for FFmpeg
# The FFmpeg transformer uses FFmpeg. See license: https://github.com/FFmpeg/FFmpeg/blob/master/LICENSE.md
FROM alfresco/alfresco-base-java:11.0.7-openjdk-centos-7-9448dd21de19
#FROM alfresco/alfresco-base-java:11.0.10-openjdk-centos-8@sha256:343c8f63cf80c7af51785b93d6972b0c00087a1c0b995098cb8285c4d9db74b5
FROM alfresco/alfresco-base-java:11.0.10-openjdk-centos-8@sha256:343c8f63cf80c7af51785b93d6972b0c00087a1c0b995098cb8285c4d9db74b5
ARG FFMPEG_VERSION=3.4.8-1
ARG FFMPEG_VERSION=4.2.4
# TODO PoC for FFmpeg - update & download from Nexus
ENV FFMPEG_RPM_URL=https://download1.rpmfusion.org/free/el/updates/7/x86_64/f/ffmpeg-${FFMPEG_VERSION}.el7.x86_64.rpm
ENV FFMPEG_RPM_URL=https://download1.rpmfusion.org/free/el/updates/8/x86_64/f/ffmpeg-${FFMPEG_VERSION}.el7.x86_64.rpm
#ENV FFMPEG_LICENSE_FILE=https://github.com/Alfresco/acs-community-packaging/blob/master/distribution/src/main/resources/licenses/3rd-party/TODO-license.txt
ENV JAVA_OPTS=""
@@ -29,7 +28,9 @@ RUN ln /usr/bin/${env.project_artifactId}-${env.project_version}.jar /usr/bin/${
# curl -s -S $FFMPEG_LICENSE_FILE -o FFmpeg-license.txt && \
yum install -y epel-release && \
# yum localinstall -y ffmpeg-distribution-*linux.rpm && \
yum localinstall -y --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm && \
yum localinstall -y --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm && \
yum install -y dnf-plugins-core && \
yum config-manager --set-enabled powertools && \
yum install -y ffmpeg && \
# rm -f ffmpeg-distribution-*.rpm && \
yum clean all