more devcontainer fixes
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
FROM osrf/ros:jazzy-desktop-full-noble
|
FROM osrf/ros:jazzy-desktop-full-noble
|
||||||
|
|
||||||
SHELL [ "/bin/bash" , "-c" ]
|
|
||||||
|
RUN apt-get update && apt-get install -y libsecret-1-0 libsecret-1-dev
|
||||||
|
|
||||||
USER ubuntu
|
USER ubuntu
|
||||||
|
|
||||||
|
|
||||||
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc
|
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc
|
||||||
RUN echo "source /usr/share/colcon_cd/function/colcon_cd.sh" >> ~/.bashrc
|
RUN echo "source /usr/share/colcon_cd/function/colcon_cd.sh" >> ~/.bashrc
|
||||||
RUN echo "source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash" >> ~/.bashrc
|
RUN echo "source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash" >> ~/.bashrc
|
||||||
RUN echo "export _colcon_cd_root=/opt/ros/jazzy/" >> ~/.bashrc
|
RUN echo "export _colcon_cd_root=/opt/ros/jazzy/" >> ~/.bashrc
|
||||||
|
|
||||||
|
SHELL [ "/bin/bash" , "-c" ]
|
||||||
|
|||||||
@@ -14,11 +14,11 @@
|
|||||||
],
|
],
|
||||||
"workspaceMount": "source=${localWorkspaceFolder},target=/${localWorkspaceFolderBasename},type=bind",
|
"workspaceMount": "source=${localWorkspaceFolder},target=/${localWorkspaceFolderBasename},type=bind",
|
||||||
"workspaceFolder": "/${localWorkspaceFolderBasename}",
|
"workspaceFolder": "/${localWorkspaceFolderBasename}",
|
||||||
// for linux
|
"remoteEnv": {
|
||||||
"containerEnv": {
|
|
||||||
// Uncomment to allow the container to access the X server on the host e.g. to run Rviz and other GUI tools
|
|
||||||
"DISPLAY": "${localEnv:DISPLAY}",
|
"DISPLAY": "${localEnv:DISPLAY}",
|
||||||
"TZ": "Europe/Amsterdam"
|
"TZ": "Europe/Amsterdam",
|
||||||
|
"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1000/bus",
|
||||||
|
"XDG_RUNTIME_DIR": "/run/user/1000"
|
||||||
},
|
},
|
||||||
"mounts": [
|
"mounts": [
|
||||||
// Uncomment to allow the container to access the X server on the host e.g. to run Rviz and other GUI tools
|
// Uncomment to allow the container to access the X server on the host e.g. to run Rviz and other GUI tools
|
||||||
@@ -38,6 +38,11 @@
|
|||||||
"source": "/dev/dri",
|
"source": "/dev/dri",
|
||||||
"target": "/dev/dri",
|
"target": "/dev/dri",
|
||||||
"type": "bind"
|
"type": "bind"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/run/user/1000/bus",
|
||||||
|
"target": "/run/user/1000/bus",
|
||||||
|
"type": "bind"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"customizations": {
|
"customizations": {
|
||||||
|
|||||||
Reference in New Issue
Block a user