-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.centos
More file actions
68 lines (49 loc) · 2 KB
/
Dockerfile.centos
File metadata and controls
68 lines (49 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM centos:7
MAINTAINER DrTrigon <dr.trigon@surfeu.ch>
# LABEL author.user1="Abdeali JK <abdealikothari@gmail.com>" \
# author.user2="DrTrigon <dr.trigon@surfeu.ch>"
# Initial update
RUN yum -y update
# Enable Repos: EPEL, Nux desktop repo
RUN yum install -y epel-release
RUN rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro && \
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
# Basic packages
RUN yum install -y \
make \
git
# Pip - install latest version so that wheels are used
RUN yum install -y python-pip && \
pip install -U pip
# libmagic
RUN yum install -y file-devel file-libs
# ExifTool
RUN yum install -y perl-Image-ExifTool
# OpenCV
RUN yum install -y opencv-python
# Image Magick / wand
RUN yum install -y ImageMagick-devel python-devel
# avprobe / ffprobe (From EPEL)
RUN yum install -y ffmpeg
# ZXing
RUN yum install -y java
# Dlib
RUN yum install -y cmake boost-python python-devel boost boost-devel gcc-gfortran gcc-c++ openblas-devel liblapack-devel
# ZBar
RUN yum install -y zbar-devel python-devel
# Add the repository
RUN git clone https://github.com/pywikibot-catfiles/file-metadata.git /opt/file-metadata
# Test requirements
RUN pip install -r /opt/file-metadata/test-requirements.txt
# Ugly hack to install zbar-devel. CentOS 7 doesn't have copr and can't install
# https://copr.fedorainfracloud.org/coprs/mmraka/epel7-addons/ easily. So
# we just download the required packages for now...
RUN yum install -y ImageMagick-c++ && \
rpm -Uvh https://copr-be.cloud.fedoraproject.org/results/mmraka/epel7-addons/epel-7-x86_64/zbar-0.10-15.fc19/zbar-0.10-15.el7.centos.x86_64.rpm && \
rpm -Uvh https://copr-be.cloud.fedoraproject.org/results/mmraka/epel7-addons/epel-7-x86_64/zbar-0.10-15.fc19/zbar-devel-0.10-15.el7.centos.x86_64.rpm
#RUN pip install pip==7.0.0
RUN yum install -y libpng-devel
RUN pip install -U cython
# Install package
RUN pip install /opt/file-metadata --upgrade
RUN pip install -e /opt/file-metadata