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

Merge pull request #27 in T3COM/bamboo-remote-agent from...

Merge pull request #27 in T3COM/bamboo-remote-agent from INFRA-210-bamboo-agents-use-apcu-apcu-bc to develop

* commit '515c8211':
  [BUGFIX] Redis continious startup
  [TASK] Cleanup finalize.sh and merge php-finalize.sh into php.sh
  [TASK] Enable apc on cli on php70 again
  [TASK] No longer compile apcu+apcu-bc in php70, use ondrej for php71
  [TASK] Switch to onrej apcu apcu-bc
parents 285dcd7b 515c8211
......@@ -8,3 +8,5 @@ minimal_apt_get_install \
#
cp -a /pd_build/runit/redis-server /etc/service/redis-server
sed -i 's/daemonize yes/daemonize no/' /etc/redis/redis.conf
......@@ -8,3 +8,5 @@ minimal_apt_get_install \
#
cp -a /pd_build/runit/redis-server /etc/service/redis-server
sed -i 's/daemonize yes/daemonize no/' /etc/redis/redis.conf
......@@ -8,3 +8,5 @@ minimal_apt_get_install \
#
cp -a /pd_build/runit/redis-server /etc/service/redis-server
sed -i 's/daemonize yes/daemonize no/' /etc/redis/redis.conf
......@@ -8,3 +8,5 @@ minimal_apt_get_install \
#
cp -a /pd_build/runit/redis-server /etc/service/redis-server
sed -i 's/daemonize yes/daemonize no/' /etc/redis/redis.conf
......@@ -53,7 +53,6 @@ rm -rf \
/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
minimal_apt_get_install \
make \
re2c \
php7.0-dev \
#
cd /usr/local/src/
git clone https://github.com/krakjoe/apcu.git
cd apcu
phpize
./configure
make
make install
cd ../
git clone https://github.com/krakjoe/apcu-bc.git
cd apcu-bc
phpize
./configure
make
make install
echo "extension=apcu.so" > /etc/php/7.0/mods-available/apcu.ini
echo "apc.enable_cli=1" >> /etc/php/7.0/mods-available/apcu.ini
echo "apc.slam_defense=0" >> /etc/php/7.0/mods-available/apcu.ini
echo "extension=apc.so" > /etc/php/7.0/mods-available/apc.ini
ln -s /etc/php/7.0/mods-available/apcu.ini /etc/php/7.0/cli/conf.d/20-apcu.ini
# apc-bc module must be loaded *after* apcu, have a higher integer in front to enforce this
ln -s /etc/php/7.0/mods-available/apc.ini /etc/php/7.0/cli/conf.d/21-apc.ini
#!/bin/bash
set -e
source /pd_build/buildconfig
set -x
## This script is to be run after php7.0.sh.
## Install common tools
minimal_apt_get_install \
graphicsmagick \
zip \
unzip \
#
# Install composer
curl -sSL https://getcomposer.org/download/1.3.1/composer.phar -o /usr/bin/composer
chmod +x /usr/bin/composer
......@@ -5,6 +5,7 @@ set -x
minimal_apt_get_install \
build-essential \
php-apcu \
php7.0 \
php7.0-bcmath \
php7.0-bz2 \
......@@ -39,11 +40,22 @@ minimal_apt_get_install \
## Enable phar writing
sed -i s/';phar.readonly = On'/'phar.readonly = Off'/ /etc/php/7.0/cli/php.ini
/pd_build/php-apcu.sh
# Enable apc on cli for unit tests
echo "apc.enable_cli=1" >> /etc/php/7.0/mods-available/apcu.ini
echo "apc.slam_defense=0" >> /etc/php/7.0/mods-available/apcu.ini
# mssql driver
pecl install sqlsrv
echo extension=sqlsrv.so >> /etc/php/7.0/mods-available/sqlsrv.ini
phpenmod sqlsrv
/pd_build/php-finalize.sh
## Install common tools
minimal_apt_get_install \
graphicsmagick \
zip \
unzip \
#
# Install composer
curl -sSL https://getcomposer.org/download/1.3.1/composer.phar -o /usr/bin/composer
chmod +x /usr/bin/composer
......@@ -8,3 +8,5 @@ minimal_apt_get_install \
#
cp -a /pd_build/runit/redis-server /etc/service/redis-server
sed -i 's/daemonize yes/daemonize no/' /etc/redis/redis.conf
......@@ -51,7 +51,6 @@ rm -rf \
/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
minimal_apt_get_install \
make \
re2c \
php7.1-dev \
#
cd /usr/local/src/
git clone https://github.com/krakjoe/apcu.git
cd apcu
phpize
./configure
make
make install
cd ../
git clone https://github.com/krakjoe/apcu-bc.git
cd apcu-bc
phpize
./configure
make
make install
echo "extension=apcu.so" > /etc/php/7.1/mods-available/apcu.ini
echo "apc.enable_cli=1" >> /etc/php/7.1/mods-available/apcu.ini
echo "apc.slam_defense=0" >> /etc/php/7.1/mods-available/apcu.ini
echo "extension=apc.so" > /etc/php/7.1/mods-available/apc.ini
ln -s /etc/php/7.1/mods-available/apcu.ini /etc/php/7.1/cli/conf.d/20-apcu.ini
# apc-bc module must be loaded *after* apcu, have a higher integer in front to enforce this
ln -s /etc/php/7.1/mods-available/apc.ini /etc/php/7.1/cli/conf.d/21-apc.ini
#!/bin/bash
set -e
source /pd_build/buildconfig
set -x
## This script is to be run after php7.1.sh.
## Install common tools
minimal_apt_get_install \
graphicsmagick \
zip \
unzip \
#
# Install composer
curl -sSL https://getcomposer.org/download/1.3.1/composer.phar -o /usr/bin/composer
chmod +x /usr/bin/composer
......@@ -4,12 +4,16 @@ source /pd_build/buildconfig
set -x
minimal_apt_get_install \
make \
php-apcu \
php-apcu-bc \
php7.1 \
php7.1-bcmath \
php7.1-bz2 \
php7.1-cli \
php7.1-common \
php7.1-curl \
php7.1-dev \
php7.1-gd \
php7.1-gmp \
php7.1-imap \
......@@ -31,11 +35,21 @@ minimal_apt_get_install \
php-redis \
php-memcached \
php-xdebug \
re2c \
#
## Enable phar writing
sed -i s/';phar.readonly = On'/'phar.readonly = Off'/ /etc/php/7.1/cli/php.ini
/pd_build/php-apcu.sh
## Install common tools
minimal_apt_get_install \
graphicsmagick \
zip \
unzip \
#
# Install composer
curl -sSL https://getcomposer.org/download/1.3.1/composer.phar -o /usr/bin/composer
chmod +x /usr/bin/composer
/pd_build/php-finalize.sh
......@@ -8,3 +8,5 @@ minimal_apt_get_install \
#
cp -a /pd_build/runit/redis-server /etc/service/redis-server
sed -i 's/daemonize yes/daemonize no/' /etc/redis/redis.conf
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment