| 1 |
# Copyright 2024 Proyectos y Sistemas de Mantenimiento SL (eProsima). |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
# Tag, branch, or commit in github.com/eProsima/DDS-Suite |
| 16 |
ARG ubuntu_version=22.04 |
| 17 |
FROM ubuntu:$ubuntu_version AS ubuntu-net-tools |
| 18 |
|
| 19 |
# Needed for a dependency that forces to set timezone |
| 20 |
ENV TZ=Europe/Madrid |
| 21 |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
| 22 |
|
| 23 |
# Avoids using interactions during building |
| 24 |
ENV DEBIAN_FRONTEND=noninteractive |
| 25 |
|
| 26 |
# Install apt dependencies |
| 27 |
RUN apt-get update && apt-get install --yes net-tools && rm -rf /var/lib/apt/lists/* |
| 28 |
|
| 29 |
FROM ubuntu:$ubuntu_version AS ubuntu-cli |
| 30 |
|
| 31 |
# Needed for a dependency that forces to set timezone |
| 32 |
ENV TZ=Europe/Madrid |
| 33 |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
| 34 |
|
| 35 |
# Avoids using interactions during building |
| 36 |
ENV DEBIAN_FRONTEND=noninteractive |
| 37 |
|
| 38 |
# Install apt dependencies |
| 39 |
RUN apt-get update && apt-get install --yes python3 python3-pip && rm -rf /var/lib/apt/lists/* |
| 40 |
|
| 41 |
RUN pip3 install psutil |