-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-centos.sh
32 lines (28 loc) · 887 Bytes
/
build-centos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
set -xe
cd $HOME/prj/proxygen/proxygen
ln -Tsf _build.centos _build
cd $HOME/prj/callfwd
ln -Tsf deps.centos deps
docker build -t callfwd_builder docker/builder
docker run --rm -it -v $HOME/prj:/s callfwd_builder sh -c \
"source /opt/rh/devtoolset-9/enable; \
make -C /s/callfwd/build.centos all test || bash -i" \
|| true
cd $HOME/prj/proxygen/proxygen
ln -Tsf _build.arch _build
cd $HOME/prj/callfwd
ln -Tsf deps.arch deps
HOST=147.135.46.46
rsync --info=progress2 \
build.centos/callfwd/callfwd $HOST:~
rsync callfwdctl $HOST:~
rsync --rsync-path="sudo rsync" \
conf/callfwd.{service,socket} \
conf/callfwd-acl.{service,timer} \
conf/callfwd-reload.{service,timer} \
$HOST:/etc/systemd/system/
rsync --rsync-path="sudo rsync" \
conf/callfwd.{env,flags} $HOST:/etc/
ssh $HOST sudo systemctl daemon-reload
notify-send "$HOST updated"