blob: 8226ee93c453324667348968dc83312a3ba8c48a [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
beierlmd3b8c072022-01-13 11:39:43 -050024FROM ubuntu:20.04
25
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 \
beierlmd3b8c072022-01-13 11:39:43 -050035 dh-python \
beierlm5b3f4b62021-02-17 07:22:20 -050036 git \
beierlmd3b8c072022-01-13 11:39:43 -050037 python3.8 \
beierlm5b3f4b62021-02-17 07:22:20 -050038 python3-all \
beierlmd3b8c072022-01-13 11:39:43 -050039 python3.8-dev \
beierlm5b3f4b62021-02-17 07:22:20 -050040 python3-setuptools
41
beierlmd3b8c072022-01-13 11:39:43 -050042RUN python3 -m easy_install pip==21.3.1
43RUN pip install tox==3.24.5
beierlm5b3f4b62021-02-17 07:22:20 -050044
garciadeblasf6d39362024-01-29 15:52:02 +010045RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
46 DEBIAN_FRONTEND=noninteractive apt-get -y install \
47 wget \
48 build-essential \
49 dh-make \
50 openjdk-8-jdk \
51 maven
52
beierlm5b3f4b62021-02-17 07:22:20 -050053RUN update-java-alternatives --set /usr/lib/jvm/java-1.8.0-openjdk-amd64