1 # Copyright 2021 Canonical Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # 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, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
16 ########################################################################################
17 # This Dockerfile is intented for devops testing and deb package generation
19 # To run stage 2 locally:
21 # docker build -t stage2 .
22 # docker run -ti -v `pwd`:/work -w /work --entrypoint /bin/bash stage2
23 # devops-stages/stage-test.sh
24 # devops-stages/stage-build.sh
30 RUN if [ ! -z $APT_PROXY ] ; then \
31 echo "Acquire::http::Proxy \"$APT_PROXY\";" > /etc/apt/apt.conf.d/proxy.conf ;\
32 echo "Acquire::https::Proxy \"$APT_PROXY\";" >> /etc/apt/apt.conf.d/proxy.conf ;\
35 RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
36 DEBIAN_FRONTEND=noninteractive apt-get -y install \
45 RUN python3 -m easy_install pip==21.0.1
46 RUN pip3 install tox==3.22.0