Files
5g-images/images/fhoss/Dockerfile
Marielena Márquez 0b3f111928 Adds images for IMS deployment (#137)
* Adds Kamailio IMS image

* Adds DNS ancillary image  for IMS deployment

* Adds FHoSS ancillary image for IMS deployment

* Adds Mysql ancillary image for IMS deployment

* Adds OSMO ancillary images for IMS deployment

* Adds Rtpengine ancillary image for IMS deployment

* Adds instructions and files for IMS deployment

* Fixes instructions for IMS deployment

* Osmomsc, osmohlr and smsc moved to ims-sms branch

* Updates rtpengine and new name for kamailio-ims

* Updates image fhoss

* Starts using mariadb official image

* Starts using bind9 official image and static IPs

* Deletes old images and adds image_info scripts

* Updates tag in images

Co-authored-by: mariel1105 <marielena.mmb@gmail.com>
2022-10-03 11:08:45 +02:00

81 lines
3.2 KiB
Docker

# THIRD PARTY SOFTWARE NOTICES AND INFORMATION
# Do Not Translate or Localize
#
# This repository includes Oracle Java 7 JDK downloaded from Oracle website, which is distributed
# under Oracle Binary Code License Agreement for Java SE. By using this repository you agree to
# have reviewed and accepted the Oracle Binary Code License Agreement for Java SE and hold
# no liability.
#
# =========================================
# BSD 2-Clause License
# Copyright (c) 2020, Supreeth Herle
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
# Install updates and dependencies
RUN apt-get update && \
apt-get -y install git vim wget subversion mysql-server dnsutils ed
# Install Oracle Java 7 SE JDK
RUN mkdir -p /usr/lib/jvm/ && \
cd / && wget https://files-cdn.liferay.com/mirrors/download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz && \
tar -zxf /jdk-7u80-linux-x64.tar.gz -C /usr/lib/jvm/ && \
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_80/bin/java 100 && \
update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_80/bin/javac 100
# Install Ant
RUN cd / && wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.14-bin.tar.gz && \
tar xvfvz apache-ant-1.9.14-bin.tar.gz && \
mv apache-ant-1.9.14 /usr/local/ && \
ln -s /usr/local/apache-ant-1.9.14/bin/ant /usr/bin/ant
RUN mkdir -p /opt/OpenIMSCore && \
cd /opt/OpenIMSCore && \
git clone https://github.com/herlesupreeth/FHoSS
ENV JAVA_HOME="/usr/lib/jvm/jdk1.7.0_80"
ENV CLASSPATH="/usr/lib/jvm/jdk1.7.0_80/jre/lib/"
ENV ANT_HOME="/usr/local/apache-ant-1.9.14"
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV IMS_DOMAIN=ims.mnc001.mcc001.3gppnetwork.org \
EPC_DOMAIN=openverso \
MYSQL_HOSTNAME=mysql \
DNS_HOSTNAME=dns \
FHOSS_HOSTNAME=fhoss
RUN cd /opt/OpenIMSCore/FHoSS && \
ant compile deploy | tee ant_compile_deploy.txt
COPY resources/ /mnt/fhoss/
RUN chmod +x /mnt/fhoss/fhoss_init.sh
CMD /mnt/fhoss/fhoss_init.sh