forked from faucetsdn/poseidon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.mock
43 lines (36 loc) · 957 Bytes
/
Dockerfile.mock
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
40
41
42
FROM ubuntu:16.04
MAINTAINER dgrossman dgrossman@iqt.org
RUN apt-get update && \
apt-get install -y \
build-essential \
git \
make \
python \
python-dev \
python-pip \
python-setuptools \
python-sphinx \
tcpdump
ADD . /poseidonWork
WORKDIR /poseidonWork
ENV PYTHONPATH /poseidonWork/poseidon:$PYTHONPATH
RUN pip install pip --upgrade
# install dependencies of plugins for poseidon
RUN for file in $(find poseidon/* -name "requirements.txt"); \
do \
pip install -r $file; \
done
ENV PYTHONUNBUFFERED 0
EXPOSE 3333:8003
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8003"]
CMD ["poseidon.mockController.mockController:api"]
# install pytest
RUN pip install pytest
# run tests
RUN py.test -v \
--ignore=poseidon/poseidonMain \
--ignore=poseidon/poseidonStorage \
--ignore=collectors/ \
--ignore=plugins/ \
--cov=poseidon/poseidonMonitor \
--cov=plugins --cov-report term-missing --cov-config .coveragerc