blob: f99b758d73be981003a31b3187b31efbc95948a8 [file] [log] [blame]
tierno59bc1ce2018-11-13 15:06:45 +00001# 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.
sousaedu96abfc22021-02-18 14:57:01 +010013########################################################################################
14# This Dockerfile is intented for devops testing and deb package generation
tierno59bc1ce2018-11-13 15:06:45 +000015#
sousaedu96abfc22021-02-18 14:57:01 +010016# 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#
tierno59bc1ce2018-11-13 15:06:45 +000023
beierlm5ef8b732022-01-13 13:21:53 -050024FROM ubuntu:20.04
25
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
garciadeblas3a82fc02017-04-21 15:03:48 +020031
sousaedu96abfc22021-02-18 14:57:01 +010032RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
33 DEBIAN_FRONTEND=noninteractive apt-get -y install \
34 debhelper \
beierlm5ef8b732022-01-13 13:21:53 -050035 dh-python \
sousaedu96abfc22021-02-18 14:57:01 +010036 git \
37 python3 \
38 python3-all \
39 python3-dev \
40 python3-setuptools
41
beierlm5ef8b732022-01-13 13:21:53 -050042RUN python3 -m easy_install pip==21.3.1
43RUN pip install tox==3.24.5
sousaedu368e5662021-05-20 15:20:14 +020044
45ENV LC_ALL C.UTF-8
46ENV LANG C.UTF-8