Commit 73517989 authored by mateuszg's avatar mateuszg

Dockerfile added

parent 1825a066
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
libicu-dev \
libxml++2.6-dev \
bison \
flex \
libloki-dev \
libcppunit-dev \
libantlr-dev \
default-jdk \
build-essential \
autotools-dev \
python \
python-setuptools \
python-stdeb \
python-pip \
python-all-dev \
python-pyparsing \
devscripts \
acl \
antlr \
build-essential \
libssl-dev \
libffi-dev \
libgmp3-dev \
libcgal-dev \
python-numpy \
libcairomm-1.0-dev \
python-cairo-dev \
libsparsehash-dev \
autotools-dev \
automake \
libboost-all-dev \
apt-utils \
iputils-ping \
iputils-tracepath \
cmake \
build-essential \
git \
subversion \
libboost-all-dev \
swig \
python-dev \
wget \
software-properties-common python-software-properties \
nano mc zip unzip \
locales locales-all \
apt-transport-https
## CORPUS2
WORKDIR /home/install
RUN git clone http://nlp.pwr.wroc.pl/corpus2.git && \
mkdir corpus2/bin && \
cd corpus2/bin && \
cmake .. && \
make -j && \
make install DESTDIR=/install/corpus2 && \
cp -r /install/corpus2/* / && \
ldconfig
# GRAPH-TOOL pprmc
WORKDIR /home/install
RUN svn co http://svn.clarin-pl.eu/svn/gtpprmc/trunk && \
cd trunk && \
./configure && \
make -j8 && \
make install DESTDIR=/install/gtpprmc && \
cp -r /install/gtpprmc/* / && \
ldconfig && \
rm -r ../trunk
## WCCL
WORKDIR /home/install
RUN git clone http://nlp.pwr.wroc.pl/wccl.git && \
mkdir wccl/bin && \
cd wccl/bin && \
cmake .. && \
make -j && \
make install DESTDIR=/install/wccl && \
cp -r /install/wccl/* / && \
ldconfig && \
rm -r ../../wccl
##CORPUS2MWE
WORKDIR /home/install
RUN cd corpus2/corpus2mwe && \
mkdir build && \
cd build && \
cmake .. && \
make -j && \
make install DESTDIR=/install/corpus2mwe && \
cp -r /install/corpus2mwe/* / && \
ldconfig && \
cd /home/install && \
rm -r corpus2
## AMQP-CPP
WORKDIR /home/install
RUN wget https://github.com/CopernicaMarketingSoftware/AMQP-CPP/archive/v2.8.0.tar.gz && \
tar -xvf v2.8.0.tar.gz && \
cd AMQP-CPP-2.8.0 && \
make -j4 && \
make install PREFIX=/install/ampq-cpp/usr/local && \
cp -r /install/ampq-cpp/* / && \
ldconfig && \
rm -r ../AMQP-CPP-2.8.0 && \
rm ../v2.8.0.tar.gz
## CCP_NLP
WORKDIR /home/install
RUN svn co http://svn.clarin-pl.eu/svn/nlpservices/src/cpp/nlp && \
cd nlp && \
mkdir build && \
cd build && \
cmake .. && \
make -j4 && \
make install DESTDIR=/install/ccp_nlp && \
cp -r /install/ccp_nlp/* / && \
ldconfig && \
rm -r ../../nlp
WORKDIR /home/install
RUN wget -O morf 'https://nextcloud.clarin-pl.eu/index.php/s/VVIvx4w20azcWbp/download' && \
dpkg -i ./morf
## POLEM
WORKDIR /home/install
RUN wget -O pol 'https://nextcloud.clarin-pl.eu/index.php/s/fXi4v49oESKzRnd/download' && \
tar -xvzf pol && \
mkdir polem/cpp/build && \
cd polem/cpp/build && \
cmake .. && \
make -j && \
make install DESTDIR=/install/polem && \
cp -r /install/polem/* / && \
rm -r ../../../polem
## TOKI
WORKDIR /home/install
RUN git clone http://nlp.pwr.edu.pl/toki.git && \
mkdir -p toki/bin && \
cd toki/bin && \
cmake .. && \
make -j && \
make install DESTDIR=/install/toki && \
cp -r /install/toki/* / && \
ldconfig && \
rm -r ../../toki
## POLIQARP
WORKDIR /home/install
RUN wget https://sourceforge.net/projects/poliqarp/files/poliqarp/1.3.13/poliqarp_1.3.13.tar.gz && \
tar -xzvf poliqarp_1.3.13.tar.gz && \
rm poliqarp_1.3.13.tar.gz && \
cd poliqarp-1.3.13 && \
./configure && \
make -j6 && \
make install DESTDIR=/install/poliqarp && \
cp -r /install/poliqarp/* / && \
rm -r ../poliqarp-1.3.13
## CRFPP
WORKDIR /home/install
RUN git clone https://github.com/taku910/crfpp.git && \
cd crfpp && \
./autogen.sh && \
./configure && \
sed -i '/#include "winmain.h"/d' crf_test.cpp && \
sed -i '/#include "winmain.h"/d' crf_learn.cpp && \
make -j6 && \
make install DESTDIR=/install/crfpp && \
cp -r /install/crfpp/* / && \
ldconfig && \
rm -r ../crfpp
# move to top
RUN apt-get install -y virtualenv
WORKDIR /install/python
RUN mkdir wheels
RUN virtualenv -p python venv2
ENV PATH="/install/python/venv2/bin:$PATH"
#NLP_WS
RUN svn co http://svn.clarin-pl.eu/svn/nlpservices/src/nlp_ws && \
cd nlp_ws &&\
python setup.py install
RUN cp /install/python/nlp_ws/dist/nlp_ws-0.5-py2.7.egg /install/python/wheels
#WOSEDON
WORKDIR /home/install
RUN git clone http://nlp.pwr.edu.pl/wosedon_pub.git && \
cd wosedon_pub/wosedon_current/tools/stdmods/corpus_ccl && \
python setup.py install && \
cd ../tools && \
python setup.py install && \
cd ../../PLWNGraphBuilder && \
python setup.py install && \
cd ../../../wosedon_current && \
python setup.py install
RUN cp /home/install/wosedon_pub/wosedon_current/tools/stdmods/corpus_ccl/dist/corpus_ccl-0.9-py2.7.egg /install/python/wheels
RUN cp /home/install/wosedon_pub/wosedon_current/tools/PLWNGraphBuilder/dist/PLWNGraphBuilder-0.1.0-py2.7.egg /install/python/wheels
RUN cp /home/install/wosedon_pub/wosedon_current/tools/stdmods/tools/dist/basicutils-0.9-py2.7.egg /install/python/wheels
RUN cp /home/install/wosedon_pub/wosedon_current/dist/wosedon-0.1.0-py2.7.egg /install/python/wheels
WORKDIR /install/python/wheels
RUN ls *.egg | xargs -I{} wheel convert {}
RUN rm *.egg
RUN rm -rf home/install
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment