This commit is contained in:
Rafał Jaworski 2019-06-27 12:53:03 +02:00
parent ea4825e6f0
commit 705acd6525
5 changed files with 29 additions and 6 deletions

View File

@ -2,4 +2,4 @@
source corpus.cfg source corpus.cfg
docker run -it --rm --name=concordia-aligner --network=concordiadocker_default --mount src="$(pwd)"/corpora,target=/concordia-aligner/corpora,type=bind concordia-aligner:Dockerfile $SRC_LANG $TRG_LANG $CORPUS_NAME docker run -it --rm --name=concordia-aligner --network=concordia-network --mount src="$(pwd)"/corpora,target=/concordia-aligner/corpora,type=bind concordia-aligner:Dockerfile $SRC_LANG $TRG_LANG $CORPUS_NAME

View File

@ -1,5 +1,5 @@
PREPROCESSOR_SOURCES=`readlink -f ../../concordia-preprocessor` PREPROCESSOR_SOURCES=`readlink -f ../../concordia-preprocessor`
docker network create concordiadocker_default docker network create concordia-network
docker run -it --rm --network=concordiadocker_default --name=concordia-preprocessor -p 10002:9001 --mount src="$PREPROCESSOR_SOURCES",target=/concordia-preprocessor-remote,type=bind concordiadocker_concordia-preprocessor /bin/bash docker run -it --rm --network=concordia-network --name=concordia-preprocessor -p 10002:9001 --mount src="$PREPROCESSOR_SOURCES",target=/concordia-preprocessor-remote,type=bind concordia-preprocessor /bin/bash
docker network remove concordiadocker_default docker network remove concordia-network

View File

@ -8,12 +8,17 @@ ENV LANG pl_PL.UTF-8
ENV LANGUAGE pl_PL:pl ENV LANGUAGE pl_PL:pl
ENV LC_ALL pl_PL.UTF-8 ENV LC_ALL pl_PL.UTF-8
RUN apt-get install -y git libfcgi-dev libpq-dev python3-psycopg2 nginx php apache2 libapache2-mod-php spawn-fcgi cmake g++ libboost-dev libboost-serialization-dev libboost-test-dev libboost-filesystem-dev libboost-system-dev libboost-program-options-dev libboost-iostreams-dev libboost-regex-dev libboost-locale-dev liblog4cpp5-dev libconfig++-dev libconfig-dev libpcre3-dev mono-complete RUN apt-get install -y git libfcgi-dev libpq-dev python3-psycopg2 nginx php apache2 libapache2-mod-php spawn-fcgi cmake g++ libboost-dev libboost-serialization-dev libboost-test-dev libboost-filesystem-dev libboost-system-dev libboost-program-options-dev libboost-iostreams-dev libboost-regex-dev libboost-locale-dev liblog4cpp5-dev libconfig++-dev libconfig-dev libpcre3-dev automake libtool libcurl4-openssl-dev
RUN git clone https://git.code.sf.net/p/tmconcordia/code RUN git clone https://git.code.sf.net/p/tmconcordia/code
RUN cd code && mkdir build && cd build && ../cmake.sh && make && make install && ldconfig RUN cd code && mkdir build && cd build && ../cmake.sh && make && make install && ldconfig
RUN git clone https://github.com/mrtazz/restclient-cpp.git
RUN cd restclient-cpp && ./autogen.sh && make install && ldconfig
RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-server.git RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-server.git
RUN cd concordia-server && mkdir index && mkdir build && cd build && ../cmake.sh && make RUN cd concordia-server && mkdir index && mkdir build && cd build && ../cmake.sh && make
COPY fcgi_concordia /etc/nginx/sites-available COPY fcgi_concordia /etc/nginx/sites-available
RUN rm /etc/nginx/sites-enabled/default RUN rm /etc/nginx/sites-enabled/default
RUN ln -s /etc/nginx/sites-available/fcgi_concordia /etc/nginx/sites-enabled/fcgi_concordia RUN ln -s /etc/nginx/sites-available/fcgi_concordia /etc/nginx/sites-enabled/fcgi_concordia

View File

@ -0,0 +1,5 @@
CONCORDIASERVER_SOURCES=`readlink -f ../../concordia-server`
docker network create concordia-network
docker run -it --rm --network=concordia-network --name=concordia-server -p 10001:8800 --mount src="$CONCORDIASERVER_SOURCES",target=/concordia-server-remote,type=bind concordia-server /bin/bash
docker network remove concordia-network

View File

@ -1,24 +1,37 @@
version: '2.0' version: '3.5'
services: services:
concordia-postgres: concordia-postgres:
build: ./concordia-postgres build: ./concordia-postgres
container_name: concordia-postgres container_name: concordia-postgres
image: concordia-postgres
restart: always restart: always
environment: environment:
POSTGRES_DB: concordia_db POSTGRES_DB: concordia_db
POSTGRES_USER: concordia POSTGRES_USER: concordia
POSTGRES_PASSWORD: concordia POSTGRES_PASSWORD: concordia
networks:
- concordia-network
concordia-server: concordia-server:
build: ./concordia-server build: ./concordia-server
container_name: concordia-server container_name: concordia-server
image: concordia-server
restart: always restart: always
ports: ports:
- "10001:8800" - "10001:8800"
depends_on: depends_on:
- "concordia-postgres" - "concordia-postgres"
networks:
- concordia-network
concordia-preprocessor: concordia-preprocessor:
build: ./concordia-preprocessor build: ./concordia-preprocessor
container_name: concordia-preprocessor container_name: concordia-preprocessor
image: concordia-preprocessor
restart: always restart: always
networks:
- concordia-network
networks:
concordia-network:
name: concordia-network