improved docker

This commit is contained in:
Radu Ioan Fericean
2015-09-24 10:42:05 +03:00
parent 834a8ed5fa
commit 65e1f04e61
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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"