-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- overhaul README - standardize phrasing & naming used - clarify, add & remove comments - add python import sorting to settings.json
- Loading branch information
1 parent
774f58f
commit 1e94385
Showing
16 changed files
with
179 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/bin/sh | ||
# `postCreate.sh` is called when the Dev Container is first created. | ||
# It can be used for setup steps outside the Dockerfile. | ||
|
||
# postCreate.sh is called after the container is created by devcontainer.json. | ||
# It can be used to install & setup tools not wanted in the Dockerfile. | ||
. /opt/ros/$ROS_DISTRO/setup.sh | ||
|
||
# This mitigates the Dockerfile somehow breaking the folder permissions. | ||
# Mitigates the Dockerfile somehow breaking folder permissions. | ||
sudo chown user:user /code | ||
|
||
. /opt/ros/$ROS_DISTRO/setup.sh | ||
# Something removed the package indexes so we download them again for convenience. | ||
# Something deleted the package indexes so we re-download them for convenience. | ||
sudo apt-get update | ||
sudo rosdep update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
#!/bin/sh | ||
# `postStart.sh` is called whenever the Dev Container starts. | ||
# It can be used for misc tasks (e.g., ensuring dependencies are installed). | ||
|
||
# postStart.sh is called every time the container starts by devcontainer.json. | ||
# It can be for misc tasks like ensuring all dependencies are installed. | ||
. /opt/ros/$ROS_DISTRO/setup.sh | ||
|
||
# Due to https://github.com/microsoft/vscode-remote-release/issues/6683 | ||
# we have to explicitly trust workspace folder for git. | ||
# Due to https://github.com/microsoft/vscode-remote-release/issues/6810#issuecomment-1159354677 | ||
# this cannot be done in Dockerfile (else VSCode fails to configure git in the container). | ||
# Due to https://github.com/microsoft/vscode-remote-release/issues/6683, | ||
# we have to disable git's repository trust feature. | ||
# Due to https://github.com/microsoft/vscode-remote-release/issues/6810#issuecomment-1159354677, | ||
# this cannot be done in the Dockerfile (else VS Code doesn't configure `.gitconfig`). | ||
git config --global safe.directory "*" | ||
|
||
. /opt/ros/$ROS_DISTRO/setup.sh | ||
|
||
# (Optional) Clone repo on first setup if using named volume to store repo. | ||
# If using named volume to store repository, clone and setup the repository. | ||
test -d "/code/.git" \ | ||
|| ( \ | ||
git clone "(Optional) Insert repo url" /code --recurse-submodules \ | ||
git clone "(OPTION) Insert repository url" /code --recurse-submodules \ | ||
&& cd /code \ | ||
&& git submodule foreach --recursive git checkout main \ | ||
) | ||
|
||
# Ensure all dependencies are installed. | ||
# Ensure dependencies are installed. | ||
sudo rosdep install -i --from-path /code -y | ||
sudo pip install -r /code/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// VS Code configuration for ROS C/C++. | ||
{ | ||
"configurations": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// Extensions suggested. | ||
{ | ||
"recommendations": [ | ||
"ms-vscode-remote.remote-containers", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.