docker using glide

This commit is contained in:
Radu Ioan Fericean
2015-09-18 14:03:07 +03:00
parent 631ca167a6
commit 116539c3e5
3 changed files with 10 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
#! /usr/bin/env sh
echo "installing CGRateS..."
go install github.com/cgrates/cgrates/cmd/cgr-engine
cr=$?
go install github.com/cgrates/cgrates/cmd/cgr-loader
@@ -10,5 +12,3 @@ go install github.com/cgrates/cgrates/cmd/cgr-tester
ct=$?
exit $cr || $cl || $cc || $ct

View File

@@ -16,10 +16,13 @@ cd /usr/share/cgrates/storage/postgres && ./setup_cgr_db.sh
#env vars
export GOROOT=/root/go; export GOPATH=/root/code; export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
export GO15VENDOREXPERIMENT=1
# build and install cgrates
/root/cgr/update_external_libs.sh
go install github.com/cgrates/cgrates
go get -v github.com/Masterminds/glide
cd /root/cgr
glide -y devel.yaml up
./build.sh
# create cgr-engine link
ln -s /root/code/bin/cgr-engine /usr/bin/cgr-engine

View File

@@ -1,5 +1,8 @@
#! /usr/bin/env sh
export GO15VENDOREXPERIMENT=1
glide up
go test -i github.com/cgrates/cgrates/apier/v1
go test -i github.com/cgrates/cgrates/apier/v2
go test -i github.com/cgrates/cgrates/engine