forked from redhat-openstack/nfv-tempest-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (15 loc) · 828 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM centos/python-36-centos7
LABEL description="tempest with nfv-plugin for OpenStack Platform"
LABEL summary="tempest with nfv-plugin for OpenStack Platform"
USER default
COPY ./ /opt/app-root/nfv-tempest-plugin
RUN pip3 install --upgrade pip setuptools \
&& pip3 install -e /opt/app-root/nfv-tempest-plugin \
&& pip3 install 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/
COPY tools/config_generate.sh /opt/app-root/src/tempest/config_generate.sh
WORKDIR /opt/app-root/src/tempest