Skip to content

Commit

Permalink
[#339] Started getting submodules updated to latest and reworking ait…
Browse files Browse the repository at this point in the history
… - needs special container currently;
  • Loading branch information
jlucas9 committed Sep 13, 2024
1 parent 963cbcd commit 52bdb40
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 36 deletions.
4 changes: 2 additions & 2 deletions cfg/nos3-mission.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<nos3-mission-cfg>
<start-time>814048200.0</start-time>
<gsw>cosmos</gsw>
<gsw>ait</gsw>
<number-spacecraft>1</number-spacecraft>
<sc-1-cfg>sc-full-config.xml</sc-1-cfg>
<sc-1-cfg>sc-minimal-config.xml</sc-1-cfg>
<!--
<sc-2-cfg>sc-minimal-config.xml</sc-2-cfg>
-->
Expand Down
2 changes: 1 addition & 1 deletion fsw/apps/sc
Submodule sc updated 1 files
+309 −309 unit-test/sc_cmds_tests.c
2 changes: 1 addition & 1 deletion fsw/psp
2 changes: 1 addition & 1 deletion gsw/ait
Submodule ait updated from 478a6c to 000540
2 changes: 1 addition & 1 deletion gsw/cosmos
20 changes: 10 additions & 10 deletions scripts/docker_launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,16 @@ do
$DNETWORK create $SC_NETNAME 2> /dev/null
echo ""

alias="cosmos"
if [ "${GSW:-cosmos_openc3-operator_1}" == "ait" ]; then
alias="ait"
docker run --rm -d -h influxdb --name influxdb -p 8086:8086 -e INFLUXDB_DB=$INFLUXDB_DB -e INFLUXDB_ADMIN_USER=$INFLUXDB_ADMIN_USER -e INFLUXDB_ADMIN_PASSWORD=$INFLUXDB_ADMIN_PASSWORD --network=nos3_core influxdb:1.8
docker run --rm -d --name ttc-command -p 80:80 --network=nos3_core ghcr.io/sphinxdefense/ttc-command:main
fi

echo $SC_NUM " - Connect GSW " "${GSW:-cosmos_openc3-operator_1}" " to spacecraft network..."
$DNETWORK connect $SC_NETNAME "${GSW:-cosmos_openc3-operator_1}" --alias $alias --alias active-gs
echo ""
#alias="cosmos"
#if [ "${GSW:-cosmos_openc3-operator_1}" == "ait" ]; then
# alias="ait"
# docker run --rm -d -h influxdb --name influxdb -p 8086:8086 -e INFLUXDB_DB=$INFLUXDB_DB -e INFLUXDB_ADMIN_USER=$INFLUXDB_ADMIN_USER -e INFLUXDB_ADMIN_PASSWORD=$INFLUXDB_ADMIN_PASSWORD --network=nos3_core influxdb:1.8
# docker run --rm -d --name ttc-command -p 80:80 --network=nos3_core ghcr.io/sphinxdefense/ttc-command:main
#fi

#echo $SC_NUM " - Connect GSW " "${GSW:-cosmos_openc3-operator_1}" " to spacecraft network..."
#$DNETWORK connect $SC_NETNAME "${GSW:-cosmos_openc3-operator_1}" --alias $alias --alias active-gs
#echo ""

echo $SC_NUM " - 42..."
rm -rf $USER_NOS3_DIR/42/NOS3InOut
Expand Down
6 changes: 1 addition & 5 deletions scripts/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ USER_NOS3_DIR=$(cd ~/ && pwd)/.nos3
OPENC3_DIR=$USER_NOS3_DIR/cosmos
OPENC3_PATH=$OPENC3_DIR/openc3.sh

INFLUXDB_DB=ait
INFLUXDB_ADMIN_USER=ait
INFLUXDB_ADMIN_PASSWORD=admin_password

###
### Notes:
### Podman and/or Docker on RHEL not yet supported
Expand All @@ -44,7 +40,7 @@ INFLUXDB_ADMIN_PASSWORD=admin_password
DNETWORK="docker network"
#fi

DBOX="ivvitc/nos3-64:20240618"
DBOX="ivvitc/nos3-64:dev"

# Debugging
#echo "Script directory = " $SCRIPT_DIR
Expand Down
9 changes: 8 additions & 1 deletion scripts/gsw_ait_launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@ source $SCRIPT_DIR/env.sh
export GSW="ait"

echo "AIT launch..."
gnome-terminal --tab --title="AIT" -- docker run --rm -it -v $BASE_DIR:$BASE_DIR -v /tmp/nos3:/tmp/nos3 --name ait -h ait -p 8001:8001 --network=nos3_core ghcr.io/sphinxdefense/gsw-ait:main "source ~/.bashrc && ait-server"
cd $BASE_DIR/gsw/ait
gnome-terminal --window-with-profile=KeepOpen --title="AIT" -- $DFLAGS -v $BASE_DIR:$BASE_DIR -v /tmp/nos3:/tmp/nos3 -w $BASE_DIR/gsw/ait --name ait -h ait -p 8001:8001 --network=nos3_core $DBOX "export AIT_CONFIG=$BASE_DIR/gsw/ait ; ait-server"

pidof firefox > /dev/null
if [ $? -eq 1 ]
then
firefox localhost:80 &
fi
16 changes: 8 additions & 8 deletions scripts/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ $DCALL image pull ballaerospace/cosmos:4.5.0
echo ""
echo ""

echo "Prepare ait docker container..."
$DCALL image pull ghcr.io/sphinxdefense/gsw-ait:main
echo ""
echo ""
#echo "Prepare ait docker container..."
#$DCALL image pull ghcr.io/sphinxdefense/gsw-ait:main
#echo ""
#echo ""

echo "Prepare ttc docker container..."
$DCALL image pull ghcr.io/sphinxdefense/ttc-command:main
echo ""
echo ""
#echo "Prepare ttc docker container..."
#$DCALL image pull ghcr.io/sphinxdefense/ttc-command:main
#echo ""
#echo ""

echo "Prepare nos3 docker container..."
$DCALL image pull $DBOX
Expand Down
2 changes: 1 addition & 1 deletion sims/nos_time_driver
2 changes: 1 addition & 1 deletion sims/sim_common

0 comments on commit 52bdb40

Please sign in to comment.