Added ARG for workspace Memcached

This commit is contained in:
Saqib S 2021-04-05 13:46:30 +05:00
parent 258ea23b64
commit e13482195b
3 changed files with 3 additions and 1 deletions

View File

@ -168,6 +168,7 @@ services:
- INSTALL_PHPDECIMAL=${WORKSPACE_INSTALL_PHPDECIMAL} - INSTALL_PHPDECIMAL=${WORKSPACE_INSTALL_PHPDECIMAL}
- PROTOC_VERSION=${WORKSPACE_PROTOC_VERSION} - PROTOC_VERSION=${WORKSPACE_PROTOC_VERSION}
- INSTALL_DOCKER_CLIENT=${WORKSPACE_INSTALL_DOCKER_CLIENT} - INSTALL_DOCKER_CLIENT=${WORKSPACE_INSTALL_DOCKER_CLIENT}
- INSTALL_MEMCACHED=${WORKSPACE_INSTALL_MEMCACHED}
- http_proxy - http_proxy
- https_proxy - https_proxy
- no_proxy - no_proxy

View File

@ -199,6 +199,7 @@ WORKSPACE_INSTALL_LNAV=false
WORKSPACE_INSTALL_PROTOC=false WORKSPACE_INSTALL_PROTOC=false
WORKSPACE_INSTALL_PHPDECIMAL=false WORKSPACE_INSTALL_PHPDECIMAL=false
WORKSPACE_PROTOC_VERSION=latest WORKSPACE_PROTOC_VERSION=latest
WORKSPACE_INSTALL_MEMCACHED=true
### PHP_FPM ############################################### ### PHP_FPM ###############################################

View File

@ -1225,7 +1225,7 @@ RUN if [ ${INSTALL_TERRAFORM} = true ]; then \
# Memcached Dependecies: # Memcached Dependecies:
########################################################################### ###########################################################################
RUN if [ ${PHP_FPM_INSTALL_MEMCACHED} = true ]; then \ RUN if [ ${WORKSPACE_INSTALL_MEMCACHED} = true ]; then \
apt-get -y install php${LARADOCK_PHP_VERSION}-igbinary \ apt-get -y install php${LARADOCK_PHP_VERSION}-igbinary \
&& apt-get -y install php${LARADOCK_PHP_VERSION}-memcached \ && apt-get -y install php${LARADOCK_PHP_VERSION}-memcached \
;fi ;fi