blob: db2155d35db8ab7aec163c836e46001dc2e24940 [file] [log] [blame]
garciadeblase00916c2022-11-10 13:24:28 +01001# Copyright ETSI Contributors and Others.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12# implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15########################################################################################
16# This Dockerfile is intented for devops testing and deb package generation
17#
18# To run stage 2 locally:
19#
20# docker build -t stage2 .
21# docker run -ti -v `pwd`:/work -w /work --entrypoint /bin/bash stage2
22# devops-stages/stage-test.sh
23# devops-stages/stage-build.sh
24#
25
26FROM ubuntu:20.04
27
28ARG APT_PROXY
29RUN if [ ! -z $APT_PROXY ] ; then \
30 echo "Acquire::http::Proxy \"$APT_PROXY\";" > /etc/apt/apt.conf.d/proxy.conf ;\
31 echo "Acquire::https::Proxy \"$APT_PROXY\";" >> /etc/apt/apt.conf.d/proxy.conf ;\
32 fi
33
34RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
35 DEBIAN_FRONTEND=noninteractive apt-get -y install \
36 debhelper \
37 dh-python \
38 git \
39 python3 \
40 python3-all \
41 python3-dev \
42 python3-setuptools
43
garciadeblas66834562022-11-10 14:07:04 +010044RUN python3 -m easy_install pip==22.3
garciadeblase00916c2022-11-10 13:24:28 +010045RUN pip install tox==3.24.5
46