Skip to content

Commit 2fd42b5

Browse files
committed
Add empty requirements
1 parent 00934de commit 2fd42b5

File tree

4 files changed

+42
-3
lines changed

4 files changed

+42
-3
lines changed

Dockerfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,19 @@ MAINTAINER Valery M. <[email protected]>
33

44
USER root
55

6-
RUN apk add --no-cache python3 && \
6+
RUN apk add --no-cache python3 python3-dev curl gcc g++ && \
7+
ln -s /usr/include/locale.h /usr/include/xlocale.h && \
78
python3 -m ensurepip && \
89
rm -r /usr/lib/python*/ensurepip && \
910
pip3 install --upgrade pip setuptools && \
1011
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
1112
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
1213
rm -r /root/.cache
1314

15+
COPY requirements.txt /server_requirements.txt
16+
RUN PIP_INDEX_URL=http://172.17.42.1:3141/root/public/ \
17+
PIP_TRUSTED_HOST=172.17.42.1 && \
18+
pip install -U pipenv && \
19+
pip install --extra-index-url=https://pypi.python.org/simple/ --no-cache-dir -r /server_requirements.txt
20+
1421
USER jenkins

Pipfile.lock

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,21 @@ The [official image repo](https://github.com/jenkinsci/docker) has a pretty comp
1717
To create a master:
1818

1919
$ docker run -d --name=jenkins -p 8080:8080 -p 50000:50000 -v \
20-
$home:/var/jenkins_home --env JAVA_OPTS="-Dhudson.footerURL=$server_url \
21-
-Dhudson.model.DirectoryBrowserSupport.CSP= -Duser.timezone=Europe/Moscow" \
20+
jenkins_home:/var/jenkins_home --env JAVA_OPTS="-Dhudson.footerURL=$server_url \
21+
-Dhudson.model.DirectoryBrowserSupport.CSP= \
22+
-Duser.timezone=Europe/Moscow" \
2223
manycoding/jenkins-python
2324

2425
To drop into the shell:
2526

2627
$ docker run --rm -it manycoding/jenkins-python /bin/sh
28+
29+
30+
## Third-party python libraries
31+
32+
Install with pipenv and export `requirements.txt`
33+
34+
```
35+
pipenv update
36+
pipenv lock -r > requirements.txt
37+
```

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-i https://pypi.org/simple

0 commit comments

Comments
 (0)