mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 08:08:45 +05:00
Updated ansible docker script
This commit is contained in:
committed by
Dan Christian Bogos
parent
d6eaa35c58
commit
ec6d7c636d
16
data/docker/scratch/build.sh
Normal file
16
data/docker/scratch/build.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#! /usr/bin/env sh
|
||||
echo "Building CGRateS ..."
|
||||
|
||||
GIT_LAST_LOG=$(git log -1 | tr -d "'")
|
||||
|
||||
GIT_TAG_LOG=$(git tag -l --points-at HEAD)
|
||||
|
||||
if [ ! -z "$GIT_TAG_LOG" ]
|
||||
then
|
||||
GIT_LAST_LOG=""
|
||||
fi
|
||||
|
||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o cgr-engine -a -ldflags '-extldflags "-f no-PIC -static"' -tags 'osusergo netgo static_build' -ldflags "-X 'github.com/cgrates/cgrates/utils.GitLastLog=$GIT_LAST_LOG'" github.com/cgrates/cgrates/cmd/cgr-engine
|
||||
cr=$?
|
||||
|
||||
exit $cr
|
||||
Reference in New Issue
Block a user