Initial
This commit is contained in:
		
						commit
						470a4692e7
					
				
							
								
								
									
										10
									
								
								dev/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								dev/Dockerfile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
FROM ubuntu:18.04
 | 
			
		||||
 | 
			
		||||
WORKDIR /data
 | 
			
		||||
RUN apt-get update &&  DEBIAN_FRONTEND=noninteractive apt-get install -y apache2 libapache2-mod-php
 | 
			
		||||
 | 
			
		||||
RUN rm /etc/apache2/sites-enabled/000-default.conf
 | 
			
		||||
RUN ln -s /data/dev/apache.conf /etc/apache2/sites-enabled/
 | 
			
		||||
RUN a2enmod rewrite
 | 
			
		||||
 | 
			
		||||
CMD /data/dev/run-internal.sh
 | 
			
		||||
							
								
								
									
										3
									
								
								dev/create-container.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								dev/create-container.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
docker build -t kunkel/oer .
 | 
			
		||||
							
								
								
									
										2
									
								
								dev/run-container.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										2
									
								
								dev/run-container.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,2 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
docker run -p 127.0.0.1:8888:80 -h hps -it --rm  -v $PWD/../:/data/ kunkel/oer
 | 
			
		||||
							
								
								
									
										6
									
								
								dev/run-internal.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								dev/run-internal.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,6 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
adduser --system --no-create-home --home /data --uid 1000  www-user
 | 
			
		||||
sed -i "s/APACHE_RUN_USER=www-data/APACHE_RUN_USER=www-user/" /etc/apache2/envvars
 | 
			
		||||
/etc/init.d/apache2 start
 | 
			
		||||
tail -f /var/log/apache2/error.log &
 | 
			
		||||
/bin/bash
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user