| beierlm | 4335f99 | 2021-03-24 09:26:06 -0400 | [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 |
| garciadeblas | 09fa3d4 | 2019-10-08 18:30:46 +0200 | [diff] [blame] | 4 | # |
| beierlm | 4335f99 | 2021-03-24 09:26:06 -0400 | [diff] [blame] | 5 | # http://www.apache.org/licenses/LICENSE-2.0 |
| garciadeblas | 09fa3d4 | 2019-10-08 18:30:46 +0200 | [diff] [blame] | 6 | # |
| beierlm | 4335f99 | 2021-03-24 09:26:06 -0400 | [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 |
| garciadeblas | 09fa3d4 | 2019-10-08 18:30:46 +0200 | [diff] [blame] | 15 | # |
| beierlm | 4335f99 | 2021-03-24 09:26:06 -0400 | [diff] [blame] | 16 | # To run stage 2 locally: |
| garciadeblas | 09fa3d4 | 2019-10-08 18:30:46 +0200 | [diff] [blame] | 17 | # |
| beierlm | 4335f99 | 2021-03-24 09:26:06 -0400 | [diff] [blame] | 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 | # |
| 23 | |
| beierlm | d13d599 | 2022-01-13 13:08:57 -0500 | [diff] [blame] | 24 | FROM ubuntu:20.04 |
| 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 | 952e203 | 2017-05-09 13:02:32 -0400 | [diff] [blame] | 31 | |
| beierlm | 4335f99 | 2021-03-24 09:26:06 -0400 | [diff] [blame] | 32 | RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ |
| 33 | DEBIAN_FRONTEND=noninteractive apt-get -y install \ |
| 34 | debhelper \ |
| beierlm | d13d599 | 2022-01-13 13:08:57 -0500 | [diff] [blame] | 35 | dh-python \ |
| beierlm | 4335f99 | 2021-03-24 09:26:06 -0400 | [diff] [blame] | 36 | git \ |
| beierlm | d13d599 | 2022-01-13 13:08:57 -0500 | [diff] [blame] | 37 | python3.8 \ |
| beierlm | 4335f99 | 2021-03-24 09:26:06 -0400 | [diff] [blame] | 38 | python3-all \ |
| beierlm | d13d599 | 2022-01-13 13:08:57 -0500 | [diff] [blame] | 39 | python3.8-dev \ |
| beierlm | 4335f99 | 2021-03-24 09:26:06 -0400 | [diff] [blame] | 40 | python3-setuptools |
| 41 | |
| beierlm | d13d599 | 2022-01-13 13:08:57 -0500 | [diff] [blame] | 42 | RUN python3 -m easy_install pip==21.3.1 |
| 43 | RUN pip install tox==3.24.5 |
| beierlm | 4335f99 | 2021-03-24 09:26:06 -0400 | [diff] [blame] | 44 | |
| garciadeblas | e73c56e | 2024-02-22 11:27:50 +0100 | [diff] [blame] | 45 | RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ |
| 46 | DEBIAN_FRONTEND=noninteractive apt-get -y install \ |
| beierlm | 4335f99 | 2021-03-24 09:26:06 -0400 | [diff] [blame] | 47 | libcurl4-openssl-dev \ |
| 48 | libssl-dev \ |
| 49 | wget |
| David Garcia | 961145b | 2021-03-31 19:13:10 +0200 | [diff] [blame] | 50 | |
| 51 | ENV LC_ALL C.UTF-8 |
| beierlm | d13d599 | 2022-01-13 13:08:57 -0500 | [diff] [blame] | 52 | ENV LANG C.UTF-8 |