2021-05-29 16:26:54 +05:30
|
|
|
#!/bin/bash
|
|
|
|
|
2021-05-30 12:50:40 +05:30
|
|
|
RED='\033[0;31m'
|
|
|
|
NC='\033[0m' # No Color
|
|
|
|
|
2021-05-29 16:26:54 +05:30
|
|
|
#export GOPATH=~/go
|
|
|
|
#export GOCACHE=~/go
|
|
|
|
export REDISHOST=localhost
|
|
|
|
|
2021-05-30 12:50:40 +05:30
|
|
|
echo -e ${RED} -------- cloning goma-server ${NC}
|
|
|
|
|
2021-05-29 16:26:54 +05:30
|
|
|
git clone https://github.com/uazo/goma-server
|
2021-05-30 12:50:40 +05:30
|
|
|
|
|
|
|
echo -e ${RED} -------- start goma-server ${NC}
|
|
|
|
|
2021-05-29 16:26:54 +05:30
|
|
|
cd ./goma-server/
|
2021-05-29 23:03:17 +05:30
|
|
|
go run ./cmd/remoteexec_proxy/main.go --port 5050 --remoteexec-addr $REMOTEEXEC_ADDR --remote-instance-name default_instance --insecure-remoteexec --allowed-users ppp --exec-config-file "./config-file" --exec-check-cache-timeout 30s --exec-max-retry-count 50 --exec-execute-timeout 600s >log.txt 2>&1 &
|