Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating the container environment to have setuptools and pyenv #5

Merged
merged 3 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions polymath-ros/jazzy/ubuntu/noble/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN <<EOF
apt-get update
apt-get install --no-install-recommends -y \
python3-pip \
python3.12-venv \
openssh-client \
iputils-ping \
ros-jazzy-rmw-cyclonedds-cpp \
Expand All @@ -18,5 +19,11 @@ RUN <<EOF
rm -rf /var/lib/apt/lists/*
EOF

ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv ${VIRTUAL_ENV}
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"

RUN pip install setuptools

ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]
8 changes: 6 additions & 2 deletions polymath-ros/jazzy/ubuntu/noble/test/controls/polymath-ros.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
its('content') { should include 'jazzy' }
end

describe command("su --login --command \"source /opt/ros/$ROS_DISTRO/setup.bash && ros2 pkg list | grep rmw_cyclonedds_cpp\"") do
describe command("which python") do
its('exit_status') { should cmp 0 }
its('stdout') { should match /\/opt\/venv\/bin\/python/ }
end

describe command('pip list') do
its('stdout') { should match /setuptools/ }
its('stdout') { should match /wheel/ }
end

describe command("su --login --command \"source /opt/ros/$ROS_DISTRO/setup.bash && ros2 pkg list | grep rmw_cyclonedds_cpp\"") do
its('exit_status') { should cmp 0 }
end
Loading