mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-24 17:24:43 +01:00
install more recent ffmpeg (#259)
This commit is contained in:
parent
7237040777
commit
360a647eb5
@ -50,11 +50,17 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
|||||||
COPY --chown=www-data:www-data --from=compile-image /home/mediacms.io /home/mediacms.io
|
COPY --chown=www-data:www-data --from=compile-image /home/mediacms.io /home/mediacms.io
|
||||||
|
|
||||||
RUN apt-get update -y && apt-get -y upgrade && apt-get install --no-install-recommends \
|
RUN apt-get update -y && apt-get -y upgrade && apt-get install --no-install-recommends \
|
||||||
supervisor nginx ffmpeg imagemagick procps -y && \
|
supervisor nginx imagemagick procps wget xz-utils -y && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
apt-get purge --auto-remove && \
|
apt-get purge --auto-remove && \
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
|
||||||
|
RUN wget -q https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz && \
|
||||||
|
mkdir -p tmp && \
|
||||||
|
tar -xf ffmpeg-release-amd64-static.tar.xz --strip-components 1 -C tmp && \
|
||||||
|
cp -v tmp/ffmpeg tmp/ffprobe tmp/qt-faststart /usr/local/bin && \
|
||||||
|
rm -rf tmp ffmpeg-release-amd64-static.tar.xz
|
||||||
|
|
||||||
WORKDIR /home/mediacms.io/mediacms
|
WORKDIR /home/mediacms.io/mediacms
|
||||||
|
|
||||||
EXPOSE 9000 80
|
EXPOSE 9000 80
|
||||||
|
23
install.sh
23
install.sh
@ -21,21 +21,24 @@ It is expected to run on a new system **with no running instances of any these s
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if [[ `lsb_release -d` == *"Ubuntu 20"* ]]; then
|
osVersion=$(lsb_release -d)
|
||||||
|
if [[ $osVersion == *"Ubuntu 20"* ]] || [[ $osVersion == *"Ubuntu 18"* ]] || [[ $osVersion == *"buster"* ]]; then
|
||||||
echo 'Performing system update and dependency installation, this will take a few minutes'
|
echo 'Performing system update and dependency installation, this will take a few minutes'
|
||||||
apt-get update && apt-get -y upgrade && apt install python3-venv python3-dev virtualenv redis-server postgresql nginx git gcc vim unzip ffmpeg imagemagick python3-certbot-nginx certbot wget -y
|
apt-get update && apt-get -y upgrade && apt-get install python3-venv python3-dev virtualenv redis-server postgresql nginx git gcc vim unzip imagemagick python3-certbot-nginx certbot wget xz-utils -y
|
||||||
elif [[ `lsb_release -d` = *"Ubuntu 18"* ]]; then
|
|
||||||
echo 'Performing system update and dependency installation, this will take a few minutes'
|
|
||||||
apt-get update && apt-get -y upgrade && apt install python3-venv python3-dev virtualenv redis-server postgresql nginx git gcc vim unzip ffmpeg imagemagick python3-certbot-nginx certbot wget -y
|
|
||||||
# added check for Debian 10 (buster)
|
|
||||||
elif [[ `lsb_release -d` == *"buster"* ]]; then
|
|
||||||
echo 'Performing system update and dependency installation, this will take a few minutes'
|
|
||||||
apt-get update && apt-get -y upgrade && apt install python3-venv python3-dev virtualenv redis-server postgresql nginx git gcc vim unzip ffmpeg imagemagick python3-certbot-nginx certbot wget -y
|
|
||||||
else
|
else
|
||||||
echo "This script is tested for Ubuntu 18 and 20 versions only, if you want to try MediaCMS on another system you have to perform the manual installation"
|
echo "This script is tested for Ubuntu 18 and 20 versions only, if you want to try MediaCMS on another system you have to perform the manual installation"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# install ffmpeg
|
||||||
|
echo "Downloading and installing ffmpeg"
|
||||||
|
wget -q https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
|
||||||
|
mkdir -p tmp
|
||||||
|
tar -xf ffmpeg-release-amd64-static.tar.xz --strip-components 1 -C tmp
|
||||||
|
cp -v tmp/{ffmpeg,ffprobe,qt-faststart} /usr/local/bin
|
||||||
|
rm -rf tmp ffmpeg-release-amd64-static.tar.xz
|
||||||
|
echo "ffmpeg installed to /usr/local/bin"
|
||||||
|
|
||||||
read -p "Enter portal URL, or press enter for localhost : " FRONTEND_HOST
|
read -p "Enter portal URL, or press enter for localhost : " FRONTEND_HOST
|
||||||
read -p "Enter portal name, or press enter for 'MediaCMS : " PORTAL_NAME
|
read -p "Enter portal name, or press enter for 'MediaCMS : " PORTAL_NAME
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user