blob: 8a346a3ecf2ec1a358c9ff7f59ed00c1c5c4e7c9 [file] [log] [blame]
azvyagintsevf19ddc82018-02-20 18:39:32 +02001FROM ubuntu:16.04
azvyagintsevf19ddc82018-02-20 18:39:32 +02002LABEL maintainer="qa@mirantis.com"
Oleksii Molchanovf4d52232021-06-30 12:34:22 +03003LABEL build_date="2021-07-09"
azvyagintsevf19ddc82018-02-20 18:39:32 +02004
azvyagintsevf19ddc82018-02-20 18:39:32 +02005ENV DEBIAN_FRONTEND=noninteractive \
6 DEBCONF_NONINTERACTIVE_SEEN=true \
7 LANG=C.UTF-8 \
Aleksey Zvyagintsevce2cd902018-11-07 10:29:57 +00008 LANGUAGE=$LANG \
Ievgeniia Zadorozhnab3877dd2019-10-22 18:13:35 +03009 LOG_DIR='/root/tempest' \
10 OS_TEST_TIMEOUT=700
Aleksey Zvyagintsevce2cd902018-11-07 10:29:57 +000011SHELL ["/bin/bash", "-o", "pipefail", "-xec"]
azvyagintsevf19ddc82018-02-20 18:39:32 +020012USER root
Aleksey Zvyagintsevce2cd902018-11-07 10:29:57 +000013ADD data /var/lib/
14
15COPY extra/build.sh /
16COPY bin/entrypoint.sh /usr/bin/
17COPY bin/run_tempest.sh /usr/bin/run-tempest
18COPY bin/opencontrail/policy.json /etc/opencontrail/policy.json
19COPY bin/skiplists /var/lib/tempest/skiplists
20
21# Patch junitxml library to include skipped tests in the test report totals header
22COPY bin/patches/junitxml_init.patch /var/lib/junitxml_init.patch
23
24# Patch os_testr library to fix issue ralated with tempest black-list option
25COPY bin/patches/regex_builder.patch /var/lib/regex_builder.patch
26
azvyagintsevf19ddc82018-02-20 18:39:32 +020027RUN cd /etc/apt/ && echo > sources.list \
28 && echo "deb [arch=amd64] http://cz.archive.ubuntu.com/ubuntu xenial main restricted universe multiverse" >> sources.list \
29 && echo "deb [arch=amd64] http://cz.archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse" >> sources.list \
30 && echo "deb [arch=amd64] http://cz.archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse" >> sources.list \
31 && echo 'Acquire::Languages "none";' > apt.conf.d/docker-no-languages \
32 && echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > apt.conf.d/docker-gzip-indexes \
33 && echo 'APT::Get::Install-Recommends "false"; APT::Get::Install-Suggests "false";' > apt.conf.d/docker-recommends \
34 && apt-get update && apt-get upgrade -y \
Aleksey Zvyagintsevce2cd902018-11-07 10:29:57 +000035 && apt-get install -y vim-tiny git-core python-pip libffi-dev libssl-dev python-dev python3-dev iputils-ping patch \
Maksym Shalamova95d7202018-04-19 17:21:19 +030036#Due to upstream bug we should use fixed version of pip
Oleksii Molchanovf4d52232021-06-30 12:34:22 +030037 && pip install -U 'setuptools==44.1.1' 'pip==19.2' \
Aleksey Zvyagintsevce2cd902018-11-07 10:29:57 +000038# Do main stuff
39 && /build.sh buildme \
40# Cleanup
41 && apt-get -y purge libx11-data xauth libxmuu1 libxcb1 libx11-6 libxext6 \
42 ppp pppconfig pppoeconf popularity-contest cpp gcc g++ libssl-doc \
43 && apt-get -y autoremove; apt-get -y clean \
44 && rm -rf /root/.cache \
45 && rm -rf /var/lib/apt/lists/*
azvyagintsevf19ddc82018-02-20 18:39:32 +020046
Maksym Shalamovdf54d202018-04-13 16:13:12 +030047
Aleksey Zvyagintsevce2cd902018-11-07 10:29:57 +000048RUN patch /usr/local/lib/python2.7/dist-packages/junitxml/__init__.py /var/lib/junitxml_init.patch
49RUN patch /usr/local/lib/python2.7/dist-packages/os_testr/regex_builder.py /var/lib/regex_builder.patch
azvyagintsevf19ddc82018-02-20 18:39:32 +020050
Maksym Shalamov98189f52018-04-24 13:36:26 +030051
azvyagintsevf19ddc82018-02-20 18:39:32 +020052WORKDIR /var/lib/tempest/
53ENTRYPOINT ["/usr/bin/entrypoint.sh"]
54
Aleksey Zvyagintsevce2cd902018-11-07 10:29:57 +000055# docker build --no-cache -t docker-ci-tempest:$(date "+%Y_%m_%d_%H_%M_%S") .