mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-15 03:59:04 +00:00
49 lines
2.1 KiB
Text
49 lines
2.1 KiB
Text
|
# Dockerfile - Build new package server
|
|||
|
# Build for server debian-8 (amd64)
|
|||
|
#
|
|||
|
# Copyright : GNU/AGPLv3
|
|||
|
#
|
|||
|
# Created : 1 AUG 2017
|
|||
|
# Created by : AleaJactaEst
|
|||
|
|
|||
|
# 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/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
|