Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit d8276be

Browse files
committed
Merge pull request #398 from dotcloud/next
Next
2 parents 1528875 + 572dea1 commit d8276be

40 files changed

+275
-158
lines changed

.dotcloudignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
contrib
22
.tox
33
reports
4-
test
4+
tests

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ eggs
2424
Vagrantfile
2525
.vagrant
2626

27-
docker-registry-core.sublime-workspace
28-
2927
*tmp
3028

29+
*.sublime-workspace
3130
*.sublime-project

.travis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ python:
77
install:
88
## This below should be separated when core lives elsewhere
99
# Install core tests reqs
10-
- pip install -rdepends/docker-registry-core/tests/requirements-tests.txt
11-
- pip install -rdepends/docker-registry-core/tests/requirements-style.txt
10+
- pip install -rdepends/docker-registry-core/requirements/test.txt
11+
- pip install -rdepends/docker-registry-core/requirements/style.txt
1212
# Install core itself
1313
- pip install depends/docker-registry-core/
1414

1515
# Install our tests requirements, and ourselves
16-
- pip install -rtests/requirements.txt
16+
- pip install -rrequirements/test.txt
1717
- pip install .
1818

1919
# XXX should run the core tests as well
@@ -22,5 +22,3 @@ script: SETTINGS_FLAVOR=test DOCKER_REGISTRY_CONFIG=config_sample.yml flake8 . &
2222
before_install:
2323
- sudo apt-get update
2424
- sudo apt-get install libevent-dev liblzma-dev
25-
26-
# build-essential python-dev

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Ken Cochrane <[email protected]>
4646
Kevin Clark <[email protected]>
4747
Leon Xiang <[email protected]>
4848
Lucas Clemente <[email protected]>
49+
Mangled Deutz <[email protected]>
4950
Marc Tamsky <[email protected]>
5051
Marek Goldmann <[email protected]>
5152
Mario Rodas <[email protected]>

CONTRIBUTE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Bare minimum
44

5-
You need `git`, `pip` and `tox`.
5+
System-wide, you need `git` and `pip` installed. You also need `tox` (usually just `pip install tox`).
66

7-
You might need `nose`, `coverage` and `flake`.
7+
You optionally need `nose`, `coverage` and `flake8` (usually just `pip install nose coverage flake8`) .
88

99

1010
## Architecture
@@ -17,7 +17,7 @@ It provides:
1717

1818
* exceptions
1919
* a driver interface describing how the registry interacts with the data storage
20-
* a compatibility layer (eg: python version)
20+
* a compatibility layer (eg: abstracting behavior differences between python versions)
2121
* common useful utility code
2222
* filesystem storage driver
2323

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ add ./config/boto.cfg /etc/boto.cfg
2525
run pip install /docker-registry/depends/docker-registry-core
2626

2727
# Install registry
28-
run pip install /docker-registry/
28+
run pip install file:///docker-registry#egg=docker-registry[bugsnag]
2929

3030
env DOCKER_REGISTRY_CONFIG /docker-registry/config/config_sample.yml
3131
env SETTINGS_FLAVOR dev

MANIFEST.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
include requirements.txt
2-
include tests/requirements.txt
1+
include requirements/main.txt
2+
include requirements/test.txt
3+
include requirements/style.txt
34
include README.md
45
include LICENSE

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ When using the `config_sample.yml`, you can pass all options through as environm
158158
*non*-Amazon S3-compliant object store, in one of the boto config files'
159159
`[Credentials]` section, set `boto_host`, `boto_port` as appropriate for the
160160
service you are using.
161-
1. `bugsnag`: The bugsnag API key
161+
1. `bugsnag`: The bugsnag API key (note that if you don't use the official docker container, you need to install the registry with bugsnag enabled: `pip install docker-registry[bugsnag]`)
162162
163163
### Authentication options
164164
@@ -405,6 +405,13 @@ Then install the Registry app:
405405
sudo pip install docker-registry
406406
```
407407
408+
If you need extra requirements, like bugsnag, specify them:
409+
410+
```
411+
sudo pip install docker-registry[bugsnag]
412+
```
413+
414+
408415
(or clone the repository and `pip install .`)
409416
410417
#### On Red Hat-based systems:
@@ -421,7 +428,7 @@ should not require the additional repositories.
421428
Then install the Registry app:
422429
423430
```
424-
sudo python-pip install docker-registry
431+
sudo python-pip install docker-registry[bugsnag]
425432
```
426433
427434
(or clone the repository and `pip install .`)

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cd $SERVICE_APPROOT
77
. ~/env/bin/activate
88

99
pip install --download-cache=~/.pip-cache ./depends/docker-registry-core || exit 1
10-
pip install --download-cache=~/.pip-cache . || exit 1
10+
pip install --download-cache=~/.pip-cache file://${PWD}#egg=docker-registry[bugsnag] || exit 1
1111

1212
cp -R * ~/
1313

contrib/docker-registry.conf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ env REGISTRY_DIR=/srv/docker/registry
99
env USER=www-data
1010
env GROUP=www-data
1111
env LOG_FILE=/var/log/docker/registry.log
12-
env NUM_WORKERS=9
12+
env GUNICORN_WORKERS=9
1313

14-
env ADDRESS=127.0.0.1:5000
14+
env REGISTRY_PORT=5000
15+
env REGISTRY_HOST=127.0.0.1
1516

1617

1718
pre-start script
@@ -27,5 +28,5 @@ script
2728

2829
[ -r $REGISTRY_DIR/.venv/bin/activate ] && . $REGISTRY_DIR/.venv/bin/activate
2930
cd $REGISTRY_DIR
30-
exec gunicorn -w $NUM_WORKERS --bind=$ADDRESS --user=$USER --group=$GROUP --log-level=$LOG_LEVEL --log-file=$LOG_FILE 2>>$LOG_FILE wsgi:application
31+
exec gunicorn -w $GUNICORN_WORKERS --bind=$REGISTRY_HOST:$REGISTRY_PORT --user=$USER --group=$GROUP --log-level=$LOG_LEVEL --log-file=$LOG_FILE 2>>$LOG_FILE docker_registry.wsgi:application
3132
end script

0 commit comments

Comments
 (0)