pd1_tools 0.45.2 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 305e3271b5a66c20ab4141ea5bd0bf80d6e7efa1dfa1f04fafe29cc5f29ea603
4
- data.tar.gz: 8a6ec1d717caed34a7bdb2431f57b4b5717dcd86b5a41879a19e7e8e0fbd815f
3
+ metadata.gz: 72f5f688393e0830da04eb3677b9a6bd1118680df5f2342ebce5c583cc2ad4df
4
+ data.tar.gz: eceaab0236a48e42926cb3c0377434ead9cabe870abecc15918aed3c946ad014
5
5
  SHA512:
6
- metadata.gz: 0f727b46f91027f9f3caad8e463a49df99bf88fb120e99ff15c9ec34c7a7b838c9b10282abd4e6b421cace9e614e40d68e57e1e8f03e4c1954bd9b3ec36f67d0
7
- data.tar.gz: ae72bce282916b9293f705f583afd343ded9ba73853587b92179c5dbb55d5e8b7d252e7c64081163d123186ca181fda5cb952f1da1253e33948f1abb665d196b
6
+ metadata.gz: a54f3cc1466a53a1e6502e7c154f47051ff46a129ee5946d6e4f7ad349c7f921283d113ec10cc4dde63ffb1d59fd09f3fb34e3ca6e17a38134009e8e1bac5f73
7
+ data.tar.gz: 70b66ded731c596f144d25003e2a1005b3a3ca51ec8849da978d67bb01c4786f5e946fd8e27235b9bb65cb6dd8fcfd9958ac4a5ca4415718f5fb83a669b13a26
@@ -9,7 +9,7 @@ module Pd1Tools
9
9
  module DockerImages
10
10
  class Base < ::Pd1Tools::Docker::Image
11
11
  enable_abstract_methods
12
- abstract_methods :mcrypt_install, :xdebug_pecl_package
12
+ abstract_methods :apcu_install, :mcrypt_install, :xdebug_pecl_package
13
13
 
14
14
  GD_OPTIONS = %w[--with-gd --with-webp-dir --with-jpeg-dir --with-png-dir --with-zlib-dir
15
15
  --with-xpm-dir --with-freetype-dir].freeze
@@ -7,6 +7,10 @@ module Pd1Tools
7
7
  module Php
8
8
  module DockerImages
9
9
  class V5 < ::Pd1Tools::Php::DockerImages::Base
10
+ APCU_INSTALL = <<~CODE
11
+ RUN pecl install apcu-4.0.11
12
+ RUN docker-php-ext-enable apcu
13
+ CODE
10
14
  MCRYPT_INSTALL = <<~CODE
11
15
  RUN docker-php-ext-install mcrypt
12
16
  CODE
@@ -23,6 +27,11 @@ module Pd1Tools
23
27
  rm -rf /tmp/xdebug
24
28
  CODE
25
29
 
30
+ # @return [String]
31
+ def apcu_install
32
+ APCU_INSTALL
33
+ end
34
+
26
35
  # @return [String]
27
36
  def apt_setup
28
37
  debian_stretch_apt_setup
@@ -7,6 +7,12 @@ module Pd1Tools
7
7
  module Php
8
8
  module DockerImages
9
9
  class V7 < ::Pd1Tools::Php::DockerImages::Base
10
+ APCU_INSTALL = <<~CODE
11
+ RUN pecl install apcu
12
+ RUN pecl install apcu_bc
13
+ RUN docker-php-ext-enable apcu --ini-name 10-docker-php-ext-apcu.ini
14
+ RUN docker-php-ext-enable apc --ini-name 20-docker-php-ext-apc.ini
15
+ CODE
10
16
  MCRYPT_INSTALL = <<~CODE
11
17
  RUN pecl install mcrypt
12
18
  RUN echo extension=mcrypt.so > "$PHP_INI_DIR/conf.d/mcrypt.ini"
@@ -14,6 +20,11 @@ module Pd1Tools
14
20
  PHP_VERSION = ::Gem::Version.new('7')
15
21
  XDEBUG_PECL_PACKAGE = 'xdebug-3.1.6'
16
22
 
23
+ # @return [String]
24
+ def apcu_install
25
+ APCU_INSTALL
26
+ end
27
+
17
28
  def mcrypt_install
18
29
  MCRYPT_INSTALL
19
30
  end
@@ -7,9 +7,18 @@ module Pd1Tools
7
7
  module Php
8
8
  module DockerImages
9
9
  class V8 < ::Pd1Tools::Php::DockerImages::V7V4
10
+ APCU_INSTALL = <<~CODE
11
+ RUN pecl install apcu
12
+ RUN docker-php-ext-enable apcu
13
+ CODE
10
14
  PHP_VERSION = ::Gem::Version.new('8')
11
15
  XDEBUG_PECL_PACKAGE = 'xdebug'
12
16
 
17
+ # @return [String]
18
+ def apcu_install
19
+ APCU_INSTALL
20
+ end
21
+
13
22
  def xdebug_pecl_package
14
23
  XDEBUG_PECL_PACKAGE
15
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pd1Tools
4
- VERSION = '0.45.2'
4
+ VERSION = '0.46.0'
5
5
  end
@@ -5,6 +5,9 @@ FROM php:%%PLATFORM_VERSION%%-apache
5
5
  # Apache HTTP
6
6
  RUN a2enmod rewrite
7
7
 
8
+ # Extensão PHP "apcu"
9
+ %%APCU_INSTALL%%
10
+
8
11
  # Extensão PHP "bcmath"
9
12
  RUN docker-php-ext-install bcmath
10
13
 
@@ -18,7 +21,7 @@ RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev libwebp-d
18
21
  RUN docker-php-ext-configure gd %%GD_OPTIONS%%
19
22
  RUN docker-php-ext-install gd
20
23
 
21
- # Extensão PHP "intl"
24
+ # Extensão PHP "imap"
22
25
  RUN apt-get install -y libc-client-dev libkrb5-dev
23
26
  RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl
24
27
  RUN docker-php-ext-install imap
@@ -36,37 +39,10 @@ RUN docker-php-ext-install ldap
36
39
  RUN apt-get install -y libmcrypt-dev
37
40
  %%MCRYPT_INSTALL%%
38
41
 
39
- # Extensão PHP "pcntl"
40
- RUN docker-php-ext-install pcntl
41
-
42
- # Extensão PHP "snmp"
43
- RUN apt-get install -y libsnmp-dev snmp
44
- RUN docker-php-ext-install snmp
45
-
46
- # Extensão PHP "soap"
47
- RUN apt-get install -y libxml2-dev
48
- RUN docker-php-ext-install soap
49
-
50
- # Extensão PHP "xdebug"
51
- %%XDEBUG_INSTALL%%
52
- RUN docker-php-ext-enable xdebug
53
-
54
- # Extensão PHP "xsl"
55
- RUN apt-get install -y libxslt1-dev
56
- RUN docker-php-ext-install xsl
57
-
58
- # Extensão PHP "zip"
59
- RUN apt-get install -y libzip-dev
60
- RUN docker-php-ext-install zip
61
-
62
- # Extensões MySql
63
- RUN docker-php-ext-install mysqli pdo_mysql
64
-
65
- # Extensões PHP PostgreSQL
66
- RUN apt-get install -y libpq-dev
67
- RUN docker-php-ext-install pdo_pgsql pgsql
42
+ # Extensão PHP "mysqli"
43
+ RUN docker-php-ext-install mysqli
68
44
 
69
- # Extensão PHP oci
45
+ # Extensão PHP "oci8"
70
46
  RUN apt-get install -y libarchive-tools libaio1
71
47
  RUN curl -sS https://raw.githubusercontent.com/caffeinalab/php-fpm-oci8/master/oracle/instantclient-basic-linux.x64-12.2.0.1.0.zip | bsdtar -xvf- -C /usr/local
72
48
  RUN curl -sS https://raw.githubusercontent.com/caffeinalab/php-fpm-oci8/master/oracle/instantclient-sdk-linux.x64-12.2.0.1.0.zip | bsdtar -xvf- -C /usr/local
@@ -78,6 +54,12 @@ RUN ln -s /usr/local/instantclient/sqlplus /usr/bin/sqlplus
78
54
  RUN docker-php-ext-configure oci8 --with-oci8=instantclient,/usr/local/instantclient
79
55
  RUN docker-php-ext-install oci8
80
56
 
57
+ # Extensão PHP "pcntl"
58
+ RUN docker-php-ext-install pcntl
59
+
60
+ # Extensão PHP "pdo_mysql"
61
+ RUN docker-php-ext-install pdo_mysql
62
+
81
63
  # Extensão PHP pdo_oci
82
64
  RUN mkdir /tmp/php_source
83
65
  RUN curl %%PHP_DIST_CURL_ARGS%% | \
@@ -90,6 +72,33 @@ RUN make install
90
72
  RUN echo extension=pdo_oci.so > "$PHP_INI_DIR/conf.d/pdo_oci.ini"
91
73
  RUN echo 'date.timezone = "America/Sao_Paulo"' >> "$PHP_INI_DIR/php.ini"
92
74
 
75
+ # Extensão PHP "pdo_pgsql"
76
+ RUN apt-get install -y libpq-dev
77
+ RUN docker-php-ext-install pdo_pgsql
78
+
79
+ # Extensão PHP "pgsql"
80
+ RUN docker-php-ext-install pgsql
81
+
82
+ # Extensão PHP "snmp"
83
+ RUN apt-get install -y libsnmp-dev snmp
84
+ RUN docker-php-ext-install snmp
85
+
86
+ # Extensão PHP "soap"
87
+ RUN apt-get install -y libxml2-dev
88
+ RUN docker-php-ext-install soap
89
+
90
+ # Extensão PHP "xdebug"
91
+ %%XDEBUG_INSTALL%%
92
+ RUN docker-php-ext-enable xdebug
93
+
94
+ # Extensão PHP "xsl"
95
+ RUN apt-get install -y libxslt1-dev
96
+ RUN docker-php-ext-install xsl
97
+
98
+ # Extensão PHP "zip"
99
+ RUN apt-get install -y libzip-dev
100
+ RUN docker-php-ext-install zip
101
+
93
102
  # Composer
94
103
  RUN apt-get install -y git unzip
95
104
  RUN curl -sS https://getcomposer.org/installer | \
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pd1_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.2
4
+ version: 0.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo H. Bogoni
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-10 00:00:00.000000000 Z
11
+ date: 2025-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers