Skip to content

Commit

Permalink
Update build_cfe.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ana-GT authored Feb 27, 2024
1 parent f976c6e commit e78c08d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/build_cfe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,32 @@ COMPOSE_FILE="docker-compose-dev.yml"
CODE_DIR="/code"
export UID=$UID

echo "Run docker compose config.."
docker compose -f ${COMPOSE_FILE} config

echo "Print UID: ${UID}"
echo "Try to run first compose"
docker compose -f ${COMPOSE_FILE} run -w ${CODE_DIR}/cFS fsw make SIMULATION=native prep
ret=$?
if [ $ret -ne 0 ]; then
echo "!! Failed in make SIMULATION step !!"
return 1
fi

echo "Try to run second compose"
docker compose -f ${COMPOSE_FILE} run -w ${CODE_DIR}/cFS fsw make
ret=$?
if [ $ret -ne 0 ]; then
echo "!! Failed in make step !!"
return 1
fi

echo "Print 3rd compose"
docker compose -f ${COMPOSE_FILE} run -w ${CODE_DIR}/cFS fsw make install
ret=$?
if [ $ret -ne 0 ]; then
echo "!! Failed in make install step !!"
return 1
fi

echo "ending..."
echo ""
echo "##### Done! #####"
return 0

0 comments on commit e78c08d

Please sign in to comment.