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
28
28
# Install registry
29
29
RUN pip install file:///docker-registry#egg=docker-registry[bugsnag,newrelic,cors]
30
30
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
+
31
35
ENV DOCKER_REGISTRY_CONFIG /docker-registry/config/config_sample.yml
32
36
ENV SETTINGS_FLAVOR dev
33
37
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
2
2
redis==2.10.3
3
3
setuptools==5.8
4
+ simplejson==3.6.2
Original file line number Diff line number Diff line change 34
34
requirements_txt = open ('./requirements/main.txt' )
35
35
requirements = [line for line in requirements_txt ]
36
36
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
-
41
37
# Using this will relax dependencies to semver major matching
42
38
if 'DEPS' in os .environ and os .environ ['DEPS' ].lower () == 'loose' :
43
39
loose = []
You can’t perform that action at this time.
0 commit comments