workspace add inotify and fswatch (#2059)
This commit is contained in:
		
				
					committed by
					
						
						Shao Yu-Lung (Allen)
					
				
			
			
				
	
			
			
			
						parent
						
							c8b526be13
						
					
				
				
					commit
					1f22e86d92
				
			@@ -446,6 +446,31 @@ RUN if [ ${INSTALL_LIBPNG} = true ]; then \
 | 
			
		||||
    apt-get install libpng16-16 \
 | 
			
		||||
;fi
 | 
			
		||||
 | 
			
		||||
###########################################################################
 | 
			
		||||
# Inotify EXTENSION:
 | 
			
		||||
###########################################################################
 | 
			
		||||
 | 
			
		||||
ARG INSTALL_INOTIFY=false
 | 
			
		||||
 | 
			
		||||
RUN if [ ${INSTALL_INOTIFY} = true ]; then \
 | 
			
		||||
    pecl -q install inotify && \
 | 
			
		||||
    echo "extension=inotify.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini && \
 | 
			
		||||
    ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-inotify.ini \
 | 
			
		||||
;fi
 | 
			
		||||
 | 
			
		||||
###########################################################################
 | 
			
		||||
# fswatch
 | 
			
		||||
###########################################################################
 | 
			
		||||
 | 
			
		||||
ARG INSTALL_FSWATCH=false
 | 
			
		||||
 | 
			
		||||
RUN if [ ${INSTALL_FSWATCH} = true ]; then \
 | 
			
		||||
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 47FE03C1 \
 | 
			
		||||
    && add-apt-repository -y ppa:hadret/fswatch \
 | 
			
		||||
    || apt-get update -yqq \
 | 
			
		||||
    && apt-get -y install fswatch \
 | 
			
		||||
;fi
 | 
			
		||||
 | 
			
		||||
###########################################################################
 | 
			
		||||
# IonCube Loader
 | 
			
		||||
###########################################################################
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user