mirror of
				https://github.com/open5gs/open5gs.git
				synced 2025-11-04 05:53:18 +00:00 
			
		
		
		
	add template Dockerfile for NextEPC
This commit is contained in:
		
							
								
								
									
										21
									
								
								support/docker/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								support/docker/Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
				
			|||||||
 | 
					#
 | 
				
			||||||
 | 
					# NextEPC Dockerfile
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# https://github.com/acetcom/nextepc
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Pull base image.
 | 
				
			||||||
 | 
					FROM ubuntu:latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Install NextEPC.
 | 
				
			||||||
 | 
					RUN \
 | 
				
			||||||
 | 
					  apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv F26B05AF && \
 | 
				
			||||||
 | 
					  echo 'deb http://ppa.launchpad.net/acetcom/nextepc/ubuntu xenial main' > /etc/apt/sources.list.d/nextepc.list && \
 | 
				
			||||||
 | 
					  apt-get update && \
 | 
				
			||||||
 | 
					  apt-get install -y nextepc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Define mountable directories.
 | 
				
			||||||
 | 
					#VOLUME ["/etc/nextepc", "/var/log/nextepc"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Define working directory.
 | 
				
			||||||
 | 
					WORKDIR /root
 | 
				
			||||||
@@ -1,16 +0,0 @@
 | 
				
			|||||||
FROM ubuntu:16.04
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Base dependencies
 | 
					 | 
				
			||||||
# freeDiameter core dependencies
 | 
					 | 
				
			||||||
# freeDiameter extension dependencies
 | 
					 | 
				
			||||||
# Debian package dependencies
 | 
					 | 
				
			||||||
RUN apt update && apt -y install \
 | 
					 | 
				
			||||||
    bison flex wget gcc g++ cmake git \
 | 
					 | 
				
			||||||
    libsctp-dev libgnutls-dev libidn11-dev \
 | 
					 | 
				
			||||||
    libxml2-dev libpostgresql-ocaml-dev libmysql-ocaml-dev libgcrypt-dev swig python-dev \
 | 
					 | 
				
			||||||
    fakeroot debhelper
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
WORKDIR /root
 | 
					 | 
				
			||||||
ADD ./build-freediameter.sh /root/
 | 
					 | 
				
			||||||
#ENTRYPOINT ["ls"]
 | 
					 | 
				
			||||||
ENTRYPOINT ["/root/build-freediameter.sh"]
 | 
					 | 
				
			||||||
@@ -1,6 +0,0 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					 | 
				
			||||||
mkdir -p /root/build-freediameter/freeDiameter
 | 
					 | 
				
			||||||
wget -q -O - http://www.freediameter.net/hg/freeDiameter/archive/2cb8d71a405d.tar.bz2 | tar xj -C build-freediameter/freeDiameter --strip-components=1
 | 
					 | 
				
			||||||
cd /root/build-freediameter/freeDiameter
 | 
					 | 
				
			||||||
ln -s contrib/debian .
 | 
					 | 
				
			||||||
fakeroot dh binary
 | 
					 | 
				
			||||||
@@ -1,7 +0,0 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
DOCKER_IMAGE="ubuntu:16.04-build-freediameter"
 | 
					 | 
				
			||||||
HOST_OUT_PATH="${PWD}/ubuntu-16.04-build-freediameter.out"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
docker build -f "Dockerfile.${DOCKER_IMAGE}" -t ${DOCKER_IMAGE} .
 | 
					 | 
				
			||||||
docker run -i -t --rm -v ${HOST_OUT_PATH}:/root/build-freediameter ${DOCKER_IMAGE}
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user