Skip to content

Commit 979995a

Browse files
committed
chg: [install] install and launch scripts + bumping golang-utils
1 parent f962687 commit 979995a

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.13
55
require (
66
github.com/D4-project/d4-golang-utils v0.0.0-20200108150548-740f16240125
77
github.com/gomodule/redigo v2.0.0+incompatible
8-
golang.org/x/image v0.0.0-20200119044424-58c23975cae1 // indirect
98
gonum.org/v1/netlib v0.0.0-20191229114700-bbb4dff026f8 // indirect
109
gonum.org/v1/plot v0.0.0-20200111075622-4abb28f724d5
1110
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL
2121
golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
2222
golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495 h1:I6A9Ag9FpEKOjcKrRNjQkPHawoXIhKyTGfvvjFAiiAk=
2323
golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
24+
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81 h1:00VmoueYNlNz/aHIilyyQz/MHSqGoWJzpFv/HW8xpzI=
2425
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
26+
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067 h1:KYGJGHOQy8oSi1fDlSpcZF0+juKwk/hEMv5SiwHogR0=
2527
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
26-
golang.org/x/image v0.0.0-20200119044424-58c23975cae1 h1:5h3ngYt7+vXCDZCup/HkCQgW5XwmSvR/nA2JmJ0RErg=
27-
golang.org/x/image v0.0.0-20200119044424-58c23975cae1/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
2828
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
2929
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
3030
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=

install_server.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
sudo apt-get install screen -y
7+
8+
go get github.com/D4-project/analyzer-d4-log
9+
10+
# REDIS #
11+
mkdir -p db
12+
test ! -d redis/ && git clone https://github.com/antirez/redis.git
13+
pushd redis/
14+
git checkout 5.0
15+
make
16+
popd

launch_server.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
CONF="conf.sample"
5+
6+
screen -dmS "alog"
7+
sleep 0.1
8+
9+
screen -S "alog" -X screen -t "alog-redis" bash -c "(${DIR}/redis/src/redis-server ${DIR}/redis.conf); read x;"
10+
screen -S "alog" -X screen -t "alog-ingester" bash -c "(${DIR}/analyzer-d4-log -c ${CONF}); read x;"
11+
12+
exit 0

0 commit comments

Comments
 (0)