This repository was archived by the owner on Sep 12, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed
depends/docker-registry-core Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ RUN pip install /docker-registry/depends/docker-registry-core
2828# Install registry
2929RUN pip install file:///docker-registry#egg=docker-registry[bugsnag,newrelic,cors]
3030
31+ RUN patch \
32+ $(python -c 'import boto; import os; print os.path.dirname(boto.__file__)' )/connection.py \
33+ < /docker-registry/contrib/boto_header_patch.diff
34+
3135ENV DOCKER_REGISTRY_CONFIG /docker-registry/config/config_sample.yml
3236ENV SETTINGS_FLAVOR dev
3337
Original file line number Diff line number Diff line change 1+ --- a/boto/connection.py
2+ +++ b/boto/connection.py
3+ @@ -381,7 +381,7 @@ class HTTPRequest(object):
4+ if 'Content-Length' not in self.headers:
5+ if 'Transfer-Encoding' not in self.headers or \
6+ self.headers['Transfer-Encoding'] != 'chunked':
7+ - self.headers['Content-Length'] = len(self.body)
8+ + self.headers['Content-Length'] = str(len(self.body))
9+
10+
11+ class HTTPResponse(http_client.HTTPResponse):
Original file line number Diff line number Diff line change 1- boto==2.32.1
1+ boto==2.34.0
22redis==2.10.3
33setuptools==5.8
4+ simplejson==3.6.2
Original file line number Diff line number Diff line change 3434requirements_txt = open ('./requirements/main.txt' )
3535requirements = [line for line in requirements_txt ]
3636
37- # 2.6 native json raw_decode doesn't fit the bill, so add simple to our req
38- if ver < (2 , 7 ):
39- requirements .insert (0 , 'simplejson==3.6.2' )
40-
4137# Using this will relax dependencies to semver major matching
4238if 'DEPS' in os .environ and os .environ ['DEPS' ].lower () == 'loose' :
4339 loose = []
You can’t perform that action at this time.
0 commit comments