blob: 9623f7f1e6c8a0c06eb66b4fcbb3d327e87e7579 [file] [log] [blame]
beierlm5b3f4b62021-02-17 07:22:20 -05001# 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
garciadeblas295e5d32017-09-07 13:33:53 +02004#
beierlm5b3f4b62021-02-17 07:22:20 -05005# http://www.apache.org/licenses/LICENSE-2.0
garciadeblas295e5d32017-09-07 13:33:53 +02006#
beierlm5b3f4b62021-02-17 07:22:20 -05007# 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
garciadeblas295e5d32017-09-07 13:33:53 +020015#
beierlm5b3f4b62021-02-17 07:22:20 -050016# To run stage 2 locally:
garciadeblas295e5d32017-09-07 13:33:53 +020017#
beierlm5b3f4b62021-02-17 07:22:20 -050018# 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#
garciadeblas295e5d32017-09-07 13:33:53 +020023
garciadeblas9a620072023-04-25 01:14:45 +020024FROM ubuntu:22.04
beierlm024959e2022-01-13 11:39:43 -050025
26ARG 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
garciadeblas295e5d32017-09-07 13:33:53 +020031
beierlm5b3f4b62021-02-17 07:22:20 -050032RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
33 DEBIAN_FRONTEND=noninteractive apt-get -y install \
34 debhelper \
beierlm024959e2022-01-13 11:39:43 -050035 dh-python \
beierlm5b3f4b62021-02-17 07:22:20 -050036 git \
garciadeblas9a620072023-04-25 01:14:45 +020037 python3 \
beierlm5b3f4b62021-02-17 07:22:20 -050038 python3-all \
garciadeblas9a620072023-04-25 01:14:45 +020039 python3-dev \
40 python3-setuptools \
41 python3-pip \
42 tox
beierlm5b3f4b62021-02-17 07:22:20 -050043
garciadeblas9a620072023-04-25 01:14:45 +020044ENV LC_ALL C.UTF-8
45ENV LANG C.UTF-8
beierlm5b3f4b62021-02-17 07:22:20 -050046
garciadeblas76504852022-04-28 12:50:59 +020047RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
48 DEBIAN_FRONTEND=noninteractive apt-get -y install wget build-essential dh-make \
garciadeblaseb2de822021-04-09 22:12:47 +020049 openjdk-8-jdk maven
beierlm5b3f4b62021-02-17 07:22:20 -050050RUN update-java-alternatives --set /usr/lib/jvm/java-1.8.0-openjdk-amd64