Skip to content

Commit

Permalink
Pipefail
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Dec 27, 2023
1 parent cb4fd29 commit f2c85d2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/build_docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e -o pipefail

docker build \
-t stanfordvl/omnigibson-dev:latest \
Expand Down
2 changes: 2 additions & 0 deletions docker/launch_vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#SBATCH --mem=30G
#SBATCH --gres=gpu:2080ti:1

set -e -o pipefail

# Get the username
USERNAME=$(whoami)

Expand Down
1 change: 1 addition & 0 deletions docker/push_docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e -o pipefail

docker push stanfordvl/omnigibson:latest
docker push stanfordvl/omnigibson:$(sed -ne "s/.*version= *['\"]\([^'\"]*\)['\"] *.*/\1/p" setup.py)
Expand Down
1 change: 1 addition & 0 deletions docker/run_docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e -o pipefail

BYellow='\033[1;33m'
Color_Off='\033[0m'
Expand Down
1 change: 1 addition & 0 deletions docker/safe_launch_vscode.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e -o pipefail

# Get the user's currently running vscode job count
USERNAME=$(whoami)
Expand Down
2 changes: 2 additions & 0 deletions docker/sbatch_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#SBATCH --mem=30G
#SBATCH --gres=gpu:2080ti:1

set -e -o pipefail

IMAGE_PATH="/cvgl2/u/cgokmen/omnigibson.sqsh"
GPU_ID=$(nvidia-smi -L | grep -oP '(?<=GPU-)[a-fA-F0-9\-]+' | head -n 1)
ISAAC_CACHE_PATH="/scr-ssd/${SLURM_JOB_USER}/isaac_cache_${GPU_ID}"
Expand Down

0 comments on commit f2c85d2

Please sign in to comment.