File tree Expand file tree Collapse file tree 2 files changed +73
-0
lines changed Expand file tree Collapse file tree 2 files changed +73
-0
lines changed Original file line number Diff line number Diff line change
1
+ # superflore-devel
2
+ # Copyright (C) 2024 Wind River Systems, Inc.
3
+ #
4
+ # SPDX-License-Identifier: MIT
5
+ #
6
+
7
+ FROM osrf/ros2:devel
8
+
9
+ ENV ROS_HOME="/home/ubuntu"
10
+ ENV ROSDEP_SOURCE_PATH="/home/ubuntu/rosdep"
11
+ ENV ROS_DISTRO="rolling"
12
+ ENV ROSDISTRO_URL="https://raw.githubusercontent.com/ros/rosdistro/master/rosdep"
13
+ ENV GIT_FULLNAME="Firstname Lastname"
14
+
15
+
16
+ RUN apt-get update && \
17
+ DEBIAN_FRONTEND=noninteractive apt-get install -y \
18
+ apt-utils \
19
+ curl \
20
+ locales \
21
+ python3 \
22
+ python3-pip \
23
+ python3.12-venv \
24
+ python3-virtualenv \
25
+ vim \
26
+ wget && \
27
+ apt-get clean && \
28
+ locale-gen en_US en_US.UTF-8 && \
29
+ update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
30
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
31
+
32
+ USER ubuntu
33
+ WORKDIR /home/ubuntu
34
+
35
+ RUN git config --global user.email "${GIT_EMAIL}" && \
36
+ git config --global user.name "${GIT_FULLNAME}"
37
+
38
+ CMD ["/bin/bash" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -x
4
+
5
+ # export ROS_HOME=${HOME}
6
+ if [ -z " $ROS_HOME " ]; then
7
+ echo " ROS_HOME is not set"
8
+ exit 1
9
+ fi
10
+
11
+ # export ROSDEP_SOURCE_PATH=${ROS_HOME}/rosdep
12
+ if [ -z " $ROSDEP_SOURCE_PATH " ]; then
13
+ echo " ROSDEP_SOURCE_PATH is not set"
14
+ exit 1
15
+ fi
16
+ mkdir -p ${ROSDEP_SOURCE_PATH}
17
+
18
+ PROJECT_DIR=$PWD
19
+
20
+ python3 -m venv $HOME /superflore_venv
21
+ source $HOME /superflore_venv/bin/activate
22
+ python3 -m pip install .
23
+
24
+ echo " Running rosdep init"
25
+ rosdep init
26
+
27
+ echo " Running rosdep update"
28
+ rosdep update
29
+
30
+ cd ${PROJECT_DIR}
31
+ ROSDISTRO_GIT=" https://github.com/ros/rosdistro"
32
+ git clone ${ROSDISTRO_GIT} ${HOME} /rosdistro
33
+
34
+ ROSDISTRO_URL=" https://raw.githubusercontent.com/ros/rosdistro/master/rosdep"
35
+ sed -i -e " s|${ROSDISTRO_URL} |file://${HOME} /rosdistro/rosdep|" ${ROSDEP_SOURCE_PATH} /20-default.list
You can’t perform that action at this time.
0 commit comments