Skip to content

Commit b162141

Browse files
committedJun 9, 2021
initial commit. just checking in some stuff
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
0 parents  commit b162141

7 files changed

+51
-0
lines changed
 

‎.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/
2+
install/
3+
log/

‎.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/
2+
install/
3+
log/

‎Dockerfile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM rostooling/setup-ros-docker:ubuntu-focal-latest
2+
3+
RUN echo 'Acquire::HTTP::Proxy "http://240.10.0.1:3142";' >> /etc/apt/apt.conf.d/01proxy \
4+
&& echo 'Acquire::HTTPS::Proxy "false";' >> /etc/apt/apt.conf.d/01proxy
5+
ENV COLCON_HOME=/etc/colcon
6+
ENV ROS_DISTRO=foxy
7+
ENV ROS_PYTHON_VERSION=3
8+
9+
# Enable debug packages
10+
RUN apt-get update && apt-get install ubuntu-dbgsym-keyring && rm -rf /var/lib/apt/lists/*
11+
RUN echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" > /etc/apt/sources.list.d/ddebs.list && \
12+
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse" > /etc/apt/sources.list.d/ddebs.list
13+
14+
RUN apt-get update && apt install -y \
15+
clang \
16+
libc++-dev \
17+
libc++abi-dev \
18+
gdb \
19+
ccache
20+
21+
#Setup ROS2 code for compile
22+
WORKDIR /ws
23+
COPY src/ src/
24+
RUN apt-get update && rosdep update \
25+
&& rosdep install --from-paths src/ --ignore-src --rosdistro $ROS_DISTRO -y --skip-keys "console_bridge fastcdr fastrtps libopensplice67 libopensplice69 rti-connext-dds-5.3.1 urdfdom_headers"
26+
27+
RUN apt-get update && apt-get install -y zsh vim curl less htop
28+
RUN python3 -m pip install -U colcon-mixin
29+
RUN colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml && colcon mixin update

‎README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This is a ROS 2 template workspace.
2+
3+
Use the Dockerfile to create an image, fill in the repos, use the `tools/` to interact easily with the dev container

‎defaults.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build:
2+
symlink-install: true

‎startimg

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DEVIMG=ros2dev
2+
CONTNAME=ros2dev
3+
4+
rocker --user --x11 \
5+
--oyr-run-arg "--cap-add=SYS_PTRACE --security-opt seccomp=unconfined --name $CONTNAME -v $(pwd):/ws -w /ws" \
6+
$IMGNAME

‎ws.repos

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
repositories:
2+
org/repo:
3+
type: git
4+
url: https://github.com/org/repo
5+
version: master

0 commit comments

Comments
 (0)
Please sign in to comment.