forked from alpine-ros/rosdistro1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (39 loc) · 980 Bytes
/
Dockerfile
File metadata and controls
48 lines (39 loc) · 980 Bytes
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
ARG ALPINE_VERSION=3.20
FROM ghcr.io/alpine-ros/alpine-ros:noetic-${ALPINE_VERSION}-bare
ARG ALPINE_VERSION=3.20
ENV ROS_PYTHON_VERSION=3
RUN apk add --no-cache \
bash \
curl \
findutils \
git \
github-cli \
py3-pip \
py3-rosdep \
py3-rosinstall-generator \
py3-yaml \
python3
RUN <<EOF
case ${ALPINE_VERSION} in
3.17)
pip3 install \
git+https://github.com/alpine-ros/ros-abuild-docker.git
;;
*)
pip3 install --break-system-packages \
git+https://github.com/alpine-ros/ros-abuild-docker.git
;;
esac
EOF
RUN rosdep init \
&& sed -i -e 's|ros/rosdistro/master|alpine-ros/rosdistro/alpine-custom-apk|' \
/etc/ros/rosdep/sources.list.d/20-default.list
ENV HOME="/root"
ARG ROS_DISTRO="noetic"
ENV ROS_DISTRO=${ROS_DISTRO}
ENV DRYRUN=true
COPY scripts /scripts
VOLUME /rosdistro1
WORKDIR /rosdistro1
RUN git config --global --add safe.directory /rosdistro1
ENTRYPOINT ["/scripts/update_aports.sh"]