Class: Pd1Tools::Php::DockerImages::V5

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

Constant Summary collapse

APCU_INSTALL =
<<~CODE
  RUN pecl install apcu-4.0.11
  RUN docker-php-ext-enable apcu
CODE
MCRYPT_INSTALL =
<<~CODE
  RUN docker-php-ext-install mcrypt
CODE
XDEBUG_INSTALL =
<<~CODE
  RUN apt-get install -y git
  RUN cd /tmp && \
    git clone https://github.com/xdebug/xdebug.git && \
    cd xdebug && \
    git checkout XDEBUG_2_5_5 && \
    phpize && \
    ./configure --enable-xdebug && \
    make && \
    make install && \
    rm -rf /tmp/xdebug
CODE

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_version, #platform_stereotype_tag, #write_in_provide_dir

Methods inherited from Docker::Image

#debian_stretch_apt_setup, #generator_version, #platform_stereotype_tag, #stereotype_tag

Instance Method Details

#apcu_installString

Returns:

  • (String)


31
32
33
# File 'lib/pd1_tools/php/docker_images/v5.rb', line 31

def apcu_install
  APCU_INSTALL
end

#apt_setupString

Returns:

  • (String)


36
37
38
# File 'lib/pd1_tools/php/docker_images/v5.rb', line 36

def apt_setup
  debian_stretch_apt_setup
end

#mcrypt_installObject



45
46
47
# File 'lib/pd1_tools/php/docker_images/v5.rb', line 45

def mcrypt_install
  MCRYPT_INSTALL
end

#php_dist_curl_argsString

Returns:

  • (String)


41
42
43
# File 'lib/pd1_tools/php/docker_images/v5.rb', line 41

def php_dist_curl_args
  "--insecure #{super}"
end

#xdebug_installString

Returns:

  • (String)


50
51
52
# File 'lib/pd1_tools/php/docker_images/v5.rb', line 50

def xdebug_install
  XDEBUG_INSTALL
end