2022-08-09 14:44:47 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-01-17 10:52:20 +01:00
|
|
|
if [ $(lsb_release -is) != Ubuntu ]; then
|
|
|
|
echo "Host stack test framework is supported only on Ubuntu"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-08-09 14:44:47 +00:00
|
|
|
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}
|
2023-01-17 10:52:20 +01:00
|
|
|
res+=$?
|
2022-08-09 14:44:47 +00:00
|
|
|
cp -r ${VPP_WS}/build-root/build-vpp_debug-native/vpp/lib/x86_64-linux-gnu/* ${lib}
|
2023-01-17 10:52:20 +01:00
|
|
|
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
|
2022-08-09 14:44:47 +00:00
|
|
|
|
2023-01-16 13:21:35 -08:00
|
|
|
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 .
|