Adding Composer into PHP
This commit is contained in:
		
							parent
							
								
									6597d12906
								
							
						
					
					
						commit
						a59e71ef35
					
				
					 3 changed files with 6 additions and 2 deletions
				
			
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
DOCKER=docker
 | 
			
		||||
VERSION=2020.09-1
 | 
			
		||||
VERSION=2020.09-2
 | 
			
		||||
 | 
			
		||||
all: build
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -70,6 +70,10 @@ make install
 | 
			
		|||
mkdir -p /opt/techs/php-$VERSION/etc/conf.d/
 | 
			
		||||
ln -s /srv/conf/php-fpm/php.ini /opt/techs/php-$VERSION/etc/conf.d/app.ini
 | 
			
		||||
 | 
			
		||||
cd /opt/techs/php-$VERSION/bin
 | 
			
		||||
curl -s https://getcomposer.org/installer | ./php -d allow_url_fopen=On
 | 
			
		||||
cd -
 | 
			
		||||
 | 
			
		||||
echo "no" | /opt/techs/php-$VERSION/bin/pecl install redis
 | 
			
		||||
 | 
			
		||||
echo "extension=redis.so" > /opt/techs/php-$VERSION/etc/conf.d/extensions.ini
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
export PATH=/srv/bin/primary_tech:/srv/bin/primary_tech/sbin:$PATH:/usr/sbin:/sbin
 | 
			
		||||
export PATH=/srv/bin/primary_tech:/srv/bin/primary_tech/sbin:/srv/bin:$PATH:/usr/sbin:/sbin
 | 
			
		||||
 | 
			
		||||
# Use only if the shell is opened via SSH
 | 
			
		||||
if [ -n "$SSH_TTY" ]; then
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue