mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
docker using glide
This commit is contained in:
4
build.sh
4
build.sh
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user