-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dbcab12
commit 5a8b2fa
Showing
12 changed files
with
191 additions
and
51 deletions.
There are no files selected for viewing
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,15 @@ | ||
FROM php:8.1-cli | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y libpq-dev && \ | ||
docker-php-ext-install pdo_mysql pdo_pgsql | ||
|
||
RUN apt-get -y install gpg && \ | ||
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg && \ | ||
curl https://packages.microsoft.com/config/debian/12/prod.list | tee /etc/apt/sources.list.d/mssql-release.list && \ | ||
apt-get update && \ | ||
ACCEPT_EULA=Y apt-get -y install msodbcsql18 unixodbc-dev && \ | ||
pecl install sqlsrv pdo_sqlsrv && \ | ||
docker-php-ext-enable sqlsrv pdo_sqlsrv | ||
|
||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer |
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,15 @@ | ||
FROM php:8.2-cli | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y libpq-dev && \ | ||
docker-php-ext-install pdo_mysql pdo_pgsql | ||
|
||
RUN apt-get -y install gpg && \ | ||
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg && \ | ||
curl https://packages.microsoft.com/config/debian/12/prod.list | tee /etc/apt/sources.list.d/mssql-release.list && \ | ||
apt-get update && \ | ||
ACCEPT_EULA=Y apt-get -y install msodbcsql18 unixodbc-dev && \ | ||
pecl install sqlsrv pdo_sqlsrv && \ | ||
docker-php-ext-enable sqlsrv pdo_sqlsrv | ||
|
||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer |
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,15 @@ | ||
FROM php:8.3-cli | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y libpq-dev && \ | ||
docker-php-ext-install pdo_mysql pdo_pgsql | ||
|
||
RUN apt-get -y install gpg && \ | ||
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg && \ | ||
curl https://packages.microsoft.com/config/debian/12/prod.list | tee /etc/apt/sources.list.d/mssql-release.list && \ | ||
apt-get update && \ | ||
ACCEPT_EULA=Y apt-get -y install msodbcsql18 unixodbc-dev && \ | ||
pecl install sqlsrv pdo_sqlsrv && \ | ||
docker-php-ext-enable sqlsrv pdo_sqlsrv | ||
|
||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer |
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,7 +1,9 @@ | ||
/.github export-ignore | ||
/tests export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.scrutinizer.yml export-ignore | ||
phpstan.neon.dist export-ignore | ||
phpunit.xml.dist export-ignore | ||
/.docker export-ignore | ||
/.github export-ignore | ||
/tests export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.scrutinizer.yml export-ignore | ||
docker-compose.yml export-ignore | ||
phpstan.neon.dist export-ignore | ||
phpunit.xml.dist export-ignore |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/vendor | ||
.php-cs-fixer.cache | ||
composer.lock | ||
docker-compose.override.yml |
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,77 @@ | ||
version: '3.8' | ||
|
||
services: | ||
php81: | ||
build: | ||
context: . | ||
dockerfile: .docker/php81.Dockerfile | ||
working_dir: /var/www/html | ||
networks: | ||
- test | ||
volumes: | ||
- .:/var/www/html:delegated | ||
php82: | ||
build: | ||
context: . | ||
dockerfile: .docker/php82.Dockerfile | ||
working_dir: /var/www/html | ||
networks: | ||
- test | ||
volumes: | ||
- .:/var/www/html:delegated | ||
php83: | ||
build: | ||
context: . | ||
dockerfile: .docker/php83.Dockerfile | ||
working_dir: /var/www/html | ||
networks: | ||
- test | ||
volumes: | ||
- .:/var/www/html:delegated | ||
mysql: | ||
image: 'mysql:latest' | ||
ports: | ||
- '3306:3306' | ||
environment: | ||
MYSQL_ROOT_PASSWORD: password | ||
MYSQL_DATABASE: test | ||
networks: | ||
- test | ||
mariadb: | ||
image: 'mariadb:latest' | ||
ports: | ||
- '33060:3306' | ||
environment: | ||
MYSQL_ROOT_PASSWORD: password | ||
MYSQL_DATABASE: test | ||
networks: | ||
- test | ||
pgsql: | ||
image: 'postgres:latest' | ||
ports: | ||
- '5432:5432' | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: password | ||
POSTGRES_DB: test | ||
networks: | ||
- test | ||
sqlsrv: | ||
image: 'mcr.microsoft.com/mssql/server:2019-latest' | ||
ports: | ||
- '1433:1433' | ||
environment: | ||
ACCEPT_EULA: Y | ||
SA_PASSWORD: Password! | ||
healthcheck: | ||
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$${SA_PASSWORD}" -Q "SELECT 1" -b -o /dev/null | ||
interval: 10s | ||
timeout: 3s | ||
retries: 10 | ||
start_period: 10s | ||
networks: | ||
- test | ||
|
||
networks: | ||
test: | ||
driver: bridge |
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
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
Oops, something went wrong.