From 5601a07acdf30dd6c363789f92b93f47d27a2cf6 Mon Sep 17 00:00:00 2001 From: Adriano Maciel Date: Thu, 13 Jun 2024 13:41:50 -0300 Subject: [PATCH] testes com php7.4 --- Dockerfile74 | 25 +++++++++++++++++++++++++ README.md | 4 ++-- docker-compose.yml | 8 ++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 Dockerfile74 diff --git a/Dockerfile74 b/Dockerfile74 new file mode 100644 index 0000000..8453ee9 --- /dev/null +++ b/Dockerfile74 @@ -0,0 +1,25 @@ +#=======================# +# composer já instalado # +#=======================# +FROM composer:latest AS composer + +FROM php:7.4-cli + +RUN apt-get update + +RUN apt-get install -y \ + git \ + zip + +RUN yes | pecl install xdebug-3.1.5 \ + && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ + && echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ + && echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini \ + && echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/xdebug.ini + +WORKDIR /var/www/html + +# instalar composer a partir do outro container +COPY --from=composer /usr/bin/composer /usr/bin/composer + +CMD ["sh", "-c", "tail -f /dev/null"] \ No newline at end of file diff --git a/README.md b/README.md index e01300f..42a1b8f 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,11 @@ Consulta online à diversos serviços gratuitos de CEP online. [![Code Intelligence Status](https://scrutinizer-ci.com/g/adrianowead/cep-gratis/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence) ## Necessário -[![Supported PHP version](https://img.shields.io/badge/PHP->%3D%205.6-blue.svg)]() +[![Supported PHP version](https://img.shields.io/badge/PHP-%5E7.2.25_%7C%7C_%5E8.0-blue.svg)]() ## Dependências -[![Requires Guzzle](https://img.shields.io/badge/Guzzle-~6.0-lightgrey.svg)]() +[![Requires Guzzle](https://img.shields.io/badge/Guzzle->=7.8-lightgrey.svg)]() # Serviços suportados diff --git a/docker-compose.yml b/docker-compose.yml index 820d2f8..11f0108 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,14 @@ services: volumes: - ./:/var/www/html + php74: + build: + context: . + dockerfile: Dockerfile74 + container_name: php74 + volumes: + - ./:/var/www/html + php80: build: context: .