Class: Pd1Tools::Php::DockerImages::V7

Inherits:
Base show all
Defined in:
lib/pd1_tools/php/docker_images/v7.rb

Direct Known Subclasses

V7V4

Constant Summary collapse

APCU_INSTALL =
<<~CODE
  RUN pecl install apcu
  RUN pecl install apcu_bc
  RUN docker-php-ext-enable apcu --ini-name 10-docker-php-ext-apcu.ini
  RUN docker-php-ext-enable apc --ini-name 20-docker-php-ext-apc.ini
CODE
MCRYPT_INSTALL =
<<~CODE
  RUN pecl install mcrypt
  RUN echo extension=mcrypt.so > "$PHP_INI_DIR/conf.d/mcrypt.ini"
CODE
PHP_VERSION =
::Gem::Version.new('7')
XDEBUG_PECL_PACKAGE =
'xdebug-3.1.6'

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 Base

#gd_options, #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, #tag_name, #tag_version

Instance Method Details

#apcu_installString

Returns:

  • (String)


24
25
26
# File 'lib/pd1_tools/php/docker_images/v7.rb', line 24

def apcu_install
  APCU_INSTALL
end

#mcrypt_installObject



28
29
30
# File 'lib/pd1_tools/php/docker_images/v7.rb', line 28

def mcrypt_install
  MCRYPT_INSTALL
end

#xdebug_pecl_packageObject



32
33
34
# File 'lib/pd1_tools/php/docker_images/v7.rb', line 32

def xdebug_pecl_package
  XDEBUG_PECL_PACKAGE
end