forked from faucetsdn/poseidon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.test
More file actions
21 lines (19 loc) · 819 Bytes
/
Copy pathDockerfile.test
File metadata and controls
21 lines (19 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM redis:latest
FROM poseidon:latest
ENV DEBIAN_FRONTEND=noninteractive
# TODO: remove workaround for broken ninja build (https://github.com/scikit-build/ninja-python-distributions/issues/22)
RUN apk upgrade --no-cache && \
apk add --no-cache \
build-base \
cmake \
tshark \
python3-dev \
yaml-dev && \
pip3 install --no-cache-dir scikit-build && \
CXXFLAGS="-D_BSD_SOURCE" pip3 install --no-cache-dir ninja && \
pip3 install --no-cache-dir -r test-requirements.txt && \
pip3 install --no-cache-dir -r api/requirements.txt && \
pip3 install --no-cache-dir -r workers/requirements.txt
CMD pytype --protocols api/app/*py poseidon/main.py poseidon/*/*py workers/*py && \
./tests/api_smoke_test.sh && \
py.test -v -vv --cov-report term-missing --cov=. -c .coveragerc