mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	This work-in-progress is the first step to being able to reliably build Asterisk containers from the Asterisk source. I'm submitting this based on feedback gained at AstriDevCon 2015. Information about how to use this is provided in contrib/docker/README.md and will result in a local Asterisk container being built right from your source. I believe this can eventually be automated via hub.docker.com. Change-Id: Ifa070706d40e56755797097b6ed72c1e243bd0d1
		
			
				
	
	
		
			20 lines
		
	
	
		
			472 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			472 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # Version 0.0.3
 | |
| FROM centos:7
 | |
| MAINTAINER Leif Madsen <leif@leifmadsen.com>
 | |
| ENV REFRESHED_AT 2016-02-25
 | |
| ENV STARTDIR /tmp
 | |
| ENV RPMPATH ./out
 | |
| 
 | |
| # copy is required because you can't mount volumes during build
 | |
| COPY $RPMPATH/*.rpm $STARTDIR
 | |
| 
 | |
| # install dependencies and Asterisk RPM
 | |
| RUN yum install epel-release -y && \
 | |
|     yum install -y *.rpm && \
 | |
|     yum clean all && \
 | |
|     yum autoremove -y && \
 | |
|     /sbin/ldconfig
 | |
| 
 | |
| ENTRYPOINT ["/usr/sbin/asterisk"]
 | |
| CMD ["-c", "-vvvv", "-g"]
 |