blob: c4c9b6c80d443697af9ccc3084132cb840cd017a [file] [log] [blame]
tierno0c01ffa2018-11-19 14:39:33 +01001# 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.
beierlma0911d32021-02-22 14:30:35 -050013########################################################################################
14# This Dockerfile is intented for devops testing and deb package generation
tiernodfe09572018-04-24 10:41:10 +020015#
beierlma0911d32021-02-22 14:30:35 -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#
tiernodfe09572018-04-24 10:41:10 +020023
Mark Beierl375aeb22023-05-10 13:55:55 -040024FROM ubuntu:22.04
beierlm0ae051c2022-01-13 11:40:06 -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
tiernoc94c3df2018-02-09 15:38:54 +010031
beierlma0911d32021-02-22 14:30:35 -050032RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
33 DEBIAN_FRONTEND=noninteractive apt-get -y install \
34 debhelper \
beierlm0ae051c2022-01-13 11:40:06 -050035 dh-python \
beierlma0911d32021-02-22 14:30:35 -050036 git \
Mark Beierl375aeb22023-05-10 13:55:55 -040037 python3 \
beierlma0911d32021-02-22 14:30:35 -050038 python3-all \
Mark Beierl375aeb22023-05-10 13:55:55 -040039 python3-dev \
40 python3-setuptools \
41 python3-pip \
42 tox
tierno0c01ffa2018-11-19 14:39:33 +010043
Mark Beierl375aeb22023-05-10 13:55:55 -040044ENV LC_ALL C.UTF-8
45ENV LANG C.UTF-8
beierlma0911d32021-02-22 14:30:35 -050046
47RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wget
tiernoa8d63632018-05-10 13:12:32 +020048