Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
Maros Ondrejicka | f643b6f | 2023-01-17 10:52:20 +0100 | [diff] [blame^] | 3 | if [ $(lsb_release -is) != Ubuntu ]; then |
| 4 | echo "Host stack test framework is supported only on Ubuntu" |
| 5 | exit 1 |
| 6 | fi |
| 7 | |
Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 8 | source vars |
| 9 | |
| 10 | bin=vpp-data/bin |
| 11 | lib=vpp-data/lib |
| 12 | |
| 13 | mkdir -p ${bin} ${lib} || true |
| 14 | |
| 15 | cp ${VPP_WS}/build-root/build-vpp_debug-native/vpp/bin/* ${bin} |
Maros Ondrejicka | f643b6f | 2023-01-17 10:52:20 +0100 | [diff] [blame^] | 16 | res+=$? |
Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 17 | cp -r ${VPP_WS}/build-root/build-vpp_debug-native/vpp/lib/x86_64-linux-gnu/* ${lib} |
Maros Ondrejicka | f643b6f | 2023-01-17 10:52:20 +0100 | [diff] [blame^] | 18 | res+=$? |
| 19 | if [ $res -ne 0 ]; then |
| 20 | echo "Failed to copy VPP files. Is VPP built? Try running 'make build' in VPP directory." |
| 21 | exit 1 |
| 22 | fi |
Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 23 | |
Filip Tehlar | f34f32f | 2023-01-16 10:21:29 +0100 | [diff] [blame] | 24 | docker build --build-arg UBUNTU_VERSION -t hs-test/vpp -f docker/Dockerfile.vpp . |
| 25 | docker build --build-arg UBUNTU_VERSION -t hs-test/nginx-ldp -f docker/Dockerfile.nginx . |