blob: 9860ba231b730ff83ef95ec46cb41bd0d8235bb2 [file] [log] [blame]
Filip Tehlar229f5fc2022-08-09 14:44:47 +00001#!/usr/bin/env bash
2
Maros Ondrejickaf643b6f2023-01-17 10:52:20 +01003if [ $(lsb_release -is) != Ubuntu ]; then
4 echo "Host stack test framework is supported only on Ubuntu"
5 exit 1
6fi
7
Filip Tehlar229f5fc2022-08-09 14:44:47 +00008source vars
9
10bin=vpp-data/bin
11lib=vpp-data/lib
12
13mkdir -p ${bin} ${lib} || true
14
15cp ${VPP_WS}/build-root/build-vpp_debug-native/vpp/bin/* ${bin}
Maros Ondrejickaf643b6f2023-01-17 10:52:20 +010016res+=$?
Filip Tehlar229f5fc2022-08-09 14:44:47 +000017cp -r ${VPP_WS}/build-root/build-vpp_debug-native/vpp/lib/x86_64-linux-gnu/* ${lib}
Maros Ondrejickaf643b6f2023-01-17 10:52:20 +010018res+=$?
19if [ $res -ne 0 ]; then
20 echo "Failed to copy VPP files. Is VPP built? Try running 'make build' in VPP directory."
21 exit 1
22fi
Filip Tehlar229f5fc2022-08-09 14:44:47 +000023
Filip Tehlarf34f32f2023-01-16 10:21:29 +010024docker build --build-arg UBUNTU_VERSION -t hs-test/vpp -f docker/Dockerfile.vpp .
25docker build --build-arg UBUNTU_VERSION -t hs-test/nginx-ldp -f docker/Dockerfile.nginx .