Commit c92bb6f9 authored by MGniew's avatar MGniew

Dockerfile updated

parent b647f2b4
stages:
- build
build_image:
stage: build
image: docker:18.09.7
only:
- master
services:
- docker:18.09.7-dind
before_script:
- ''
script:
- docker build -t clarinpl/ccl-emo-stats .
- echo $DOCKER_PASSWORD > pass.txt
- cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
- rm pass.txt
- docker push clarinpl/ccl-emo-stats
FROM clarinpl/python:2.7
FROM clarinpl/python:3.6
#standard ubuntu packages
RUN apt-get -y update && \
apt-get install -y apt-utils && \
apt-get install -y iputils-ping && \
apt-get install -y iputils-tracepath && \
apt-get install -y cmake && \
apt-get install -y build-essential && \
apt-get install -y libboost-all-dev && \
apt-get install -y swig && \
apt-get install -y software-properties-common python-software-properties &&\
apt-get install -y nano mc zip unzip &&\
apt-get install -y locales locales-all && \
apt-get install -y apt-transport-https
apt-get install -y corpus2-python3.6
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 \
build-essential \
autotools-dev \
devscripts \
acl \
antlr \
build-essential \
libssl-dev \
libffi-dev \
libxml2-utils
# Create directiries structure
RUN mkdir -p /samba/requests/ccl_emo_stats
RUN mkdir /home/work
RUN mkdir /home/install
RUN mkdir /worker
WORKDIR /home/install
# Install dependencies
## CORPUS2
RUN git clone https://gitlab.clarin-pl.eu/analysers/corpus2.git && \
mkdir corpus2/bin && \
cd corpus2/bin && \
cmake .. && \
make && \
make install && \
ldconfig
## NLP_WS
RUN svn co http://svn.clarin-pl.eu/svn/nlpservices/src/nlp_ws &&\
pip install -e nlp_ws
# Install ccl_emo_stats and dependencies
RUN pip install ccl_emo_stats
WORKDIR /home/worker
COPY ccl_emo_stats_worker.py .
COPY requirements.txt .
RUN pip install -r requirements.txt
ENTRYPOINT ["python", "ccl_emo_stats_worker.py"]
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