mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
improved docker
This commit is contained in:
@@ -25,6 +25,9 @@ RUN useradd -c CGRateS -d /var/run/cgrates -s /bin/false -r cgrates
|
||||
# install golang
|
||||
RUN wget -qO- https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz | tar xzf - -C /root/
|
||||
|
||||
#install glide
|
||||
RUN GOROOT=/root/go GOPATH=/root/code /root/go/bin/go get github.com/Masterminds/glide
|
||||
|
||||
#install oh-my-zsh
|
||||
RUN TERM=xterm sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"; exit 0
|
||||
|
||||
|
||||
@@ -21,9 +21,8 @@ export GOROOT=/root/go; export GOPATH=/root/code; export PATH=$GOROOT/bin:$GOPAT
|
||||
export GO15VENDOREXPERIMENT=1
|
||||
|
||||
# build and install cgrates
|
||||
go get -v github.com/Masterminds/glide
|
||||
cd /root/cgr
|
||||
glide -y devel.yaml up
|
||||
#glide -y devel.yaml up
|
||||
./build.sh
|
||||
|
||||
# create cgr-engine link
|
||||
@@ -32,7 +31,7 @@ ln -s /root/code/bin/cgr-engine /usr/bin/cgr-engine
|
||||
# expand freeswitch conf
|
||||
cd /usr/share/cgrates/tutorials/fs_evsock/freeswitch/etc/ && tar xzf freeswitch_conf.tar.gz
|
||||
|
||||
cd /root/.oh-my-zsh; git pull
|
||||
#cd /root/.oh-my-zsh; git pull
|
||||
|
||||
cd /root/cgr
|
||||
echo "for cgradmin run: cgr-engine -config_dir data/conf/samples/cgradmin"
|
||||
|
||||
Reference in New Issue
Block a user