Skip to content

Commit

Permalink
add Debian and Fedora docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
baxtree committed Jan 11, 2021
1 parent 9e995cc commit 56a6e6e
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[run]
include = */subaligner/*
omit = *__main__.py*, *__init__.py*, *_version.py*, */tests/*
omit = *__main__.py*, *__init__.py*, *_version.py*, */tests/*, */subaligner/lib/*
concurrency = multiprocessing
3 changes: 1 addition & 2 deletions docker/Dockerfile-ArchLinux
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ RUN pacman --noconfirm -Syu &&\
ln -s /usr/lib/libffi.so.7 /usr/lib/libffi.so.6 &&\
python /var/cache/get-pip.py &&\
python -m pip install numpy &&\
python -m pip install subaligner &&\
subaligner -h
python -m pip install subaligner
15 changes: 15 additions & 0 deletions docker/Dockerfile-Debian10
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Subaligner Debian docker image
FROM debian:stable-20201209

ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/London
RUN apt-get -y update &&\
apt-get -y install ffmpeg &&\
apt-get -y install espeak libespeak1 libespeak-dev espeak-data &&\
apt-get -y install libsndfile-dev &&\
apt-get -y install python3-dev &&\
apt-get -y install python3-tk &&\
apt-get -y install python3-pip &&\
python3 -m pip install --upgrade pip &&\
python3 -m pip install numpy &&\
python3 -m pip install subaligner
18 changes: 18 additions & 0 deletions docker/Dockerfile-Fedora31
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Subaligner Fedora Docker Image
From fedora:31

RUN dnf install -y dnf-utils &&\
yum install -y dnf-plugins-core &&\
dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm &&\
dnf install -y ffmpeg &&\
dnf install -y espeak-ng &&\
ln -s /usr/lib64/libespeak-ng.so.1 /usr/lib64/libespeak.so &&\
dnf install -y libsndfile-devel &&\
dnf install -y python3 &&\
dnf install -y gcc &&\
dnf install -y python3-wheel &&\
dnf install -y python3-devel &&\
dnf install -y python3-pip &&\
pip3 install --upgrade pip &&\
python3 -m pip install numpy &&\
python3 -m pip install subaligner
12 changes: 12 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,15 @@ services:
context: ./
dockerfile: Dockerfile-ArchLinux
image: baxtree/subaligner:${SUBALIGNER_VERSION}.arch

subaligner-debian10:
build:
context: ./
dockerfile: Dockerfile-Debian10
image: baxtree/subaligner:${SUBALIGNER_VERSION}.deb10

subaligner-fedora31:
build:
context: ./
dockerfile: Dockerfile-Fedora31
image: baxtree/subaligner:${SUBALIGNER_VERSION}.fed31
2 changes: 2 additions & 0 deletions site/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Installation

$ docker run -v `pwd`:`pwd` -w `pwd` -it baxtree/subaligner bash

The following builds are available on dockerhub for several Linux distributions: CentOS 7 (latest and VERSION.el7), CentOS 8 (VERSION.el8), Ubuntu 18 (VERSION.u18), Ubuntu 20 (VERSION.u20), Debian 10 (VERSION.deb10), Fedora 31 (VERSION.fed31) and ArchLinux (VERSION.arch).

You can also download the latest
release on `GitHub <https://github.com/baxtree/subaligner>`_ and follow the steps down below
to create a virtual environment and set up all the dependencies:
Expand Down

0 comments on commit 56a6e6e

Please sign in to comment.