blob: 27ab273a240d0b2331f4f573d7ebb0f05c2be2f0 [file] [log] [blame]
tierno87858ca2018-10-08 16:30:15 +02001# Licensed under the Apache License, Version 2.0 (the "License");
2# you may not use this file except in compliance with the License.
3# You may obtain a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS,
9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10# implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
beierlmb483b922021-02-11 14:57:14 -050013########################################################################################
14# This Dockerfile is intented for devops testing and deb package generation
tierno096d9ed2018-11-01 17:41:18 +010015#
beierlmb483b922021-02-11 14:57:14 -050016# To run stage 2 locally:
17#
18# docker build -t stage2 .
19# docker run -ti -v `pwd`:/work -w /work --entrypoint /bin/bash stage2
20# devops-stages/stage-test.sh
21# devops-stages/stage-build.sh
22#
tierno096d9ed2018-11-01 17:41:18 +010023
Dario Faccin37e09142023-05-24 12:48:37 +020024FROM ubuntu:22.04
beierlmb0291ff2022-01-13 11:37:31 -050025
26ARG APT_PROXY
27RUN if [ ! -z $APT_PROXY ] ; then \
28 echo "Acquire::http::Proxy \"$APT_PROXY\";" > /etc/apt/apt.conf.d/proxy.conf ;\
29 echo "Acquire::https::Proxy \"$APT_PROXY\";" >> /etc/apt/apt.conf.d/proxy.conf ;\
30 fi
Mike Marchetti26009a12018-04-25 14:57:09 -040031
beierlmb483b922021-02-11 14:57:14 -050032RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
33 DEBIAN_FRONTEND=noninteractive apt-get -y install \
34 debhelper \
beierlmb0291ff2022-01-13 11:37:31 -050035 dh-python \
beierlmb483b922021-02-11 14:57:14 -050036 git \
37 python3 \
38 python3-all \
39 python3-dev \
Dario Faccin37e09142023-05-24 12:48:37 +020040 python3-setuptools \
41 python3-pip \
42 tox
garciadeblas2644b762021-03-24 09:21:01 +010043
44ENV LC_ALL C.UTF-8
45ENV LANG C.UTF-8