forked from Mirantis/stepler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 loc) · 991 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Quickstart:
# docker build -t stepler-tests .
# docker run --net=host --rm \
# -e OS_AUTH_URL=http://10.109.1.8:5000/v3 \
# -e OS_FAULTS_CLOUD_DRIVER_ADDRESS=10.109.2.2 \
# -v $(pwd)/reports:/opt/app/test_reports \
# -v /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock \
# -v /cloud/key/path:/opt/app/cloud.key \
# stepler stepler/nova
#
# To run on cloud with ssl change `docker run` to `docker --dns=<cloud dns ip> run`
FROM python:2
RUN apt-get update -qq && \
apt-get install -q -y \
python-dev \
libvirt-dev \
xvfb \
iceweasel \
libav-tools && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /opt/app
COPY . /opt/app/
ENV OSLO_PACKAGE_VERSION=1.8
RUN pip install -e .[libvirt]
ENV OS_USERNAME=admin
ENV OS_PASSWORD=admin
ENV VIRTUAL_DISPLAY=1
ENV OS_FAULTS_CLOUD_DRIVER=fuel
ENV OS_FAULTS_CLOUD_DRIVER_KEYFILE=/opt/app/cloud.key
ENTRYPOINT ["py.test", "-v", "--junit-xml=test_reports/report.xml"]