Open Ryanf55 opened 1 year ago
@ruffsl
Please assign this to me; I can take the recommended route to add compose support to nav2. Do you want a docker-compose.yml
file at the root of the repo, or in the .devcontainer
folder?
.devcontainer
for anything sp to dev containers
I would expect
FROM_IMAGE
is set tohumble
when using VSCode on the humble branch.
How would you expect to set the build arg dynamically, while remaining agnostic of the docker client? The dev container could be started from Mac or windows, so use of scripts would be out of scope. We could just change/commit the default value for that build arg per branch.
I would expect
FROM_IMAGE
is set tohumble
when using VSCode on the humble branch.How would you expect to set the build arg dynamically, while remaining agnostic of the docker client? The dev container could be started from Mac or windows, so use of scripts would be out of scope. We could just change/commit the default value for that build arg per branch.
That's what I did; take a look at the draft PR?
I tried a very specific change to just change the build.cacheFrom
argument, however the dockerfile still has an ARG for the ROS distro, and VSCode doesn't support build arguments in devcontainer.
https://github.com/microsoft/vscode-remote-release/issues/3545
I don't have a good path forward on this. Even if CI could build the necessary images, that only works if they can be cached, and for local changes, vscode would then build the wrong image.
We have a path forward. I'd say once the next VSCode version is out of beta and released, we can add build arguments to specify a ros distro. https://github.com/microsoft/vscode-remote-release/issues/3545#issuecomment-1892274755
This should now be possible @Ryanf55 right?
This should now be possible @Ryanf55 right?
Correct, feel free to submit a PR. I have other priorities right now.
Bug report
Required Info:
Steps to reproduce issue
Expected behavior
The devcontainer uses a
humble
base image for Docker.Actual behavior
The argument for the ROS version is unset, and defaults to
rolling
regardless of which branch of nav2 you use.In the dockerfile:
ARG FROM_IMAGE=ros:rolling
I would expect
FROM_IMAGE
is set tohumble
when using VSCode on the humble branch.Additional information
Relates to https://github.com/microsoft/vscode-remote-release/issues/3545. The recommended path from that thread is to use docker compose to supply those options.