-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·35 lines (28 loc) · 992 Bytes
/
build.sh
File metadata and controls
executable file
·35 lines (28 loc) · 992 Bytes
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
#!/bin/bash
set -e
# directory path for CCS project files in host machine
test_dir="./mmw_oob"
# directory path for CCS project files in container (must be mounted to a host directory)
projects_dir="/ccs_projects"
make list
if command -v docker-compose &> /dev/null ; then
make gen_compose
docker-compose -f docker-compose.yaml --parallel 3 build
elif command -v docker compose &> /dev/null ; then
make gen_compose
docker compose -f docker-compose.yaml --parallel 3 build
else
make all
fi
docker images
function test()
{
# images=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep "^whuzfb/ccstudio:.*")
images=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep "^whuzfb/ccstudio:.*mmw$")
for image in $images; do
echo "Image: ${image}"
docker run -v ${test_dir}:${projects_dir} -it --rm --name ccstudio_${image##*:} ${image} "out_of_box_6843_isk_mss.projectspec" "Debug"
docker push "${image}"
done
}
# test