| David Garcia | 95ba7e1 | 2021-02-03 11:10:28 +0100 | [diff] [blame] | 1 | # Copyright 2021 Canonical Ltd. |
| 2 | # |
| 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 |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 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 |
| 13 | # under the License. |
| 14 | # |
| David Garcia | 95ba7e1 | 2021-02-03 11:10:28 +0100 | [diff] [blame] | 15 | ## |
| David Garcia | a60ec73 | 2021-03-17 15:28:47 +0100 | [diff] [blame] | 16 | ######################################################################################## |
| 17 | # This Dockerfile is intented for devops testing and deb package generation |
| 18 | # |
| 19 | # To run stage 2 locally: |
| 20 | # |
| 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 |
| 25 | # |
| Mike Marchetti | 0d2a2db | 2018-03-22 14:57:17 -0400 | [diff] [blame] | 26 | |
| Dario Faccin | f776ffa | 2023-03-31 16:47:35 +0200 | [diff] [blame] | 27 | FROM ubuntu:20.04 |
| David Garcia | 95ba7e1 | 2021-02-03 11:10:28 +0100 | [diff] [blame] | 28 | |
| beierlm | d744936 | 2022-01-13 10:53:08 -0500 | [diff] [blame] | 29 | ARG APT_PROXY |
| 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 ;\ |
| 33 | fi |
| 34 | |
| David Garcia | a60ec73 | 2021-03-17 15:28:47 +0100 | [diff] [blame] | 35 | RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ |
| 36 | DEBIAN_FRONTEND=noninteractive apt-get -y install \ |
| 37 | debhelper \ |
| 38 | dh-make \ |
| 39 | git \ |
| Dario Faccin | f776ffa | 2023-03-31 16:47:35 +0200 | [diff] [blame] | 40 | python3 \ |
| David Garcia | a60ec73 | 2021-03-17 15:28:47 +0100 | [diff] [blame] | 41 | python3-all \ |
| 42 | python3-dev \ |
| 43 | python3-setuptools |
| 44 | |
| Dario Faccin | f776ffa | 2023-03-31 16:47:35 +0200 | [diff] [blame] | 45 | RUN python3 -m easy_install pip==21.3.1 |
| 46 | RUN pip install tox==3.24.5 |
| beierlm | f6ec22e | 2021-06-01 16:20:42 -0400 | [diff] [blame] | 47 | |
| 48 | ENV LC_ALL C.UTF-8 |
| 49 | ENV LANG C.UTF-8 |
| 50 | |
| garciadeblas | 8080e4b | 2023-04-14 09:57:17 +0200 | [diff] [blame] | 51 | RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ |
| 52 | DEBIAN_FRONTEND=noninteractive apt-get -y install \ |
| 53 | unzip |
| 54 | |
| 55 | RUN curl https://get.helm.sh/helm-v3.11.3-linux-amd64.tar.gz --output helm-v3.11.3.tar.gz \ |
| 56 | && tar -zxvf helm-v3.11.3.tar.gz \ |
| 57 | && mv linux-amd64/helm /usr/local/bin/helm \ |
| 58 | && rm -r linux-amd64/ |
| 59 | |
| 60 | RUN curl https://get.datree.io | /bin/bash |
| 61 | |
| 62 | RUN helm plugin install https://github.com/datreeio/helm-datree |
| 63 | |