-
Notifications
You must be signed in to change notification settings - Fork 2
/
hmm_dockerfile-ubuntu-tpc-buildtest-16.04
42 lines (42 loc) · 2.33 KB
/
hmm_dockerfile-ubuntu-tpc-buildtest-16.04
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
#
# Build:
# cd /usr/local/textpresso/git/textpressocentral
# docker build -t hmm_ubuntu-tpc-buildtest-16.04 -f hmm_dockerfile-ubuntu-tpc-buildtest-16.04 .
#
FROM ubuntu:16.04
RUN export DEBIAN_FRONTEND=noninteractive; apt-get update; apt-get -y install cmake libxerces-c-dev \
libapr1-dev libaprutil1-dev wget libicu-dev liblucene++-dev liblucene++ \
icu-devtools bzip2 build-essential unzip software-properties-common \
python-software-properties autoconf libboost-all-dev libpodofo-dev libpodofo-utils libpqxx-dev apache2 \
libapache2-mod-fastcgi fcgi++ libmagick++-dev libcurl4-openssl-dev postfix \
libeigen3-dev postgresql-client postgresql postgresql-contrib cimg-dev sudo
RUN wget http://apache.osuosl.org/activemq/activemq-cpp/3.9.4/activemq-cpp-library-3.9.4-src.tar.bz2 -O \
activemq.tar.bz2; tar xjf activemq.tar.bz2; cd activemq-cpp-library-3.9.4/; ./configure --enable-static \
--enable-shared --prefix=/usr/local; make -j 5 && make install; cd ..; wget \
http://apache.ip-guide.com//uima//uimacpp-2.4.0/uimacpp-2.4.0-src.zip -O uimacpp.zip; unzip uimacpp.zip
# install oracle Jdk
RUN add-apt-repository ppa:webupd8team/java; echo debconf shared/accepted-oracle-license-v1-1 select true | \
debconf-set-selections; echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections; apt-get \
update -q; apt-get install -q -y oracle-java8-installer
# apply uima patches for CXX11-14
COPY ./patches/uimacpp-2.4.0/src/framework/uima/strtools.hpp /uimacpp-2.4.0/src/framework/uima/strtools.hpp
COPY ./patches/uimacpp-2.4.0/configure.ac /uimacpp-2.4.0/configure.ac
# compile and install uima library
RUN cd uimacpp-2.4.0; autoconf -i; chmod +x configure; ./configure \
--with-activemq=/usr/local --with-icu=/usr \
--with-jdk="/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux" --enable-static \
--enable-shared --prefix=/usr/local; make -j 5 && make install
# compile and install wt - the version provided by ubuntu is bugged!
RUN wget https://github.com/emweb/wt/archive/3.3.7.tar.gz -O wt-3.3.7.tar.gz; tar xzf wt-3.3.7.tar.gz; cd wt-3.3.7; mkdir build; cd build; \
cmake ..; make -j 5; make install
# clean
RUN rm -rf activemq*; rm -rf uimacpp*; rm -rf lucenepp.zip; rm -rf LucenePlusPlus-master; rm -rf wt-3.3.7*;
#
# To be done manually:
# - none
#
#
# Run:
#
# - the image is used for a subsequent build. It's not deployed.
#