-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
32 lines (22 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM centos/python-36-centos7
LABEL description="tempest with nfv-plugin for OpenStack Platform"
LABEL summary="tempest with nfv-plugin for OpenStack Platform"
USER root
# Creation of "/home/stack" directory performed in order to align the use
# of "external_config_file" between containerized tempest and git based tempest.
# Remove once "external_config_file" will be removed from nfv tempest plugin.
RUN mkdir /home/stack && chown default /home/stack
USER default
COPY ./ /opt/app-root/nfv-tempest-plugin
COPY ../run_tempest.sh /opt/app-root/
RUN pip3 install --no-cache-dir --upgrade pip setuptools \
&& pip3 install --no-cache-dir -e /opt/app-root/nfv-tempest-plugin \
&& pip3 install --no-cache-dir python-tempestconf python-openstackclient neutron-tempest-plugin
# To have undercloud certificate used by python
RUN rm -f /opt/app-root/lib/python3.6/site-packages/certifi/cacert.pem \
&& ln -s /etc/pki/ca-trust/source/anchors/undercloud-cacert.pem /opt/app-root/lib/python3.6/site-packages/certifi/cacert.pem
RUN tempest init ~/tempest \
&& mkdir ~/tempest/container_tempest/ \
&& ln -s ~/tempest/container_tempest/ /home/stack/tempest
COPY tools/config_generate.sh /opt/app-root/src/tempest/config_generate.sh
WORKDIR /opt/app-root/src/tempest