-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
29 lines (23 loc) · 926 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
FROM fedora:20
MAINTAINER Pulp QE <[email protected]>
# install deps
RUN yum update -y && yum install -y python-ecdsa python-devel python-nose m2crypto gcc file dnf python-pip PyYAML python-qpid python-requests python-plumbum python-paramiko python-rpyc && yum clean all
# these deps aren't available in Fedora at the correct version, or at all
RUN pip install gevent
RUN pip install stitches
RUN pip install requestbin
RUN pip install pinocchio
# add source
ADD pulp_auto /src/pulp_auto
ADD tests /src/tests
ADD setup.py /src/setup.py
# install!
RUN pip install --no-index /src/
# stuff that will configure and run the tests
VOLUME /pulp_auto/
WORKDIR /pulp_auto/
ADD tests/ /pulp_auto/tests
ADD docker/geninventory.py /usr/local/bin/geninventory
ADD docker/inventory.yml /pulp_auto/inventory.yml
# "expand" PULPHOST env, if set
CMD geninventory && nosetests -vs --with-xunit --with-outputsave --save-directory=logs