-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from temafey/add-docker-remove-broadway-add-mic…
…ro-broadway added docker, removed broadway/broadway, added micro-module/broadway
- Loading branch information
Showing
8 changed files
with
80 additions
and
80 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
ARG PHP_VER | ||
|
||
FROM php:8.0-cli-alpine3.13 | ||
|
||
RUN apk update | ||
RUN apk add --no-cache bash | ||
RUN apk add --no-cache build-base | ||
RUN apk add --no-cache autoconf | ||
RUN apk add --no-cache automake | ||
|
||
RUN apk add --no-cache --upgrade bash && \ | ||
apk add libpq zip unzip tree | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
RUN mkdir /.composer_cache | ||
ENV COMPOSER_CACHE_DIR /.composer_cache | ||
|
||
# curl for cmd | ||
RUN apk add --no-cache curl | ||
|
||
#develop layer | ||
RUN pecl install xdebug | ||
RUN docker-php-ext-enable xdebug | ||
|
||
# bcmath | ||
RUN docker-php-ext-install bcmath | ||
RUN docker-php-ext-enable bcmath | ||
|
||
# intl | ||
RUN apk add --no-cache icu-dev | ||
RUN docker-php-ext-install intl | ||
RUN docker-php-ext-enable intl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
# This file is a "template" of which env vars need to be defined for your application | ||
# Copy this file to .env file for development, create environment variables when deploying to production | ||
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration | ||
|
||
###> symfony/framework-bundle ### | ||
APP_ENV=dev | ||
APP_SECRET=secret | ||
###< symfony/framework-bundle ### | ||
|
||
###> common variables ### | ||
MICROTSK_COMPOSE_PROJECT_NAME=micro-task | ||
MICROTASK_COMPOSE_PROJECT_NAME=micro-task | ||
CI_COMMIT_REF_SLUG=master | ||
###< common variables ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
###> common variables ### | ||
MICROTASK_COMPOSE_PROJECT_NAME=micro-task | ||
CI_COMMIT_REF_SLUG=master | ||
PHP_VER=8.0 | ||
###< common variables ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html --> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd" | ||
backupGlobals="false" | ||
colors="true" | ||
bootstrap="vendor/autoload.php" | ||
> | ||
<php> | ||
<ini name="error_reporting" value="-1" /> | ||
<env name="APP_ENV" value="test" /> | ||
<env name="APP_DEBUG" value="1" /> | ||
<env name="MICRODTO_COMPOSE_PROJECT_NAME" value="micro-module-command-bus" /> | ||
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0" /> | ||
</php> | ||
|
||
<testsuites> | ||
<testsuite name="unit-tests"> | ||
<directory>tests/unit</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<logging> | ||
<log type="coverage-html" target="var/report/html" lowUpperBound="35" highLowerBound="70"/> | ||
</logging> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="vendor/autoload.php"> | ||
<coverage> | ||
<report> | ||
<html outputDirectory="var/report/html" lowUpperBound="35" highLowerBound="70"/> | ||
</report> | ||
</coverage> | ||
<php> | ||
<ini name="error_reporting" value="-1"/> | ||
<env name="APP_ENV" value="test"/> | ||
<env name="APP_DEBUG" value="1"/> | ||
<env name="MICROTASK_COMPOSE_PROJECT_NAME" value="micro-task"/> | ||
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="unit-tests"> | ||
<directory>tests/unit</directory> | ||
</testsuite> | ||
</testsuites> | ||
<logging/> | ||
</phpunit> |