blob: 7784d7e27ae88892ea31eef48796a4b113228b56 [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
garciadeblas4e365052023-03-23 13:25:27 +010026FROM ubuntu:22.04
garciadeblase00916c2022-11-10 13:24:28 +010027
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 \
garciadeblas4e365052023-03-23 13:25:27 +010042 python3-setuptools \
43 python3-pip \
44 tox
garciadeblase00916c2022-11-10 13:24:28 +010045
garciadeblas4e365052023-03-23 13:25:27 +010046ENV LC_ALL C.UTF-8
47ENV LANG C.UTF-8
garciadeblase00916c2022-11-10 13:24:28 +010048