generated from AMWA-TV/info-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new build file that creates docker container and builds the code
- Loading branch information
1 parent
6a069a4
commit 76e5811
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
SCRIPT_DIR="$(realpath "$(dirname "$0")")" | ||
PROJECT_DIR=${SCRIPT_DIR}/.. | ||
|
||
docker compose -f ${PROJECT_DIR}/images/docker-compose-x86-development.yml build | ||
docker compose -f ${PROJECT_DIR}/images/docker-compose-x86-development.yml up -d | ||
|
||
CONTAINER_NAME="images-ossrf-dev-1" | ||
|
||
until docker exec -it $CONTAINER_NAME true > /dev/null 2>&1; do | ||
echo "Waiting for container $CONTAINER_NAME to start..." | ||
sleep 2 | ||
done | ||
|
||
docker exec -it $CONTAINER_NAME bash -c " | ||
git clone https://github.com/AMWA-TV/nmos-sender-receiver-framework.git | ||
cd nmos-sender-receiver-framework | ||
conan profile detect | ||
./scripts/setup.sh | ||
./scripts/build.sh | ||
" | ||
|
||
docker exec -it $CONTAINER_NAME fish -C "cd /home/nmos/nmos-sender-receiver-framework" |