Skip to content

Commit

Permalink
chore: Update devcontainer postCreate script
Browse files Browse the repository at this point in the history
  • Loading branch information
ll7 committed Jun 5, 2024
1 parent 7fd8028 commit f942224
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#!/bin/sh
set -e

git config --global --add safe.directory /workspaces/robot_sf_ll7

## This script is run after the devcontainer is created. It installs the necessary dependencies for the project.
pwd
git submodule update --init --recursive || { echo "Failed to update git submodules"; exit 1; }
git config --global --add safe.directory /workspaces/robot_sf_ll7/fast-pysf

pip install -r ./requirements.txt || { echo "Failed to install requirements from ./requirements.txt"; exit 1; }
pip install -r ./fast-pysf/requirements.txt || { echo "Failed to install requirements from ./fast-pysf/requirements.txt"; exit 1; }
pip install -e . || { echo "Failed to install the current directory as a package"; exit 1; }
Expand Down

0 comments on commit f942224

Please sign in to comment.