Skip to content

Commit 63bd271

Browse files
Set Docker build context and update cmd in devcontainer.json
Signed-off-by: Christophe Bedard <[email protected]>
1 parent b983b79 commit 63bd271

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "ROS 2 Documentation",
33
"build": {
4-
"dockerfile": "../docker/image/Dockerfile"
4+
"dockerfile": "../docker/image/Dockerfile",
5+
"context": ".."
56
},
67
"workspaceMount": "source=${localWorkspaceFolder},target=/tmp/doc_repository,type=bind",
78
"workspaceFolder": "/tmp/doc_repository",
8-
"postCreateCommand": "pip3 install --no-warn-script-location --user -r requirements.txt -c constraints.txt",
9+
"postCreateCommand": ". /opt/ros2doc/bin/activate && pip3 install -r requirements.txt -c constraints.txt",
910
"features": {
1011
"ghcr.io/devcontainers/features/git:1": {}
1112
},

0 commit comments

Comments
 (0)