bromite-buildtools/images/goma-server/start-goma-server.sh

30 lines
709 B
Bash
Raw Normal View History

2021-06-19 15:16:24 +05:30
#!/bin/bash
RED='\033[0;31m'
NC='\033[0m' # No Color
2021-08-03 20:56:16 +05:30
echo -e ${RED} -------- start redis-server ${NC}
export REDISHOST=localhost
sudo redis-server /etc/redis/redis.conf
2021-06-19 15:16:24 +05:30
echo -e ${RED} -------- start goma-server ${NC}
2021-07-30 17:00:15 +05:30
socat TCP-LISTEN:50051,reuseaddr,fork UNIX-CLIENT:/tmp/proxy/bots.sock &
2021-06-30 18:14:14 +05:30
2021-06-19 15:16:24 +05:30
cd ./goma-server/
/usr/local/go/bin/go run ./cmd/remoteexec_proxy/main.go \
--port 5050 \
2021-07-30 17:00:15 +05:30
--remoteexec-addr 127.0.0.1:50051 \
2021-06-19 15:16:24 +05:30
--remote-instance-name default_instance \
--insecure-remoteexec \
--allowed-users ppp \
--exec-config-file "./config-file" \
--exec-check-cache-timeout 180s \
--exec-max-retry-count 1 \
--exec-execute-timeout 180s \
--exec-upload-blobs-timeout 600s
cd ..