-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
58 lines (48 loc) · 2.91 KB
/
Dockerfile
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
# This is the docker file for the Modulo7 project
FROM ubuntu:14.04
# Basic message
RUN echo "Building docker image"
# Install installer helper tools
RUN apt-get install -y software-properties-common
# Add global apt repos for dependencies
RUN add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu precise universe" && \
add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse" && \
add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse" && \
add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse" && \
add-apt-repository -y ppa:webupd8team/java
# Update and upgrade the repositories once
RUN apt-get -y update
RUN apt-get -y upgrade
# Install the dependencies of opencv
RUN apt-get -y remove ffmpeg x264 libx264-dev
RUN apt-get -y install libopencv-dev
RUN apt-get -y install build-essential checkinstall cmake pkg-config yasm
RUN apt-get -y install libtiff4-dev libjpeg-dev libjasper-dev
RUN apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev
RUN apt-get -y install python-dev python-numpy
RUN apt-get -y install libtbb-dev
RUN apt-get -y install libqt4-dev libgtk2.0-dev
RUN apt-get -y install libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev
RUN apt-get -y install x264 v4l-utils ffmpeg
RUN apt-get -y install libgtk2.0-dev
# Install opencv on the image, its needed for the c++ code for omr
RUN apt-get -y install git
RUN git clone https://github.com/Khalian/Install-OpenCV
RUN chmod +x /Install-OpenCV/Ubuntu/2.4/opencv2_4_9.sh
RUN sh /Install-OpenCV/Ubuntu/2.4/opencv2_4_9.sh
# Install java
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
RUN apt-get -y -f install oracle-java8-set-default
# The installation of tessaract and audiveris prototypes, under construction
RUN apt-get -y install tesseract-ocr liblept4 libtesseract3 tesseract-ocr-deu tesseract-ocr-eng tesseract-ocr-fra tesseract-ocr-ita
RUN wget https://kenai.com/projects/audiveris/downloads/download/oldies/audiveris-4.2.3318-ubuntu-amd64.deb -O audiveris.deb
RUN dpkg -i audiveris.deb
# Install the gradle version 2.5 for building modulo7, canonical's distribution for gradle is outdated so gradle is installed manually
RUN apt-get -y install wget unzip
RUN wget https://services.gradle.org/distributions/gradle-2.5-bin.zip
RUN unzip gradle-2.5-bin.zip
# Build the Modulo7 project
RUN echo Building the Modulo7 CodeBase
RUN git clone https://github.com/Khalian/Modulo7
RUN export PATH=$PATH:/gradle-2.5/bin && cd Modulo7 && gradle build