Class: Avmtrf1::Php::DockerImages::V7V4

Inherits:
V7 show all
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

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_optionsObject



16
17
18
19
20
21
# File 'lib/avmtrf1/php/docker_images/v7_v4.rb', line 16

def gd_options
  GD_OPTIONS
    .map { |option| gd_option_replace(option) }
    .reject { |option| GD_OPTION_REJECT.include?(option) }
    .join(' ')
end