chg: [install] install and launch scripts + bumping golang-utils

nifi v0.1.0
Jean-Louis Huynen 2020-02-13 14:23:46 +01:00
parent f962687fe5
commit 979995a1a2
No known key found for this signature in database
GPG Key ID: 64799157F4BD6B93
4 changed files with 30 additions and 3 deletions

1
go.mod
View File

@ -5,7 +5,6 @@ go 1.13
require (
github.com/D4-project/d4-golang-utils v0.0.0-20200108150548-740f16240125
github.com/gomodule/redigo v2.0.0+incompatible
golang.org/x/image v0.0.0-20200119044424-58c23975cae1 // indirect
gonum.org/v1/netlib v0.0.0-20191229114700-bbb4dff026f8 // indirect
gonum.org/v1/plot v0.0.0-20200111075622-4abb28f724d5
)

4
go.sum
View File

@ -21,10 +21,10 @@ golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL
golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495 h1:I6A9Ag9FpEKOjcKrRNjQkPHawoXIhKyTGfvvjFAiiAk=
golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81 h1:00VmoueYNlNz/aHIilyyQz/MHSqGoWJzpFv/HW8xpzI=
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067 h1:KYGJGHOQy8oSi1fDlSpcZF0+juKwk/hEMv5SiwHogR0=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/image v0.0.0-20200119044424-58c23975cae1 h1:5h3ngYt7+vXCDZCup/HkCQgW5XwmSvR/nA2JmJ0RErg=
golang.org/x/image v0.0.0-20200119044424-58c23975cae1/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=

16
install_server.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e
set -x
sudo apt-get install screen -y
go get github.com/D4-project/analyzer-d4-log
# REDIS #
mkdir -p db
test ! -d redis/ && git clone https://github.com/antirez/redis.git
pushd redis/
git checkout 5.0
make
popd

12
launch_server.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CONF="conf.sample"
screen -dmS "alog"
sleep 0.1
screen -S "alog" -X screen -t "alog-redis" bash -c "(${DIR}/redis/src/redis-server ${DIR}/redis.conf); read x;"
screen -S "alog" -X screen -t "alog-ingester" bash -c "(${DIR}/analyzer-d4-log -c ${CONF}); read x;"
exit 0