Skip to content

Commit

Permalink
[nasa#163] Updated docker build scripts to use NUM_CPUS to stop GCC c…
Browse files Browse the repository at this point in the history
…rashes due to lack of memory;
  • Loading branch information
jlucas9 committed Sep 11, 2023
1 parent f50f77e commit 4ff2813
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Vagrant.configure("2") do |config|
vbox.gui = true
### Enable additional configuration as needed
vbox.cpus = 6
vbox.memory = "6144"
vbox.memory = "6144" # Should always be > (cpus * 1024)
end
end
2 changes: 1 addition & 1 deletion gsw/scripts/docker_build_fsw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source $SCRIPT_DIR/env.sh

mkdir -p $BASE_DIR/fsw/build
$DFLAGS --cpus=$NUM_CPUS -v $BASE_DIR:$BASE_DIR --name "nos_build_fsw" -w $BASE_DIR ivvitc/nos3 make -j build-fsw
$DFLAGS --cpus=$NUM_CPUS -v $BASE_DIR:$BASE_DIR --name "nos_build_fsw" -w $BASE_DIR ivvitc/nos3 make -j$NUM_CPUS build-fsw
2 changes: 1 addition & 1 deletion gsw/scripts/docker_build_sim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source $SCRIPT_DIR/env.sh

mkdir -p $BASE_DIR/sim/build
$DFLAGS --cpus=$NUM_CPUS -v $BASE_DIR:$BASE_DIR --name "nos_build_sim" -w $BASE_DIR ivvitc/nos3 make -j build-sim
$DFLAGS --cpus=$NUM_CPUS -v $BASE_DIR:$BASE_DIR --name "nos_build_sim" -w $BASE_DIR ivvitc/nos3 make -j$NUM_CPUS build-sim

0 comments on commit 4ff2813

Please sign in to comment.