diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2024-02-27 12:43:15 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2024-02-27 12:43:15 +0000 |
commit | b5e7a1d7d2adb3670824d726573cc08157a02b69 (patch) | |
tree | fa2f8f00435468a36e6705cd696648991b599d89 /.devcontainer/Dockerfile | |
parent | a398252b0dfe3c112e5643104aaf22c411a15b1d (diff) | |
download | noetic-llama-b5e7a1d7d2adb3670824d726573cc08157a02b69.tar.gz noetic-llama-b5e7a1d7d2adb3670824d726573cc08157a02b69.zip |
Added the ROS servicecall API
Diffstat (limited to '.devcontainer/Dockerfile')
-rw-r--r-- | .devcontainer/Dockerfile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..6992623 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,32 @@ +FROM osrf/ros:noetic-desktop-full + +# Add vscode user with same UID and GID as your host system +# (copied from https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user#_creating-a-nonroot-user) +ARG USERNAME=vscode +ARG USER_UID=1000 +ARG USER_GID=$USER_UID +RUN groupadd --gid $USER_GID $USERNAME \ + && useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \ + && apt-get update \ + && apt-get install -y sudo \ + && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ + && chmod 0440 /etc/sudoers.d/$USERNAME +# Switch from root to user +USER $USERNAME + +# Add user to video group to allow access to webcam +RUN sudo usermod --append --groups video $USERNAME + +# Update all packages +RUN sudo apt update && sudo apt upgrade -y + +# Install Git +RUN sudo apt install -y git python3-pip + +# Rosdep update +RUN rosdep update + +RUN pip3 install jinja2 ollama geocoder requests python-dotenv parsimonious + +# Source the ROS setup file +RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc |