Skip to content

Commit 441cbfc

Browse files
author
Abhilash Joseph C
committed
url encoded error
1 parent f401e69 commit 441cbfc

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Dockerfile.template

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM python:%%PY_VERSION%%-alpine
2+
# Install packages
3+
RUN apk add --no-cache libcurl
4+
5+
# Needed for pycurl
6+
ENV PYCURL_SSL_LIBRARY=openssl
7+
RUN apk add --no-cache --virtual .build-dependencies build-base curl-dev \
8+
&& pip install pycurl \
9+
&& apk del .build-dependencies
10+
RUN pip install --upgrade pip
11+
RUN pip install flake8 pytest coverage
12+
COPY requirements.txt /tmp/requirements.txt
13+
14+
#RUN pip install --no-cache-dir -r /tmp/requirements.txt
15+
16+
COPY . /resttest3
17+
WORKDIR /resttest3
18+
19+
20+
RUN python setup.py bdist_wheel
21+
RUN pip install -U dist/*
22+
RUN flake8 resttest3 --count --select=E9,F63,F7,F82 --show-source --statistics
23+
RUN flake8 resttest3 --count --exit-zero --max-complexity=30 --max-line-length=127 --statistics
24+
# RUN python -m pytest tests
25+
RUN coverage run --source resttest3 -m pytest tests/test_*.py
26+
RUN coverage report
27+
RUN resttest3 --url https://www.courtlistener.com --test tests/fun_test.yaml
28+

0 commit comments

Comments
 (0)