| beierlm | 5b3f4b6 | 2021-02-17 07:22:20 -0500 | [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 | 295e5d3 | 2017-09-07 13:33:53 +0200 | [diff] [blame] | 4 | # |
| beierlm | 5b3f4b6 | 2021-02-17 07:22:20 -0500 | [diff] [blame] | 5 | # http://www.apache.org/licenses/LICENSE-2.0 |
| garciadeblas | 295e5d3 | 2017-09-07 13:33:53 +0200 | [diff] [blame] | 6 | # |
| beierlm | 5b3f4b6 | 2021-02-17 07:22:20 -0500 | [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 | 295e5d3 | 2017-09-07 13:33:53 +0200 | [diff] [blame] | 15 | # |
| beierlm | 5b3f4b6 | 2021-02-17 07:22:20 -0500 | [diff] [blame] | 16 | # To run stage 2 locally: |
| garciadeblas | 295e5d3 | 2017-09-07 13:33:53 +0200 | [diff] [blame] | 17 | # |
| beierlm | 5b3f4b6 | 2021-02-17 07:22:20 -0500 | [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 | # |
| garciadeblas | 295e5d3 | 2017-09-07 13:33:53 +0200 | [diff] [blame] | 23 | |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 24 | FROM ubuntu:18.04 |
| garciadeblas | 295e5d3 | 2017-09-07 13:33:53 +0200 | [diff] [blame] | 25 | |
| beierlm | 5b3f4b6 | 2021-02-17 07:22:20 -0500 | [diff] [blame] | 26 | RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ |
| 27 | DEBIAN_FRONTEND=noninteractive apt-get -y install \ |
| 28 | debhelper \ |
| 29 | git \ |
| 30 | python3 \ |
| 31 | python3-all \ |
| 32 | python3-dev \ |
| 33 | python3-setuptools |
| 34 | |
| 35 | RUN python3 -m easy_install pip==21.0.1 |
| 36 | RUN pip3 install tox==3.22.0 |
| 37 | |
| 38 | RUN DEBIAN_FRONTEND=noninteractive apt -y install wget build-essential dh-make \ |
| 39 | openjdk-8-jdk maven |
| 40 | RUN update-java-alternatives --set /usr/lib/jvm/java-1.8.0-openjdk-amd64 |