1 # Copyright ETSI Contributors and Others.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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
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
18 # To run stage 2 locally:
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
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 ;\
34 RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
35 DEBIAN_FRONTEND=noninteractive apt-get -y install \
44 RUN python3 -m easy_install pip==22.3
45 RUN pip install tox==3.24.5