Add 'sshpass' and 'ping' packages into 'workspace' and 'php-fpm' Docker image (#2164)
* Update env-example Added variables to install 'ping' and 'sshpass' * Update docker-compose.yml Import variable from '.env' to set 'INSTALL_MYSQL_CLIENT' and 'INSTALL_PING' * Update Dockerfile Add code to import variables from 'docker-compose.yml' to install 'ping' and/or 'sshpass'
This commit is contained in:

committed by
Shao Yu-Lung (Allen)

parent
c0a36a5a4d
commit
5bf8be6303
@ -1006,6 +1006,32 @@ RUN if [ ${INSTALL_MYSQL_CLIENT} = true ]; then \
|
||||
apt-get -y install mysql-client \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
# ping:
|
||||
###########################################################################
|
||||
|
||||
USER root
|
||||
|
||||
ARG INSTALL_PING=false
|
||||
|
||||
RUN if [ ${INSTALL_PING} = true ]; then \
|
||||
apt-get update -yqq && \
|
||||
apt-get -y install inetutils-ping \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
# sshpass:
|
||||
###########################################################################
|
||||
|
||||
USER root
|
||||
|
||||
ARG INSTALL_SSHPASS=false
|
||||
|
||||
RUN if [ ${INSTALL_SSHPASS} = true ]; then \
|
||||
apt-get update -yqq && \
|
||||
apt-get -y install sshpass \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
# FFMpeg:
|
||||
###########################################################################
|
||||
|
Reference in New Issue
Block a user