blob: 0fc49bbf7d0c8667648f495c0b48044ac678ea47 (
plain)
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
33
34
35
36
37
38
39
|
#!/usr/bin/env bash
if [ $(lsb_release -is) != Ubuntu ]; then
echo "Host stack test framework is supported only on Ubuntu"
exit 1
fi
if [ -z $(which ab) ]; then
echo "Host stack test framework requires apache2-utils to be installed"
echo "It is recommended to run 'sudo make install-dep'"
exit 1
fi
if [ -z $(which wrk) ]; then
echo "Host stack test framework requires wrk to be installed"
echo "It is recommended to run 'sudo make install-dep'"
exit 1
fi
source vars
bin=vpp-data/bin
lib=vpp-data/lib
mkdir -p ${bin} ${lib} || true
cp ${VPP_WS}/build-root/build-vpp_debug-native/vpp/bin/* ${bin}
res+=$?
cp -r ${VPP_WS}/build-root/build-vpp_debug-native/vpp/lib/x86_64-linux-gnu/* ${lib}
res+=$?
if [ $res -ne 0 ]; then
echo "Failed to copy VPP files. Is VPP built? Try running 'make build' in VPP directory."
exit 1
fi
docker build --build-arg UBUNTU_VERSION --build-arg http_proxy=$HTTP_PROXY \
-t hs-test/vpp -f docker/Dockerfile.vpp .
docker build --build-arg UBUNTU_VERSION --build-arg http_proxy=$HTTP_PROXY \
-t hs-test/nginx-ldp -f docker/Dockerfile.nginx .
|