Class: Avmtrf1::Php::DockerImages::V7V4
- Inherits:
-
V7
- Object
- Avm::Docker::Image
- Docker::Image
- Base
- V7
- Avmtrf1::Php::DockerImages::V7V4
- Defined in:
- lib/avmtrf1/php/docker_images/v7_v4.rb
Constant Summary collapse
- GD_OPTION_PARSER =
/\A(.+)-dir\z/.to_parser do |m| m[1] end
- GD_OPTION_REJECT =
%w[--with-gd --with-png --with-zlib].freeze
Constants inherited from V7
Avmtrf1::Php::DockerImages::V7::MCRYPT_INSTALL, Avmtrf1::Php::DockerImages::V7::XDEBUG_PECL_PACKAGE
Constants inherited from Base
Base::GD_OPTIONS, Base::PLATFORM_STEREOTYPE_TAG
Instance Method Summary collapse
- #gd_option_replace(option) ⇒ Object
-
#gd_options ⇒ Object
ReferĂȘncia: github.com/docker-library/php/issues/912.
Methods inherited from V7
#mcrypt_install, #xdebug_pecl_package
Methods inherited from Base
#platform_stereotype_tag, #write_in_provide_dir
Methods inherited from Docker::Image
#generator_version, #platform_stereotype_tag, #stereotype_tag
Instance Method Details
#gd_option_replace(option) ⇒ Object
23 24 25 |
# File 'lib/avmtrf1/php/docker_images/v7_v4.rb', line 23 def gd_option_replace(option) GD_OPTION_PARSER.parse(option).if_present(option) end |
#gd_options ⇒ Object
ReferĂȘncia: github.com/docker-library/php/issues/912
16 17 18 19 20 21 |
# File 'lib/avmtrf1/php/docker_images/v7_v4.rb', line 16 def GD_OPTIONS .map { |option| gd_option_replace(option) } .reject { |option| GD_OPTION_REJECT.include?(option) } .join(' ') end |