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

Inherits:
V7 show all
Defined in:
lib/avmtrf1/php/docker_images/v7_v4.rb

Direct Known Subclasses

V8

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
PHP_VERSION =
::Gem::Version.new('7.4')

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

Constants inherited from Docker::Image

Docker::Image::APT_SETUP, Docker::Image::DEBIAN_STRETCH_APT_SETUP, Docker::Image::DEBIAN_STRETCH_FIX_SOURCES

Instance Method Summary collapse

Methods inherited from V7

#mcrypt_install, #xdebug_pecl_package

Methods inherited from Base

#php_dist_curl_args, php_version, #platform_stereotype_tag, #write_in_provide_dir, #xdebug_install

Methods inherited from Docker::Image

#apt_setup, #debian_stretch_apt_setup, #generator_version, #platform_stereotype_tag, #stereotype_tag

Instance Method Details

#gd_option_replace(option) ⇒ Object



24
25
26
# File 'lib/avmtrf1/php/docker_images/v7_v4.rb', line 24

def gd_option_replace(option)
  GD_OPTION_PARSER.parse(option).if_present(option)
end

#gd_optionsObject



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

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