Add script to automate copy TEMPLATE files to new repo
[TEMPLATE.git] / Dockerfile
1 # 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
26 FROM ubuntu:20.04
27
28 ARG APT_PROXY
29 RUN 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
34 RUN 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
44 RUN python3 -m easy_install pip==21.3.1
45 RUN pip install tox==3.24.5
46