mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 08:24:04 +00:00
* Use action services and setup-php in workflow
* Fix codecov
* exclude master from CI
* Add space after 'up' in 'docker-compose up-d' (#900)
* Fix ArgumentCountError on the TenantAssetsController (#894)
* Fix ArgumentCount exception on the TenantAssetsController when no `$path` is provided
* CS
* CS
* Handle null case explicitly
* code style
Co-authored-by: Bram Wubs <bram@sibi.nl>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
* Improve Dockerfile and use it in CI
* Update Dockerfile
* mssql CI health check
* cache key
* Update ci.yml
* Update ci.yml
* Update composer.json
* register dumcommand when L8
* Update ci.yml
* Update composer.json
* Update composer.json
* Update composer.json
* wip
* removed extensions config and php version from matrix
* introduce php-cs-fixer issue for testing
* Fix code style (php-cs-fixer)
* install composer in Docker and remove setup-php step
* added pcov for coverage
* on master branch
* composer test command
* tests above services
* Update ci.yml
* Revert "register dumcommand when L8"
This reverts commit f165fc58ba.
* removed composer cache dependencies
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: lukinovec <lukinovec@gmail.com>
Co-authored-by: Bram Wubs <megawubs@users.noreply.github.com>
Co-authored-by: Bram Wubs <bram@sibi.nl>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: Abrar Ahmad <abrar.dev99@gmail.com>
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
41 lines
1.8 KiB
Docker
41 lines
1.8 KiB
Docker
# add amd64 platform to support Mac M1
|
|
FROM --platform=linux/amd64 shivammathur/node:latest-amd64
|
|
|
|
ARG PHP_VERSION=8.1
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
LABEL org.opencontainers.image.source=https://github.com/stancl/tenancy \
|
|
org.opencontainers.image.vendor="Samuel Štancl" \
|
|
org.opencontainers.image.licenses="MIT" \
|
|
org.opencontainers.image.title="PHP ${PHP_VERSION} with modules for laravel support" \
|
|
org.opencontainers.image.description="PHP ${PHP_VERSION} with a set of php/os packages suitable for running Laravel apps"
|
|
|
|
# our default timezone and langauge
|
|
ENV TZ=Europe/London
|
|
ENV LANG=en_GB.UTF-8
|
|
|
|
# install MYSSQL ODBC Driver
|
|
RUN apt-get update \
|
|
&& apt-get install -y gnupg2 \
|
|
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
|
|
&& curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/mssql-release.list \
|
|
&& apt-get update \
|
|
&& ACCEPT_EULA=Y apt-get install -y unixodbc-dev msodbcsql17
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends libhiredis0.14 libjemalloc2 liblua5.1-0 lua-bitop lua-cjson redis redis-server redis-tools
|
|
|
|
RUN pecl install redis-5.3.7 sqlsrv pdo_sqlsrv pcov \
|
|
&& printf "; priority=20\nextension=redis.so\n" > /etc/php/$PHP_VERSION/mods-available/redis.ini \
|
|
&& printf "; priority=20\nextension=sqlsrv.so\n" > /etc/php/$PHP_VERSION/mods-available/sqlsrv.ini \
|
|
&& printf "; priority=30\nextension=pdo_sqlsrv.so\n" > /etc/php/$PHP_VERSION/mods-available/pdo_sqlsrv.ini \
|
|
&& printf "; priority=40\nextension=pcov.so\n" > /etc/php/$PHP_VERSION/mods-available/pcov.ini \
|
|
&& phpenmod -v $PHP_VERSION redis sqlsrv pdo_sqlsrv pcov
|
|
|
|
# install composer
|
|
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
|
|
|
|
# set the system timezone
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
|
|
&& echo $TZ > /etc/timezone
|