blob: d09288637380603b8a87119a2549a88498618087 [file] [log] [blame]
Felipe Vicens3b7a5ed2020-04-08 16:36:18 +02001# 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.
beierlma2503ee2021-03-23 15:23:10 -040013########################################################################################
14# This Dockerfile is intented for devops testing and deb package generation
kumaran.m3b4814a2020-05-01 19:48:54 +053015#
beierlma2503ee2021-03-23 15:23:10 -040016# To run stage 2 locally:
17#
18# docker build -t stage2 .
19# docker run -ti -v `pwd`:/work -w /work --entrypoint /bin/bash stage2
20# devops-stages/stage-test.sh
21# devops-stages/stage-build.sh
22#
kumaran.m3b4814a2020-05-01 19:48:54 +053023
beierlm7b018342022-01-18 08:48:07 -050024FROM ubuntu:20.04
25
26ARG APT_PROXY
27RUN if [ ! -z $APT_PROXY ] ; then \
28 echo "Acquire::http::Proxy \"$APT_PROXY\";" > /etc/apt/apt.conf.d/proxy.conf ;\
29 echo "Acquire::https::Proxy \"$APT_PROXY\";" >> /etc/apt/apt.conf.d/proxy.conf ;\
30 fi
kumaran.m3b4814a2020-05-01 19:48:54 +053031
beierlma2503ee2021-03-23 15:23:10 -040032RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
33 DEBIAN_FRONTEND=noninteractive apt-get -y install \
34 debhelper \
35 dh-make \
36 git