File tree 3 files changed +52
-0
lines changed
3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM ubuntu:12.04
2
+ ENV DEBIAN_FRONTEND noninteractive
3
+ RUN apt-get update -q && apt-get install -y netbase python
4
+ ADD https://raw.github.com/pypa/pip/master/contrib/get-pip.py /get-pip.py
5
+ RUN python /get-pip.py
6
+ RUN pip install -U bottle==0.11.6 devpi==1.2.1
7
+ VOLUME /mnt
8
+ EXPOSE 3141
9
+ ADD run.sh /
10
+ ENTRYPOINT ["/run.sh" ]
Original file line number Diff line number Diff line change
1
+ ## Devpi Dockerfile
2
+
3
+
4
+ This repository contains ** Dockerfile** of [ Devpi] ( http://doc.devpi.net/ ) for [ Docker] ( https://www.docker.io/ ) 's [ trusted build] ( https://index.docker.io/u/scrapinghub/devpi/ ) published to the public [ Docker Registry] ( https://index.docker.io/ ) .
5
+
6
+
7
+ ### Dependencies
8
+
9
+ * [ dockerfile/ubuntu] ( http://dockerfile.github.io/#/ubuntu )
10
+
11
+
12
+ ### Installation
13
+
14
+ 1 . Install [ Docker] ( https://www.docker.io/ ) .
15
+
16
+ 2 . Download [ trusted build] ( https://index.docker.io/u/scrapinghub/devpi/ ) from public [ Docker Registry] ( https://index.docker.io/ ) : ` docker pull scrapinghub/devpi `
17
+
18
+ (alternatively, you can build an image from Dockerfile: ` docker build -t="scrapinghub/devpi" github.com/scrapinghub/docker-devpi ` )
19
+
20
+
21
+ ### Usage
22
+
23
+ #### Run ` devpi-server `
24
+
25
+ docker run -d --name devpi -p 3141:3141 scrapinghub/devpi
26
+
27
+ Devpi creates a user named ` root ` by default, its password can be set with
28
+ ` DEVPI_PASSWORD ` environment variable.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+ export DEVPI_SERVERDIR=/mnt
4
+ export DEVPI_CLIENTDIR=/tmp/devpi-client
5
+ [[ -f $DEVPI_SERVERDIR /.serverversion ]] || initialize=yes
6
+
7
+ devpi-server --start --host 0.0.0.0 --port 3141
8
+ if [[ $initialize = yes ]]; then
9
+ devpi use http://localhost:3141
10
+ devpi login root --password=' '
11
+ devpi user -m root password=" ${DEVPI_PASSWORD} "
12
+ devpi index -c public
13
+ fi
14
+ tail -f $DEVPI_SERVERDIR /.xproc/devpi-server/xprocess.log
You can’t perform that action at this time.
0 commit comments