update audiowaveform

This commit is contained in:
kev 2021-07-29 18:23:32 +08:00
parent 770bb4c671
commit 12674d60ed
2 changed files with 9 additions and 47 deletions

View File

@ -2,53 +2,15 @@
# Dockerfile for audiowaveform
#
FROM ubuntu
MAINTAINER kev <noreply@easypi.pro>
FROM ubuntu:20.04
MAINTAINER EasyPi Software Foundation
RUN apt-get update \
&& apt install -y cmake \
g++ \
gcc \
git-core \
libboost-filesystem1.54.0 \
libboost-filesystem-dev \
libboost-program-options1.54.0 \
libboost-program-options-dev \
libboost-regex1.54.0 \
libboost-regex-dev \
libgd2-xpm-dev \
libgd3 \
libmad0 \
libmad0-dev \
libsndfile1 \
libsndfile1-dev \
make \
unzip \
wget \
&& git clone https://github.com/bbcrd/audiowaveform.git \
&& cd audiowaveform \
&& wget https://googlemock.googlecode.com/files/gmock-1.7.0.zip \
&& unzip gmock-1.7.0.zip \
&& ln -s gmock-1.7.0 gmock \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make install \
&& cd .. \
&& rm -rf audiowaveform \
&& apt-get purge --auto-remove -y cmake \
g++ \
gcc \
git-core \
libboost-filesystem-dev \
libboost-program-options-dev \
libboost-regex-dev \
libgd2-xpm-dev \
libmad0-dev \
libsndfile1-dev \
make \
unzip \
wget \
RUN set -xe \
&& apt update \
&& apt install -y software-properties-common \
&& add-apt-repository ppa:chris-needham/ppa \
&& apt update \
&& apt install -y audiowaveform \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["audiowaveform"]

View File

@ -11,7 +11,7 @@ applications.
### Run
$ docker pull vimagick/audiowaveform
$ alias awf='docker run --rm -v `pwd`:/work -w /work vimagick/audiowaveform'
$ alias awf='docker run --rm -v `pwd`:/data -w /data vimagick/audiowaveform'
$ awf -i input.mp3 -o output.png
## Command line options