-
Notifications
You must be signed in to change notification settings - Fork 44
/
Dockerfile.test
38 lines (29 loc) · 1.05 KB
/
Dockerfile.test
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 ubuntu:16.04
RUN apt-get update && echo "y" | apt-get install apt-transport-https
RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
RUN echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/docker.list
RUN apt-get update && \
echo "y" | apt-get install python \
python-dev \
python-pip \
build-essential \
docker-engine \
dpkg \
dpkg-dev \
qemu-kvm \
&& pip install -I pip==9.0.1 \
&& pip install mock
COPY requirements.txt /requirements.txt
COPY requirements-test.txt /requirements-test.txt
RUN pip install -r requirements-test.txt
WORKDIR /crawler
COPY . /crawler
RUN (cd psvmi/psvmi; python setup.py build && python setup.py install)
COPY psvmi/maps maps
COPY psvmi/offsets offsets
COPY psvmi/header.h .
CMD (docker daemon --storage-driver=vfs > ../docker.out 2>&1 &) && \
sleep 5 && \
flake8 --max-complexity 10 . && \
pylint crawler || true && \
python setup.py test --addopts '-s --cov=.'