blob: 3846ee03a75876300b8e9c4e6380461d14eb885f [file] [log] [blame]
beierlm4335f992021-03-24 09:26:06 -04001# 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
garciadeblas09fa3d42019-10-08 18:30:46 +02004#
beierlm4335f992021-03-24 09:26:06 -04005# http://www.apache.org/licenses/LICENSE-2.0
garciadeblas09fa3d42019-10-08 18:30:46 +02006#
beierlm4335f992021-03-24 09:26:06 -04007# 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########################################################################################
14# This Dockerfile is intented for devops testing and deb package generation
garciadeblas09fa3d42019-10-08 18:30:46 +020015#
beierlm4335f992021-03-24 09:26:06 -040016# To run stage 2 locally:
garciadeblas09fa3d42019-10-08 18:30:46 +020017#
beierlm4335f992021-03-24 09:26:06 -040018# 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#
23
beierlmd13d5992022-01-13 13:08:57 -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
Mike Marchetti952e2032017-05-09 13:02:32 -040031
beierlm4335f992021-03-24 09:26:06 -040032RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
33 DEBIAN_FRONTEND=noninteractive apt-get -y install \
34 debhelper \
beierlmd13d5992022-01-13 13:08:57 -050035 dh-python \
beierlm4335f992021-03-24 09:26:06 -040036 git \
beierlmd13d5992022-01-13 13:08:57 -050037 python3.8 \
beierlm4335f992021-03-24 09:26:06 -040038 python3-all \
beierlmd13d5992022-01-13 13:08:57 -050039 python3.8-dev \
beierlm4335f992021-03-24 09:26:06 -040040 python3-setuptools
41
beierlmd13d5992022-01-13 13:08:57 -050042RUN python3 -m easy_install pip==21.3.1
43RUN pip install tox==3.24.5
beierlm4335f992021-03-24 09:26:06 -040044
garciadeblase73c56e2024-02-22 11:27:50 +010045RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
46 DEBIAN_FRONTEND=noninteractive apt-get -y install \
beierlm4335f992021-03-24 09:26:06 -040047 libcurl4-openssl-dev \
48 libssl-dev \
49 wget
David Garcia961145b2021-03-31 19:13:10 +020050
51ENV LC_ALL C.UTF-8
beierlmd13d5992022-01-13 13:08:57 -050052ENV LANG C.UTF-8