forked from itzikb/docker-tempest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (34 loc) · 1.79 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
33
34
35
36
37
38
FROM centos:7
RUN useradd -ms /bin/bash centos
RUN yum -y install python-devel sshpass gcc git libffi-devel \
libxml2-devel libxslt-devel mariadb-devel openssl-devel python-pip \
python-virtualenv redhat-rpm-config sudo iputils wget \
vim
RUN yum -y update && mkdir -p /etc/tempest
RUN echo "centos ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
ADD scripts /home/centos/scripts
RUN chmod 755 -R /home/centos/scripts \
&& chown centos:centos /home/centos/scripts
USER centos
WORKDIR /home/centos
RUN virtualenv redhat-tempest && cd redhat-tempest \
&& source bin/activate \
&& git clone https://github.com/redhat-openstack/python-tempestconf.git ; cd python-tempestconf \
&& pip install -U pip python-subunit && pip install -U setuptools \
&& pip install requests && pip install -r requirements.txt
RUN virtualenv tempest-upstream && cd tempest-upstream \
&& source bin/activate \
&& git clone https://github.com/openstack/tempest.git && cd tempest \
&& pip install -U pip python-subunit \
&& pip install -U setuptools && pip install -e . \
&& pip install -r test-requirements.txt && testr init \
&& pip install ipdb && cd .. \
&& git clone https://github.com/openstack/neutron.git \
&& cd neutron && pip install -e . && pip install -r test-requirements.txt
RUN cd /home/centos/tempest-upstream && source bin/activate \
&& git clone https://github.com/openstack/neutron-lbaas.git \
&& cd neutron-lbaas && pip install -e . \
&& pip install -r test-requirements.txt
WORKDIR /home/centos/tempest-upstream/tempest
RUN wget http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img -P etc
CMD ['/bin/bash']