102 lines
4.6 KiB
Text
102 lines
4.6 KiB
Text
|
# Dockerfile - Build environment to compile khanat server
|
|||
|
#
|
|||
|
# Copyright (C) 2017 AleaJactaEst
|
|||
|
#
|
|||
|
# This program is free software: you can redistribute it and/or modify
|
|||
|
# it under the terms of the GNU Affero General Public License as published by
|
|||
|
# the Free Software Foundation, either version 3 of the License, or
|
|||
|
# (at your option) any later version.
|
|||
|
#
|
|||
|
# This program is distributed in the hope that it will be useful,
|
|||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
|
# GNU Affero General Public License for more details.
|
|||
|
#
|
|||
|
# You should have received a copy of the GNU Affero General Public License
|
|||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||
|
|
|||
|
FROM i386/debian:8
|
|||
|
MAINTAINER AleaJactaEst
|
|||
|
|
|||
|
ENV HOSTNAME builder
|
|||
|
|
|||
|
RUN apt-get update ; \
|
|||
|
apt-get dist-upgrade -y ; \
|
|||
|
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server ; \
|
|||
|
apt-get install -y apache2 \
|
|||
|
php5 \
|
|||
|
libapache2-mod-php5 \
|
|||
|
php5-mysql \
|
|||
|
apache2-utils \
|
|||
|
php5-gd \
|
|||
|
php5-imagick \
|
|||
|
git \
|
|||
|
libcurl4-openssl-dev \
|
|||
|
libluabind-dev \
|
|||
|
libfreetype6-dev \
|
|||
|
libx11-dev \
|
|||
|
libgl1-mesa-dev \
|
|||
|
libxxf86vm-dev \
|
|||
|
libxrandr-dev \
|
|||
|
libxrender-dev \
|
|||
|
libopenal-dev \
|
|||
|
libogg-dev \
|
|||
|
libvorbis-dev \
|
|||
|
libxml2-dev \
|
|||
|
cmake \
|
|||
|
build-essential \
|
|||
|
libpng12-dev \
|
|||
|
libjpeg62-turbo-dev \
|
|||
|
rrdtool \
|
|||
|
bison \
|
|||
|
libxmu-dev \
|
|||
|
autoconf \
|
|||
|
automake \
|
|||
|
libmysqlclient-dev \
|
|||
|
libgif-dev \
|
|||
|
cpputest \
|
|||
|
libssl-dev \
|
|||
|
liblzma-dev \
|
|||
|
unzip \
|
|||
|
zlib1g-dev \
|
|||
|
libssh-dev \
|
|||
|
libboost-all-dev \
|
|||
|
libopenal-dev \
|
|||
|
libgl1-mesa-dev \
|
|||
|
libogg-dev \
|
|||
|
mercurial \
|
|||
|
wget \
|
|||
|
python3 \
|
|||
|
python3-setuptools
|
|||
|
|
|||
|
## Build & Install cpptest
|
|||
|
# Impossible to build release 1.1.0, 1.1.1, 1.1.2
|
|||
|
RUN apt-get install -y wget autogen autoconf automake libtool libtool-bin
|
|||
|
RUN mkdir -p /opt/src
|
|||
|
RUN wget -q https://github.com/cpptest/cpptest/archive/1.0.5.tar.gz -O /opt/src/cpptest.tar.gz
|
|||
|
RUN rm -rf /opt/src/cpptest
|
|||
|
RUN tar xvf /opt/src/cpptest.tar.gz -C /opt/src --strip 1
|
|||
|
RUN cd /opt/src/cpptest && ./autogen.sh && ./configure && make && make install
|
|||
|
|
|||
|
## Build & Install squish
|
|||
|
RUN mkdir -p /opt/src
|
|||
|
RUN cd /opt/src; wget -c https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libsquish/squish-1.11.zip
|
|||
|
RUN cd /opt/src; unzip squish-1.11.zip
|
|||
|
COPY builder/common/squish-limit.patch /opt/squish-limit.patch
|
|||
|
RUN cd /opt/src/squish-1.11; patch -i /opt/squish-limit.patch
|
|||
|
RUN cd /opt/src/squish-1.11; make
|
|||
|
RUN cd /opt/src/squish-1.11; make install
|
|||
|
|
|||
|
## Build & Install CURL - 7.46.0
|
|||
|
#RUN hg clone http://hg.kervala.net/packaging/
|
|||
|
#RUN mkdir -p packaging/curl/build
|
|||
|
#RUN cd packaging/curl/build; cmake -DCMAKE_BUILD_TYPE=Release -DCURL_ZLIB=ON -DBUILD_CURL_EXE=OFF -DBUILD_CURL_TESTS=OFF -DCURL_STATICLIB=ON -DHTTP_ONLY=ON -DENABLE_IPV6=ON -DCMAKE_USE_OPENSSL=ON -DOPENSSL_SSL_LIBRARIES=/usr/lib/libssl.a -DOPENSSL_CRYPTO_LIBRARIES=/usr/lib/libcrypto.a -DCMAKE_USE_LIBSSH2=OFF -DZLIB_LIBRARY=/usr/lib/x86_64-linux-gnu/libz.a ..
|
|||
|
#RUN cd packaging/curl/build; make
|
|||
|
#RUN cd packaging/curl/build; make install
|
|||
|
RUN wget -q https://curl.haxx.se/download/curl-7.46.0.tar.gz -O /opt/src/curl.tar.gz
|
|||
|
RUN mkdir -p /opt/src/curl/build
|
|||
|
RUN tar xvf /opt/src/curl.tar.gz -C /opt/src/curl --strip 1
|
|||
|
RUN cd /opt/src/curl/build; cmake -DCMAKE_BUILD_TYPE=Release -DCURL_ZLIB=ON -DBUILD_CURL_EXE=OFF -DBUILD_CURL_TESTS=OFF -DCURL_STATICLIB=ON -DHTTP_ONLY=ON -DENABLE_IPV6=ON -DCMAKE_USE_OPENSSL=ON -DOPENSSL_SSL_LIBRARIES=/usr/lib/libssl.a -DOPENSSL_CRYPTO_LIBRARIES=/usr/lib/libcrypto.a -DCMAKE_USE_LIBSSH2=OFF -DZLIB_LIBRARY=/usr/lib/x86_64-linux-gnu/libz.a ..
|
|||
|
RUN cd /opt/src/curl/build; make
|
|||
|
RUN cd /opt/src/curl/build; make install
|