Updated docker scripts

This commit is contained in:
Trial97
2019-07-15 19:01:11 +03:00
committed by Dan Christian Bogos
parent aa665eb1cb
commit 247b05d034
5 changed files with 6 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ cd /usr/share/cgrates/tutorials/fs_evsock/freeswitch/etc/ && tar xzf freeswitch_
#cd /root/.oh-my-zsh; git pull
cd /root/cgr
echo "for cgradmin run: cgr-engine -config_dir data/conf/samples/cgradmin"
echo "for cgradmin run: cgr-engine -config_path data/conf/samples/cgradmin"
echo 'export GOROOT=/root/go; export GOPATH=/root/code; export PATH=$GOROOT/bin:$GOPATH/bin:$PATH'>>/root/.zshrc
DISABLE_AUTO_UPDATE="true" zsh

View File

@@ -5,7 +5,7 @@ sed -i 's/127.0.0.1/0.0.0.0/g' /etc/redis/redis.conf /etc/mysql/my.cnf
service rsyslog start
service mysql start
service redis-server start
/root/code/bin/cgr-engine -config_dir /root/cgr/data/conf/samples/osips_training
/root/code/bin/cgr-engine -config_path /root/cgr/data/conf/samples/osips_training
# setup mysql
cd /usr/share/cgrates/storage/mysql && ./setup_cgr_db.sh root CGRateS.org

View File

@@ -8,7 +8,7 @@ cd /usr/share/cgrates/storage/postgres && ./setup_cgr_db.sh
/usr/share/cgrates/tutorials/fs_evsock/freeswitch/etc/init.d/freeswitch start
# Docker doesn't have syslog. Let others modify this to send out logs if needed
sed -i 's/config_dir/config_path/g' /usr/share/cgrates/tutorials/fs_evsock/cgrates/etc/init.d/cgrates
sed -i 's/config_path/config_path/g' /usr/share/cgrates/tutorials/fs_evsock/cgrates/etc/init.d/cgrates
sed -i 's/\/etc\/cgrates/\/etc\/cgrates -httprof_path=\/pprof -logger=*stdout/g' /usr/share/cgrates/tutorials/fs_evsock/cgrates/etc/init.d/cgrates
# Get our data ready