Class: Avmtrf1::Php::DockerImages::Base

Inherits:
Docker::Image
  • Object
show all
Defined in:
lib/avmtrf1/php/docker_images/base.rb

Direct Known Subclasses

V5, V7

Constant Summary collapse

GD_OPTIONS =
%w[--with-gd --with-webp-dir --with-jpeg-dir --with-png-dir --with-zlib-dir
--with-xpm-dir --with-freetype-dir].freeze
PLATFORM_STEREOTYPE_TAG =
'php'

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Docker::Image

#generator_version, #stereotype_tag

Class Method Details

.php_versionGem::Version

Returns:

  • (Gem::Version)


20
21
22
# File 'lib/avmtrf1/php/docker_images/base.rb', line 20

def php_version
  const_get('PHP_VERSION')
end

Instance Method Details

#gd_optionsObject



33
34
35
# File 'lib/avmtrf1/php/docker_images/base.rb', line 33

def gd_options
  GD_OPTIONS.join(' ')
end

#platform_stereotype_tagObject



25
26
27
# File 'lib/avmtrf1/php/docker_images/base.rb', line 25

def platform_stereotype_tag
  PLATFORM_STEREOTYPE_TAG
end

#write_in_provide_dirObject



29
30
31
# File 'lib/avmtrf1/php/docker_images/base.rb', line 29

def write_in_provide_dir
  ::Avmtrf1::Php::DockerImages::Base.template.apply(self, provide_dir)
end