Skip to content

Instantly share code, notes, and snippets.

@acmiyaguchi
Created April 11, 2023 00:42
Show Gist options
  • Save acmiyaguchi/a0efca3b3265247d45bb4b8408e4b815 to your computer and use it in GitHub Desktop.
Save acmiyaguchi/a0efca3b3265247d45bb4b8408e4b815 to your computer and use it in GitHub Desktop.
skeleton for working with realsense in docker
version: "3.8"
services:
# base container -- will simply exit once brought up
# we can run commands via this container for running experiments, etc.
base:
network_mode: host
command: bash
volumes:
- ./:/app/
devices:
- /dev/ttyUSB0
# the /dev path to the webcam?
privileged: true
FROM ros:noetic-ros-base-focal
RUN apt-get update && \
apt-get install -y \
apt-utils \
build-essential \
git \
python3-pip \
python-is-python3
WORKDIR /app
RUN mkdir -p /app/src
RUN git clone --recurse-submodules https://github.com/rickstaa/realsense-ros-gazebo.git src
RUN rosdep install --from-paths src --ignore-src -r -y
# Other commands as necessary
@acmiyaguchi
Copy link
Author

To run this:

docker compose build
docker compose run base bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment