mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
32 lines
1.2 KiB
Docker
32 lines
1.2 KiB
Docker
FROM debian:latest
|
|
MAINTAINER Radu Fericean, rif@cgrates.org
|
|
RUN apt-get -y update
|
|
|
|
# set mysql password
|
|
RUN echo 'mysql-server mysql-server/root_password password CGRateS.org' | debconf-set-selections && echo 'mysql-server mysql-server/root_password_again password CGRateS.org' | debconf-set-selections
|
|
|
|
# add freeswitch gpg key
|
|
RUN gpg --keyserver pool.sks-keyservers.net --recv-key D76EDC7725E010CF && gpg -a --export D76EDC7725E010CF | apt-key add -
|
|
|
|
# add freeswitch apt repo
|
|
RUN echo 'deb http://files.freeswitch.org/repo/deb/debian/ jessie main' > /etc/apt/sources.list.d/freeswitch.list
|
|
|
|
# install dependencies
|
|
RUN apt-get update && apt-get -y install redis-server mysql-server python-pycurl python-mysqldb postgresql postgresql-client sudo wget git freeswitch-meta-vanilla
|
|
|
|
# add cgrates apt-key
|
|
RUN wget -qO- http://apt.itsyscom.com/conf/cgrates.gpg.key | apt-key add -
|
|
|
|
# add cgrates repo
|
|
RUN cd /etc/apt/sources.list.d/; wget -q http://apt.itsyscom.com/conf/cgrates.apt.list
|
|
|
|
# install cgrates
|
|
RUN apt-get update && apt-get -y install cgrates
|
|
|
|
# cleanup
|
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
# set start command
|
|
CMD /root/code/data/docker/prod/start.sh
|
|
|