mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-14 17:56:13 +01:00
tea/.gitlab/build/docker_install.sh

15 lines
604 B
Bash

#!/bin/bash
[[ ! -e /.dockerenv ]] && exit 0
set -xe
apt-get update -yqq
apt-get install git libzip-dev unzip parallel libxml2-utils wget wait-for-it libicu-dev -yqq
php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/ --filename=composer
chmod +x /usr/local/bin/composer
docker-php-ext-install pdo_mysql zip mysqli intl
cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
awk '/^error_reporting = E_ALL/{print "error_reporting = E_ALL & ~E_DEPRECATED"; next}1' /usr/local/etc/php/php.ini > temp.ini && mv temp.ini /usr/local/etc/php/php.ini