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