concordia-docker/concordia-server/Dockerfile

27 lines
1.4 KiB
Docker
Raw Permalink Normal View History

2019-05-14 22:02:59 +02:00
FROM ubuntu:16.04
2019-05-18 00:37:44 +02:00
# Set the locale
RUN apt-get update && apt-get install -y locales
RUN sed -i -e 's/# pl_PL.UTF-8 UTF-8/pl_PL.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
ENV LANG pl_PL.UTF-8
ENV LANGUAGE pl_PL:pl
ENV LC_ALL pl_PL.UTF-8
2019-06-27 12:53:03 +02:00
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
2019-08-28 07:42:22 +02:00
RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-library.git
RUN cd concordia-library && mkdir build && cd build && ../cmake.sh && make && make install && ldconfig
2019-06-27 12:53:03 +02:00
RUN git clone https://github.com/mrtazz/restclient-cpp.git
RUN cd restclient-cpp && ./autogen.sh && make install && ldconfig
2019-05-14 22:02:59 +02:00
RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-server.git
2019-05-17 09:51:21 +02:00
RUN cd concordia-server && mkdir index && mkdir build && cd build && ../cmake.sh && make
2019-05-14 22:02:59 +02:00
2019-06-27 12:53:03 +02:00
2019-05-14 22:02:59 +02:00
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