GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — rclex_docker/Dockerfile at main · rclex/rclex_docker

Expand file tree

/

Dockerfile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
87 lines (71 loc) · 2.61 KB
/

Dockerfile

Copy path

File metadata and controls

87 lines (71 loc) · 2.61 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Setup the target version
## base image, ARG is overridable by --build-arg
ARG BASE_IMAGE=hexpm/elixir:1.17.3-erlang-27.2.4-ubuntu-jammy-20250126
FROM $BASE_IMAGE
## Set Ubuntu version by Codename, ARG is overridable by --build-arg
ARG UBUNTU_CODENAME
ENV UBUNTU_CODENAME=${UBUNTU_CODENAME:-jammy}
## Set ROS 2 distribution, ARG is overridable by --build-arg
ARG ROS_DISTRO
ENV ROS_DISTRO=${ROS_DISTRO:-humble}
# Force error about debconf
ENV DEBIAN_FRONTEND=noninteractive
# Install for rclex_docker
## inotify-tools: for mix test.watch
## astyle: to format C code in NIFs
RUN apt-get update && apt-get install -y \
git sudo build-essential \
inotify-tools \
astyle \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install ROS START
## refer to https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html
## Set locale
RUN apt-get update && apt-get -y install \
locales \
&& locale-gen en_US en_US.UTF-8 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& export LANG=en_US.UTF-8 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
## Setup Sources
RUN apt-get update && apt-get install -y \
software-properties-common \
curl \
&& sudo add-apt-repository universe \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu ${UBUNTU_CODENAME} main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null
## Upgrade before installing ROS 2 packages
## WHY: refer to "Warning" in https://docs.ros.org/en/rolling/Installation/Ubuntu-Install-Debians.html#install-ros-2-packages
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
## Install ROS 2 packages
RUN apt-get update && apt-get install -y \
ros-${ROS_DISTRO}-ros-base \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
## Install colcon-core
RUN apt-get update && apt-get install -y \
python3-colcon-common-extensions \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
## Setup ROS environment in shell
RUN echo 'source /opt/ros/${ROS_DISTRO}/setup.sh' >> ~/.bashrc
# Install ROS END
# cleanup
RUN apt-get -qy autoremove
# Install hex and rebar
RUN mix local.hex --force && \
mix local.rebar --force
# Check version
RUN . /opt/ros/${ROS_DISTRO}/setup.sh && env | grep ROS && \
mix hex.info
COPY docker-entrypoint.sh /root/
RUN chmod +x /root/docker-entrypoint.sh
ENTRYPOINT ["/root/docker-entrypoint.sh"]
CMD ["/bin/bash"]
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.