blob: af9296a6e06f5edd7ae8085a40be2e878ebe2990 [file] [log] [blame]
zamre7ecb4e82023-11-09 12:06:53 +00001# 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
David Garcia95ba7e12021-02-03 11:10:28 +01004#
zamre7ecb4e82023-11-09 12:06:53 +00005# http://www.apache.org/licenses/LICENSE-2.0
David Garcia95ba7e12021-02-03 11:10:28 +01006#
7# Unless required by applicable law or agreed to in writing, software
zamre7ecb4e82023-11-09 12:06:53 +00008# 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.
David Garciaa60ec732021-03-17 15:28:47 +010013########################################################################################
14# This Dockerfile is intented for devops testing and deb package generation
15#
16# 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#
Mike Marchetti0d2a2db2018-03-22 14:57:17 -040023
zamre7ecb4e82023-11-09 12:06:53 +000024FROM ubuntu:22.04
David Garcia95ba7e12021-02-03 11:10:28 +010025
beierlmd7449362022-01-13 10:53:08 -050026ARG 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
31
David Garciaa60ec732021-03-17 15:28:47 +010032RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
33 DEBIAN_FRONTEND=noninteractive apt-get -y install \
34 debhelper \
zamre7ecb4e82023-11-09 12:06:53 +000035 dh-python \
David Garciaa60ec732021-03-17 15:28:47 +010036 git \
Dario Faccinf776ffa2023-03-31 16:47:35 +020037 python3 \
David Garciaa60ec732021-03-17 15:28:47 +010038 python3-all \
39 python3-dev \
zamre7ecb4e82023-11-09 12:06:53 +000040 python3-setuptools \
41 python3-pip \
42 tox
beierlmf6ec22e2021-06-01 16:20:42 -040043
44ENV LC_ALL C.UTF-8
45ENV LANG C.UTF-8
46
garciadeblas8080e4b2023-04-14 09:57:17 +020047RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
48 DEBIAN_FRONTEND=noninteractive apt-get -y install \
zamre7ecb4e82023-11-09 12:06:53 +000049 dh-make
garciadeblas8080e4b2023-04-14 09:57:17 +020050
51RUN curl https://get.helm.sh/helm-v3.11.3-linux-amd64.tar.gz --output helm-v3.11.3.tar.gz \
52 && tar -zxvf helm-v3.11.3.tar.gz \
53 && mv linux-amd64/helm /usr/local/bin/helm \
54 && rm -r linux-amd64/
55
56RUN curl https://get.datree.io | /bin/bash
57
58RUN helm plugin install https://github.com/datreeio/helm-datree
59