mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:34:04 +00:00
Laravel 7 support (#304)
* Laravel 7 support * Remove language from travis.yml * Fix travis.yml * Consistent indentation in travis.yml * Use dev-master for phpcov * Cleanup * switch up envs * verify both laravel versions are used * 6 -> 7 * Fix travis yml * Use stable phpcov * Different installation for Laravel 7 * Indentation * Fix dockerfile * Fix indentation * Fix tests * Remove fail() calls
This commit is contained in:
parent
526f0826a4
commit
30bab68b6a
9 changed files with 218 additions and 37 deletions
31
Dockerfile
31
Dockerfile
|
|
@ -4,32 +4,35 @@ LABEL maintainer="Samuel Štancl"
|
|||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y curl zip unzip git sqlite3 \
|
||||
php7.2-fpm php7.2-cli \
|
||||
php7.2-pgsql php7.2-sqlite3 php7.2-gd \
|
||||
php7.2-curl php7.2-memcached \
|
||||
php7.2-imap php7.2-mysql php7.2-mbstring \
|
||||
php7.2-xml php7.2-zip php7.2-bcmath php7.2-soap \
|
||||
php7.2-intl php7.2-readline php7.2-xdebug \
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y software-properties-common
|
||||
RUN add-apt-repository -y ppa:ondrej/php
|
||||
|
||||
RUN apt-get install -y curl zip unzip git sqlite3 \
|
||||
php7.4-fpm php7.4-cli \
|
||||
php7.4-pgsql php7.4-sqlite3 php7.4-gd \
|
||||
php7.4-curl php7.4-memcached \
|
||||
php7.4-imap php7.4-mysql php7.4-mbstring \
|
||||
php7.4-xml php7.4-zip php7.4-bcmath php7.4-soap \
|
||||
php7.4-intl php7.4-readline php7.4-xdebug \
|
||||
php-msgpack php-igbinary \
|
||||
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
|
||||
&& mkdir /run/php
|
||||
|
||||
RUN apt-get install -y python3
|
||||
|
||||
RUN apt-get install -y php7.2-dev php-pear
|
||||
RUN apt-get install -y php7.4-dev php-pear
|
||||
|
||||
RUN pecl install redis-4.3.0
|
||||
RUN echo "extension=redis.so" > /etc/php/7.2/mods-available/redis.ini
|
||||
RUN ln -sf /etc/php/7.2/mods-available/redis.ini /etc/php/7.2/fpm/conf.d/20-redis.ini
|
||||
RUN ln -sf /etc/php/7.2/mods-available/redis.ini /etc/php/7.2/cli/conf.d/20-redis.ini
|
||||
RUN echo "extension=redis.so" > /etc/php/7.4/mods-available/redis.ini
|
||||
RUN ln -sf /etc/php/7.4/mods-available/redis.ini /etc/php/7.4/fpm/conf.d/20-redis.ini
|
||||
RUN ln -sf /etc/php/7.4/mods-available/redis.ini /etc/php/7.4/cli/conf.d/20-redis.ini
|
||||
|
||||
RUN pecl install xdebug
|
||||
RUN echo 'zend_extension=/usr/lib/php/20170718/xdebug.so' > /etc/php/7.2/cli/conf.d/20-xdebug.ini
|
||||
RUN echo 'zend_extension=/usr/lib/php/20190902/xdebug.so' > /etc/php/7.4/cli/conf.d/20-xdebug.ini
|
||||
|
||||
RUN apt-get -y autoremove \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
WORKDIR /var/www/html
|
||||
WORKDIR /var/www/html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue