diff --git a/dist/docker/builder/debian/jessie/i686/build.sh b/dist/docker/builder/debian/jessie/i686/build.sh
index 9ef037675..b68f19df2 100755
--- a/dist/docker/builder/debian/jessie/i686/build.sh
+++ b/dist/docker/builder/debian/jessie/i686/build.sh
@@ -29,6 +29,7 @@ declare DIRBUILD=""
declare CLEANDOCKER=0
declare -i CLEANIMAGENONE=0
declare -i AUTODETEC=1
+declare DOCKERBUILDOPT=""
declare IMAGEDOCKER="builder_khanat_debian_jessie_i686"
declare LOCALBUILDDIR="build/$IMAGEDOCKER"
@@ -112,6 +113,7 @@ do
;;
-f|--force-create-image)
IMAGE=1
+ DOCKERBUILDOPT="$DOCKERBUILDOPT --no-cache"
shift
;;
-j)
@@ -216,7 +218,7 @@ EOF
if [[ $IMAGE -ne 0 ]]
then
msg_info "GENERATE DOCKER IMAGE"
- cd $rootdir; docker build . -t ${IMAGEDOCKER} \
+ cd $rootdir; docker build . ${DOCKERBUILDOPT} -t ${IMAGEDOCKER} \
--file "${basedir}/Dockerfile" || exit 2
fi
diff --git a/dist/docker/builder/debian/jessie/x86_64/Dockerfile b/dist/docker/builder/debian/jessie/x86_64/Dockerfile
index d4cff01be..c8e1e545d 100644
--- a/dist/docker/builder/debian/jessie/x86_64/Dockerfile
+++ b/dist/docker/builder/debian/jessie/x86_64/Dockerfile
@@ -34,8 +34,49 @@ 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 zlib1g-dev libssh-dev libboost-all-dev libopenal-dev libgl1-mesa-dev libogg-dev
+
+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 \
+ zlib1g-dev \
+ libssh-dev \
+ libboost-all-dev \
+ libopenal-dev \
+ libgl1-mesa-dev \
+ libogg-dev \
+ mercurial
RUN apt-get install -y wget
@@ -48,7 +89,7 @@ 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
+## 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
@@ -56,3 +97,16 @@ 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
+
+## 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
diff --git a/dist/docker/builder/debian/jessie/x86_64/build-under-docker.sh b/dist/docker/builder/debian/jessie/x86_64/build-under-docker.sh
index 8066006b6..6a36565c6 100755
--- a/dist/docker/builder/debian/jessie/x86_64/build-under-docker.sh
+++ b/dist/docker/builder/debian/jessie/x86_64/build-under-docker.sh
@@ -42,7 +42,16 @@ fi
echo "$(date "+%Y/%m/%d %H:%M:%S") BUILD START" >> $LOGFILE
-cd ${DIRBUILD}; cmake -DWITH_NEL=ON -DWITH_STATIC=ON -DWITH_STATIC_DRIVERS=ON ${CMAKEOPTS} ../.. 1>>$LOGFILE 2>&1 || exit 2
+cd ${DIRBUILD}; cmake -DWITH_NEL=ON \
+ -DWITH_STATIC=ON \
+ -DWITH_STATIC_DRIVERS=ON \
+ -DWITH_STATIC_EXTERNAL=ON \
+ -DWITH_SYMBOLS=ON \
+ -DWITH_LUA52=ON \
+ -DWITH_RYZOM_PATCH=ON \
+ -DWITH_RYZOM_CUSTOM_PATCH_SERVER=ON \
+ ${CMAKEOPTS} \
+ ../.. 1>>$LOGFILE 2>&1 || exit 2
cd ${DIRBUILD}; make $MAKEOPTS 1>>$LOGFILE 2>&1 || exit 2
diff --git a/dist/docker/builder/debian/jessie/x86_64/build.sh b/dist/docker/builder/debian/jessie/x86_64/build.sh
index 61825b040..d2ccf57b5 100755
--- a/dist/docker/builder/debian/jessie/x86_64/build.sh
+++ b/dist/docker/builder/debian/jessie/x86_64/build.sh
@@ -29,6 +29,7 @@ declare DIRBUILD=""
declare CLEANDOCKER=0
declare -i CLEANIMAGENONE=0
declare -i AUTODETEC=1
+declare DOCKERBUILDOPT=""
declare IMAGEDOCKER="builder_khanat_debian_jessie_x86_64"
declare LOCALBUILDDIR="build/$IMAGEDOCKER"
@@ -114,6 +115,7 @@ do
;;
-f|--force-create-image)
IMAGE=1
+ DOCKERBUILDOPT="$DOCKERBUILDOPT --no-cache"
shift
;;
-j)
@@ -222,7 +224,7 @@ EOF
if [[ $IMAGE -ne 0 ]]
then
msg_info "GENERATE DOCKER IMAGE"
- cd $rootdir; docker build . -t ${IMAGEDOCKER} \
+ cd $rootdir; docker build . ${DOCKERBUILDOPT} -t ${IMAGEDOCKER} \
--file "${basedir}/Dockerfile" || exit 2
fi
diff --git a/dist/docker/server/debian/common/configure_apache.sh b/dist/docker/server/debian/common/configure_apache.sh
index 9b7fd2c3c..3d4dd2fe2 100755
--- a/dist/docker/server/debian/common/configure_apache.sh
+++ b/dist/docker/server/debian/common/configure_apache.sh
@@ -31,6 +31,7 @@ source /home/gameserver/.bashrc
# Create directory use for patch server
#mkdir -p $KHANAT_PATH/khanatweb/public_php/
mkdir -p $PATCH_CLIENT_SYSTEM/patch_game/patch
+mkdir -p $KHANAT_HOME/client_service/
# configure apache
cat << EOF > /etc/apache2/sites-available/000-default.conf
@@ -128,6 +129,27 @@ EOF
# Activate & deploy new configuration
a2enconf patch_service.conf
+# Configuration de la page client
+cat << EOF > /etc/apache2/conf-available/client_service.conf
+Alias /client /home/gameserver/client_service
+