blob: 9206d0cf07b226c29fec067504890f61daccc73f [file] [log] [blame]
almagia83721f32020-06-18 12:21:45 +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.
13
beierlma1f627a2021-03-23 16:04:34 -040014########################################################################################
15# This Dockerfile is intented for devops testing and deb package generation
Felipe Vicens4cc047e2020-06-24 15:55:57 +020016#
beierlma1f627a2021-03-23 16:04:34 -040017# To run stage 2 locally:
18#
19# docker build -t stage2 .
20# docker run -ti -v `pwd`:/work -w /work --entrypoint /bin/bash stage2
21# devops-stages/stage-test.sh
22# devops-stages/stage-build.sh
23#
almagia83721f32020-06-18 12:21:45 +020024
garciadeblasb9dfe032023-05-10 17:25:47 +020025FROM ubuntu:22.04
beierlme5368252022-01-13 13:24:08 -050026
27ARG APT_PROXY
28RUN if [ ! -z $APT_PROXY ] ; then \
29 echo "Acquire::http::Proxy \"$APT_PROXY\";" > /etc/apt/apt.conf.d/proxy.conf ;\
30 echo "Acquire::https::Proxy \"$APT_PROXY\";" >> /etc/apt/apt.conf.d/proxy.conf ;\
31 fi
Felipe Vicensf96bb452020-06-22 08:12:30 +020032
beierlma1f627a2021-03-23 16:04:34 -040033RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
34 DEBIAN_FRONTEND=noninteractive apt-get -y install \
35 debhelper \
garciadeblasb9dfe032023-05-10 17:25:47 +020036 dh-python \
37 git \
38 python3 \
39 python3-all \
40 python3-dev \
41 python3-setuptools \
42 python3-pip \
43 tox
44
45RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \
46 libcurl4-openssl-dev \
47 libssl-dev \
48 dh-make
49
50ENV LC_ALL C.UTF-8
51ENV LANG C.UTF-8
52