-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dev Container for local development
- Loading branch information
Showing
6 changed files
with
60 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "colcon-clean", | ||
"image": "python:3", | ||
"workspaceFolder": "/workspace/colcon-clean", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=${containerWorkspaceFolder},type=bind", | ||
"onCreateCommand": ".devcontainer/on-create-command.sh", | ||
"postCreateCommand": ".devcontainer/post-create-command.sh", | ||
"customizations": { | ||
"vscode": { | ||
"settings": {}, | ||
"extensions": [ | ||
"ms-python.python" | ||
] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# Immediately catch all errors | ||
set -eo pipefail | ||
|
||
# Uncomment for debugging | ||
# set -x | ||
# env | ||
|
||
git config --global --add safe.directory "*" | ||
|
||
CONSTRAINTS_URL=https://raw.githubusercontent.com/colcon/ci/main/constraints.txt | ||
CONSTRAINTS_FILE=/tmp/constraints.txt | ||
|
||
# Download constraints | ||
curl -sSLo $CONSTRAINTS_FILE $CONSTRAINTS_URL | ||
# Remove this package from constraints | ||
sed -i "/^$(python setup.py --name)@/d" $CONSTRAINTS_FILE | ||
# Install dependencies, including any 'test' extras, as well as pytest-cov | ||
pip install -U -e .[test] pytest-cov -c $CONSTRAINTS_FILE |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Immediately catch all errors | ||
set -eo pipefail | ||
|
||
# Uncomment for debugging | ||
# set -x | ||
# env | ||
|
||
# Enable autocomplete for user | ||
cp /etc/skel/.bashrc ~/ |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.