2019-05-14 22:02:59 +02:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
|
|
|
|
|
2019-05-15 21:19:00 +02:00
|
|
|
RUN apt-get update && 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
|
2019-05-14 22:02:59 +02:00
|
|
|
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 git clone https://git.wmi.amu.edu.pl/rjawor/concordia-server.git
|
|
|
|
RUN cd concordia-server && mkdir build && cd build && ../cmake.sh && make
|
|
|
|
|
|
|
|
COPY fcgi_concordia /etc/nginx/sites-available
|
|
|
|
RUN rm /etc/nginx/sites-enabled/default
|
|
|
|
RUN ln -s /etc/nginx/sites-available/fcgi_concordia /etc/nginx/sites-enabled/fcgi_concordia
|
|
|
|
|
2019-05-16 14:59:09 +02:00
|
|
|
CMD /usr/sbin/nginx -g "daemon on;" && sleep 4 && sh concordia-server/scripts/simplestart.sh
|