Add pecl before mongo install
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							615cb72eab
						
					
				
				
					commit
					3f7988060e
				
			@@ -189,6 +189,7 @@ ARG INSTALL_MONGO=false
 | 
			
		||||
ENV INSTALL_MONGO ${INSTALL_MONGO}
 | 
			
		||||
RUN if [ ${INSTALL_MONGO} = true ]; then \
 | 
			
		||||
    # Install the mongodb extension
 | 
			
		||||
    pecl channel-update pecl.php.net && \
 | 
			
		||||
    pecl install mongodb && \
 | 
			
		||||
    echo "extension=mongodb.so" >> /etc/php/5.6/mods-available/mongodb.ini && \
 | 
			
		||||
    ln -s /etc/php/5.6/mods-available/mongodb.ini /etc/php/5.6/cli/conf.d/30-mongodb.ini \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user