mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-30 07:35:59 +00:00
58 lines
2.7 KiB
Docker
58 lines
2.7 KiB
Docker
# 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 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 General Public License for more details.
|
||
#
|
||
# You should have received a copy of the GNU General Public License
|
||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
#
|
||
|
||
# to build :
|
||
# $ docker build . -t builder_debian_8_i686 --file dist/docker/builder/debian-8-i686/Dockerfile
|
||
|
||
# to use this image :
|
||
# (on root)
|
||
# $ docker run -it --hostname=builder -v $PWD/dist:/opt/dist -v $PWD/code:/opt/code builder_debian_8_i686 /bin/bash
|
||
# (with your account)
|
||
# $ docker run -it --hostname=builder -u "$(id -u $USERNAME):$(id -g $USERNAME)" -v $PWD/dist:/opt/dist -v $PWD/code:/opt/code builder_debian_8_i686 /bin/bash
|
||
|
||
FROM debian:8
|
||
MAINTAINER AleaJactaEst
|
||
|
||
ENV HOSTNAME builder
|
||
|
||
RUN apt-get update
|
||
RUN apt-get dist-upgrade -y
|
||
|
||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server
|
||
RUN apt-get install -y apache2 php5 libapache2-mod-php5 php5-mysql apache2-utils php5-gd php5-imagick
|
||
RUN apt-get install -y 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
|
||
|
||
RUN apt-get install -y wget
|
||
|
||
## 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 Build 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 dist/docker/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
|