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

Commit 03f5dd3

Browse files
committed
Merge pull request #678 from chuegle/master
Changes to enable eu-central-1.
2 parents 70f506b + 9e556ed commit 03f5dd3

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ RUN pip install /docker-registry/depends/docker-registry-core
2828
# Install registry
2929
RUN 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+
3135
ENV DOCKER_REGISTRY_CONFIG /docker-registry/config/config_sample.yml
3236
ENV SETTINGS_FLAVOR dev
3337

contrib/boto_header_patch.diff

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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):
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
boto==2.32.1
1+
boto==2.34.0
22
redis==2.10.3
33
setuptools==5.8
4+
simplejson==3.6.2

depends/docker-registry-core/setup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
requirements_txt = open('./requirements/main.txt')
3535
requirements = [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
4238
if 'DEPS' in os.environ and os.environ['DEPS'].lower() == 'loose':
4339
loose = []

0 commit comments

Comments
 (0)