Skip to content

Commit

Permalink
making a dockerfile to show how to build with minimal installs in ubu…
Browse files Browse the repository at this point in the history
…ntu 22.04- need to disable roslint for now, but will grab a copy of it later and make it work again
  • Loading branch information
lucasw committed Nov 13, 2024
1 parent 585a0d5 commit a97ef81
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
34 changes: 34 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# docker build . -t ubuntu_2204
ARG IMAGE=ubuntu:22.04
FROM ${IMAGE}
ARG IMAGE
RUN echo ${IMAGE}

ENV DEBIAN_FRONTEND="noninteractive"

# be able to source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh

RUN apt-get update -yqq
RUN apt-get upgrade -yqq
RUN apt-get install -yqq apt-utils

RUN apt-get install -yqq catkin
RUN apt-get install -yqq build-essential
RUN apt-get install -yqq python3-rosdep2

# RUN rosdep init
RUN rosdep update
# RUN ROS_DISTRO=one rosdep install --from-paths src --ignore-src -r -s # do a dry-run first
# RUN ROS_DISTRO=one rosdep install --from-paths src --ignore-src -r -y
# RUN catkin_make
RUN apt-get install -yqq libcv-bridge-dev python3-cv-bridge
RUN apt-get install -yqq python3-dynamic-reconfigure libdynamic-reconfigure-config-init-mutex-dev
RUN apt-get install -yqq libimage-transport-dev
RUN apt-get install -yqq libnodeletlib-dev
RUN apt-get install -yqq libnodeletlib-dev

RUN apt-get install -yqq libx11-dev

COPY screen_grab /home/catkin_ws/src/screen_grab
WORKDIR /home/catkin_ws
6 changes: 3 additions & 3 deletions screen_grab/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.0.2)
project(screen_grab)

## Find catkin macros and libraries
Expand All @@ -10,7 +10,7 @@ find_package(catkin REQUIRED COMPONENTS
image_transport
nodelet
roscpp
roslint
# roslint
sensor_msgs
std_msgs
)
Expand All @@ -24,7 +24,7 @@ find_package(OpenCV REQUIRED COMPONENTS highgui)
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
# catkin_python_setup()

roslint_cpp()
# roslint_cpp()

################################################
## Declare ROS messages, services and actions ##
Expand Down

0 comments on commit a97ef81

Please sign in to comment.