Commit fabb4a8f authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] php55 without daemons

parent 19a87ba9
......@@ -2,5 +2,8 @@ FROM typo3gmbh/baseimage:2.0
MAINTAINER TYPO3 GmbH <info@typo3.com>
ADD . /pd_build
RUN /pd_build/install.sh
CMD ["/sbin/my_init"]
RUN /pd_build/enable_repos.sh && \
/pd_build/nodejs.sh && \
/pd_build/php.sh && \
/pd_build/finalize.sh
......@@ -3,9 +3,9 @@ export DEBIAN_FRONTEND=noninteractive
function minimal_apt_get_install()
{
if [[ ! -e /var/lib/apt/lists/lock ]]; then
apt-get update
fi
apt-get install -y --no-install-recommends "$@"
if [[ ! -e /var/lib/apt/lists/lock ]]; then
apt-get update
fi
apt-get install -y --no-install-recommends "$@"
}
GRANT ALL ON `func\_%`.* to funcu@'%' IDENTIFIED BY 'funcp' WITH GRANT OPTION;
GRANT ALL ON `func\_%`.* to funcu@'localhost' IDENTIFIED BY 'funcp' WITH GRANT OPTION;
FLUSH PRIVILEGES;
[mysqld]
init-file=/etc/mysql/grants.sql
......@@ -4,8 +4,3 @@ source /pd_build/buildconfig
set -x
apt-get update
# Set a hard IP for some typo3.org services for now until maybe anytime server team decides
# to get DNS right again
echo "136.243.44.172 review.typo3.org" >> /etc/hosts
echo "136.243.44.172 git. typo3.org" >> /etc/hosts
\ No newline at end of file
......@@ -4,130 +4,129 @@ source /pd_build/buildconfig
set -x
apt-get remove -y --purge \
autoconf \
file \
flex \
krb5-multidev \
libapparmor-dev \
libapr1-dev \
libaprutil1-dev \
libaspell-dev \
libbsd-dev \
libbz2-dev \
libc-client2007e-dev \
libcurl4-openssl-dev \
libdb-dev \
libdb5.3-dev \
libexpat1-dev \
libfontconfig1-dev \
libfreetype6-dev \
libgcrypt11-dev \
libgcrypt20-dev \
libgd-dev \
libglib2.0-dev \
libgmp3-dev \
libgpg-error-dev \
libice-dev \
libidn11-dev \
libjbig-dev \
libjpeg-dev \
libjpeg-turbo8-dev \
libjpeg8-dev \
libkrb5-dev \
libldap2-dev \
libltdl-dev \
liblzma-dev \
libmagic-dev \
libmcrypt-dev \
libmhash-dev \
libmysqlclient-dev \
libonig-dev \
libpcre3-dev \
libpq-dev \
libpspell-dev \
libqdbm-dev \
libreadline-dev \
librecode-dev \
libsasl2-dev \
libsctp-dev \
libsm-dev \
libsqlite3-dev \
libsystemd-dev \
libtidy-dev \
libtiff5-dev \
libtool \
libvpx-dev \
libwebp-dev \
libxml2-dev \
libxmlrpc-epi-dev \
libxmltok1-dev \
libxpm-dev \
libxslt1-dev \
libxt-dev \
libzip-dev \
make \
pkg-config \
re2c \
unixodbc-dev \
uuid-dev \
zlib1g-dev \
autotools-dev \
comerr-dev \
icu-devtools \
libc-client2007e \
libdpkg-perl \
libfl-dev \
libgmp-dev \
libgmpxx4ldbl \
libgnutls-openssl27 \
libgnutlsxx28 \
libgssrpc4 \
libicu-dev \
libisl15 \
libitm1 \
liblsan0 \
libmagic1 \
libmpc3 \
libmpx0 \
libp11-kit-dev \
libpam0g-dev \
libpthread-stubs0-dev \
libquadmath0 \
libreadline6-dev \
libstdc++-5-dev \
libtasn1-6-dev \
libtinfo-dev \
libtsan0 \
libubsan0 \
libx11-dev \
libxau-dev \
libxcb1-dev \
libxdmcp-dev \
m4 \
mlock \
nettle-dev \
x11proto-core-dev \
x11proto-input-dev \
x11proto-kb-dev \
xorg-sgml-doctools \
xtrans-dev \
#
autoconf \
file \
flex \
krb5-multidev \
libapparmor-dev \
libapr1-dev \
libaprutil1-dev \
libaspell-dev \
libbsd-dev \
libbz2-dev \
libc-client2007e-dev \
libcurl4-openssl-dev \
libdb-dev \
libdb5.3-dev \
libexpat1-dev \
libfontconfig1-dev \
libfreetype6-dev \
libgcrypt11-dev \
libgcrypt20-dev \
libgd-dev \
libglib2.0-dev \
libgmp3-dev \
libgpg-error-dev \
libice-dev \
libidn11-dev \
libjbig-dev \
libjpeg-dev \
libjpeg-turbo8-dev \
libjpeg8-dev \
libkrb5-dev \
libldap2-dev \
libltdl-dev \
liblzma-dev \
libmagic-dev \
libmcrypt-dev \
libmhash-dev \
libmysqlclient-dev \
libonig-dev \
libpcre3-dev \
libpq-dev \
libpspell-dev \
libqdbm-dev \
libreadline-dev \
librecode-dev \
libsasl2-dev \
libsctp-dev \
libsm-dev \
libsqlite3-dev \
libsystemd-dev \
libtidy-dev \
libtiff5-dev \
libtool \
libvpx-dev \
libwebp-dev \
libxml2-dev \
libxmlrpc-epi-dev \
libxmltok1-dev \
libxpm-dev \
libxslt1-dev \
libxt-dev \
libzip-dev \
make \
pkg-config \
re2c \
unixodbc-dev \
uuid-dev \
zlib1g-dev \
autotools-dev \
comerr-dev \
icu-devtools \
libc-client2007e \
libdpkg-perl \
libfl-dev \
libgmp-dev \
libgmpxx4ldbl \
libgnutls-openssl27 \
libgnutlsxx28 \
libgssrpc4 \
libicu-dev \
libisl15 \
libitm1 \
liblsan0 \
libmagic1 \
libmpc3 \
libmpx0 \
libp11-kit-dev \
libpam0g-dev \
libpthread-stubs0-dev \
libquadmath0 \
libreadline6-dev \
libstdc++-5-dev \
libtasn1-6-dev \
libtinfo-dev \
libtsan0 \
libubsan0 \
libx11-dev \
libxau-dev \
libxcb1-dev \
libxdmcp-dev \
m4 \
mlock \
nettle-dev \
x11proto-core-dev \
x11proto-input-dev \
x11proto-kb-dev \
xorg-sgml-doctools \
xtrans-dev \
#
# but keep make and g++ ... to not confuse with above list, just install again if needed
minimal_apt_get_install \
make \
g++
make \
g++
apt-get clean
apt-get -y autoremove
rm -rf \
/var/lib/apt/lists/* \
/root/.npm/ \
/tmp/* \
/var/tmp/* \
/usr/local/src/* \
/usr/include/php/20151012/ext/apcu/ \
#
/tmp/* \
/var/tmp/* \
/usr/local/src/* \
/usr/include/php/20151012/ext/apcu/ \
#
rm -rf /pd_build
#!/bin/bash
set -e
source /pd_build/buildconfig
set -x
/pd_build/enable_repos.sh
/pd_build/prepare.sh
/pd_build/mysql.sh
/pd_build/redis-server.sh
/pd_build/memcached.sh
/pd_build/nodejs.sh
/pd_build/php.sh
/pd_build/finalize.sh
#!/bin/bash
set -e
source /pd_build/buildconfig
set -x
minimal_apt_get_install \
memcached \
#
cp -a /pd_build/runit/memcached /etc/service/memcached
#!/bin/bash
set -e
source /pd_build/buildconfig
set -x
## Install MariaDB
minimal_apt_get_install \
mariadb-client \
mariadb-server \
#
## Additional config files
cp /pd_build/config/mysql/*.cnf /etc/mysql/mariadb.conf.d/
## Provide grants.sql
cp /pd_build/config/mysql/grants.sql /etc/mysql/grants.sql
## Enable mysql
cp -a /pd_build/runit/mysql /etc/service/mysql
......@@ -6,135 +6,135 @@ set -x
cd /usr/local/src/
minimal_apt_get_install \
graphicsmagick \
imagemagick \
zip \
unzip \
make \
gcc \
autoconf \
bison \
re2c \
file \
flex \
mcrypt \
aspell \
bsdmainutils \
libxpm-dev \
libsasl2-dev \
libpspell-dev \
libreadline-dev \
libaspell-dev \
libxml2 \
libxml2-dev \
libbz2-dev \
libzip-dev \
libzip4 \
zlib1g \
zlib1g-dev \
libcurl4-openssl-dev \
libcurl4 \
libc-client-dev \
libfreetype6 \
libfreetype6-dev \
libpng16-16 \
libpng-dev \
libmcrypt-dev \
libmcrypt4 \
libtidy-dev \
libxslt1-dev \
krb5-multidev \
libapparmor-dev \
libapr1 \
libapr1-dev \
libaprutil1 \
libaprutil1-dev \
libarchive-zip-perl \
libasprintf0v5 \
libbsd-dev \
libcroco3 \
libct4 \
libdb-dev \
libdb5.3-dev \
libelf1 \
libexpat1-dev \
libfontconfig1-dev \
libgcrypt11-dev \
libgcrypt20-dev \
libgd-dev \
libgd3 \
libglib2.0-bin \
libglib2.0-data \
libglib2.0-dev \
libgmp3-dev \
libgpg-error-dev \
libhunspell-1.6-0 \
libib-util \
libice-dev \
libice6 \
libjbig-dev \
libjbig0 \
libjpeg-dev \
libjpeg-turbo8-dev \
libjpeg8-dev \
libkrb5-dev \
libldap2-dev \
libltdl-dev \
libltdl7 \
liblzma-dev \
libmagic-dev \
libmemcached-dev \
libmhash-dev \
libmysqlclient20 \
libmysqlclient-dev \
libodbc1 \
libonig-dev \
libonig4 \
libpcre16-3 \
libpcre3-dev \
libpcre32-3 \
libpcrecpp0v5 \
libpipeline1 \
libpq-dev \
libpq5 \
libpython-stdlib \
libpython2.7-minimal \
libpython2.7-stdlib \
libqdbm-dev \
libqdbm14 \
librecode-dev \
librecode0 \
libsctp-dev \
libsctp1 \
libsm-dev \
libsm6 \
libsqlite3-dev \
libsybdb5 \
libsystemd-dev \
libtidy5 \
libtiff5 \
libtiff5-dev \
libtiffxx5 \
libtimedate-perl \
libtool \
libunistring2 \
libvpx-dev \
libvpx5 \
libwebp-dev \
libwebp6 \
libwebpdemux2 \
libwebpmux3 \
libxmlrpc-epi-dev \
libxmlrpc-epi0 \
libxmltok1 \
libxmltok1-dev \
libxslt1.1 \
libxt-dev \
libxt6 \
unixodbc \
unixodbc-dev \
uuid-dev \
#
graphicsmagick \
imagemagick \
zip \
unzip \
make \
gcc \
autoconf \
bison \
re2c \
file \
flex \
mcrypt \
aspell \
bsdmainutils \
libxpm-dev \
libsasl2-dev \
libpspell-dev \
libreadline-dev \
libaspell-dev \
libxml2 \
libxml2-dev \
libbz2-dev \
libzip-dev \
libzip4 \
zlib1g \
zlib1g-dev \
libcurl4-openssl-dev \
libcurl4 \
libc-client-dev \
libfreetype6 \
libfreetype6-dev \
libpng16-16 \
libpng-dev \
libmcrypt-dev \
libmcrypt4 \
libtidy-dev \
libxslt1-dev \
krb5-multidev \
libapparmor-dev \
libapr1 \
libapr1-dev \
libaprutil1 \
libaprutil1-dev \
libarchive-zip-perl \
libasprintf0v5 \
libbsd-dev \
libcroco3 \
libct4 \
libdb-dev \
libdb5.3-dev \
libelf1 \
libexpat1-dev \
libfontconfig1-dev \
libgcrypt11-dev \
libgcrypt20-dev \
libgd-dev \
libgd3 \
libglib2.0-bin \
libglib2.0-data \
libglib2.0-dev \
libgmp3-dev \
libgpg-error-dev \
libhunspell-1.6-0 \
libib-util \
libice-dev \
libice6 \
libjbig-dev \
libjbig0 \
libjpeg-dev \
libjpeg-turbo8-dev \
libjpeg8-dev \
libkrb5-dev \
libldap2-dev \
libltdl-dev \
libltdl7 \
liblzma-dev \
libmagic-dev \
libmemcached-dev \
libmhash-dev \
libmysqlclient20 \
libmysqlclient-dev \
libodbc1 \
libonig-dev \
libonig4 \
libpcre16-3 \
libpcre3-dev \
libpcre32-3 \
libpcrecpp0v5 \
libpipeline1 \
libpq-dev \
libpq5 \
libpython-stdlib \
libpython2.7-minimal \
libpython2.7-stdlib \
libqdbm-dev \
libqdbm14 \
librecode-dev \
librecode0 \
libsctp-dev \
libsctp1 \
libsm-dev \
libsm6 \
libsqlite3-dev \
libsybdb5 \
libsystemd-dev \
libtidy5 \
libtiff5 \
libtiff5-dev \
libtiffxx5 \
libtimedate-perl \
libtool \
libunistring2 \
libvpx-dev \
libvpx5 \
libwebp-dev \
libwebp6 \
libwebpdemux2 \
libwebpmux3 \
libxmlrpc-epi-dev \
libxmlrpc-epi0 \
libxmltok1 \
libxmltok1-dev \
libxslt1.1 \
libxt-dev \
libxt6 \
unixodbc \
unixodbc-dev \
uuid-dev \
#
curl -SL --progress-bar https://www.openssl.org/source/old/0.9.x/openssl-0.9.8v.tar.gz -o openssl-0.9.8v.tar.gz
tar xvf openssl-0.9.8v.tar.gz
......@@ -155,42 +155,42 @@ tar -xvf php-5.5.38.tar.bz2
cd php-5.5.38
./configure \
--without-t1lib \
--disable-short-tags \
--enable-pcntl \
--with-tsrm-pthreads \
--with-mysqli=mysqlnd \
--with-mysql=mysqlnd \
--with-pdo-mysql \
--with-zlib \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-bcmath \
--with-bz2 \
--enable-calendar \
--enable-exif \
--enable-ftp \
--with-gd \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-iconv-dir \
--with-gettext \
--enable-mbstring \
--with-mcrypt \
--with-mhash \
--with-pspell \
--with-readline \
--enable-soap \
--enable-sockets \
--enable-wddx \
--with-xmlrpc \
--with-xsl \
--with-openssl=/usr/local/ssl/ \
--enable-zip \
--with-tidy \
--with-curl \
#
--without-t1lib \
--disable-short-tags \
--enable-pcntl \
--with-tsrm-pthreads \
--with-mysqli=mysqlnd \
--with-mysql=mysqlnd \
--with-pdo-mysql \