| Dominik Fleischmann | ca6eb95 | 2019-11-27 16:38:18 +0100 | [diff] [blame] | 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 | # |
| David Garcia | 7c6840b | 2021-02-12 17:19:13 +0100 | [diff] [blame] | 5 | # http://www.apache.org/licenses/LICENSE-2.0 |
| Dominik Fleischmann | ca6eb95 | 2019-11-27 16:38:18 +0100 | [diff] [blame] | 6 | # |
| David Garcia | 7c6840b | 2021-02-12 17:19:13 +0100 | [diff] [blame] | 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 | # 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 | # |
| Dominik Fleischmann | ca6eb95 | 2019-11-27 16:38:18 +0100 | [diff] [blame] | 23 | |
| Dario Faccin | c3e7044 | 2023-05-23 17:21:38 +0200 | [diff] [blame^] | 24 | FROM ubuntu:22.04 |
| beierlm | 2519b54 | 2022-01-13 11:43:45 -0500 | [diff] [blame] | 25 | |
| 26 | ARG APT_PROXY |
| 27 | RUN 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 |
| Mike Marchetti | 4b81dfa | 2018-04-18 10:52:18 -0400 | [diff] [blame] | 31 | |
| David Garcia | 7c6840b | 2021-02-12 17:19:13 +0100 | [diff] [blame] | 32 | RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ |
| 33 | DEBIAN_FRONTEND=noninteractive apt-get -y install \ |
| 34 | debhelper \ |
| beierlm | 2519b54 | 2022-01-13 11:43:45 -0500 | [diff] [blame] | 35 | dh-python \ |
| David Garcia | 7c6840b | 2021-02-12 17:19:13 +0100 | [diff] [blame] | 36 | git \ |
| 37 | python3 \ |
| 38 | python3-all \ |
| 39 | python3-dev \ |
| Dario Faccin | c3e7044 | 2023-05-23 17:21:38 +0200 | [diff] [blame^] | 40 | python3-setuptools \ |
| 41 | python3-pip \ |
| 42 | tox |
| David Garcia | 7c6840b | 2021-02-12 17:19:13 +0100 | [diff] [blame] | 43 | |
| Dario Faccin | c3e7044 | 2023-05-23 17:21:38 +0200 | [diff] [blame^] | 44 | ENV LC_ALL C.UTF-8 |
| 45 | ENV LANG C.UTF-8 |