-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (29 loc) · 1.19 KB
/
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
30
31
FROM evarga/jenkins-slave
MAINTAINER Marsel Taipov taipovm@gmail.com
RUN apt-get update && apt-get install -y python3.4-venv mercurial curl \
build-essential libssl-dev libffi-dev python3-dev libpq-dev; apt-get clean
USER jenkins
ENV HOME=/home/jenkins
RUN python3 -m venv --without-pip "${HOME}/bsw-env" \
&& . "${HOME}/bsw-env/bin/activate" \
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
&& pip install autopep8==1.3.2 \
psycopg2==2.6.1 \
coverage==4.3.4 \
factory-boy==2.8.1 \
flake8-docstrings==1.1.0 \
flake8==3.4.1 \
mock==2.0.0 \
prospector==0.12.7 \
pydocstyle==2.1.1 \
pyflakes==1.5.0 \
pytest-cov==2.5.1 \
pytest-django==3.1.2 \
pytest-flake8==0.8.1 \
pytest-pythonpath==0.7.1 \
pytest==3.0.7 \
requests-mock==1.2.0 \
twine \
&& printf '. "$HOME/bsw-env/bin/activate"\nexport PIP_FORMAT=columns\n' >> ${HOME}/.profile
USER root
ENV PATH=/opt/bsw-env/bin:$PATH VIRTUAL_ENV=/opt/bsw-env