mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-08-14 17:58:27 +00:00
- went from green to red (when building docker image - apparently change in FFmpeg install) - took the opportunity to switch to supported Java Base Image (ie. CentOS 7 LTS instead of CentOS 8) - hence, for now (for PoC) floating FFmpeg v3.x (rather than v4.x)
51 lines
2.1 KiB
Docker
51 lines
2.1 KiB
Docker
# Image provides a container in which to run FFmpeg transformations
|
|
|
|
# TODO PoC for FFmpeg
|
|
# The FFmpeg transformer uses FFmpeg. See license: https://github.com/FFmpeg/FFmpeg/blob/master/LICENSE.md
|
|
|
|
# TODO PoC for FFmpeg - note: CentOS 7 may mean using FFmpeg 3.x instead of 4.x
|
|
FROM alfresco/alfresco-base-java:11.0.13-openjdk-centos-7@sha256:c1e399d1bbb5d08e0905f1a9ef915ee7c5ea0c0ede11cc9bd7ca98532a9b27fa
|
|
|
|
# TODO PoC for FFmpeg - update & download from Nexus
|
|
#ARG FFMPEG_VERSION=3.4.9
|
|
#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=""
|
|
|
|
# Set default user information
|
|
ARG GROUPNAME=Alfresco
|
|
ARG GROUPID=1000
|
|
|
|
# TODO PoC for FFmpeg - update w3 page with a specific allocated id in sequence (may not be 33099)
|
|
ARG FFMPEGUSERNAME=ffmpeg
|
|
ARG USERID=33099
|
|
|
|
COPY target/${env.project_artifactId}-${env.project_version}.jar /usr/bin
|
|
|
|
RUN ln /usr/bin/${env.project_artifactId}-${env.project_version}.jar /usr/bin/${env.project_artifactId}.jar && \
|
|
# TODO PoC for FFmpeg - see above
|
|
# curl -s -S $FFMPEG_RPM_URL -o ffmpeg-distribution-linux.rpm && \
|
|
# 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 install -y ffmpeg && \
|
|
# rm -f ffmpeg-distribution-*.rpm && \
|
|
yum clean all
|
|
|
|
ADD target/generated-resources/licenses /licenses
|
|
ADD target/generated-resources/licenses.xml /licenses/
|
|
ADD target/generated-sources/license/THIRD-PARTY.txt /licenses/
|
|
|
|
RUN groupadd -g ${GROUPID} ${GROUPNAME} && \
|
|
useradd -u ${USERID} -G ${GROUPNAME} ${FFMPEGUSERNAME} && \
|
|
chgrp -R ${GROUPNAME} /usr/bin/${env.project_artifactId}.jar
|
|
|
|
EXPOSE 8090
|
|
|
|
USER ${PDFUSERNAME}
|
|
|
|
ENTRYPOINT java $JAVA_OPTS -jar /usr/bin/${env.project_artifactId}.jar
|
|
|