File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ RUN buildDeps='gcc git libffi-dev libssl-dev python3-dev python3-pip python3-whe
40
40
chown -R postgres /run/postgresql && \
41
41
pip install --disable-pip-version-check --no-cache-dir \
42
42
envdir==0.7 \
43
- wal-e[aws,azure,google,swift]==v1.0.2 && \
43
+ wal-e[aws,azure,google,swift]==v1.0.2 \
44
+ # pin azure-storage to version wal-e uses (see docker-entrypoint.sh)
45
+ azure-storage==0.20.0 && \
44
46
# "upgrade" boto to 2.43.0 + the patch to fix minio connections
45
47
pip install --disable-pip-version-check --no-cache-dir --upgrade git+https://github.com/deis/boto@88c980e56d1053892eb940d43a15a68af4ebb5e6 && \
46
48
# cleanup
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ from boto.s3.connection import S3Connection, OrdinaryCallingFormat
11
11
from oauth2client .service_account import ServiceAccountCredentials
12
12
from gcloud .storage .client import Client
13
13
from gcloud import exceptions
14
- from azure .storage .blob import BlockBlobService
14
+ from azure .storage .blob import BlobService
15
15
16
16
def bucket_exists (conn , name ):
17
17
bucket = conn .lookup (name )
@@ -60,7 +60,7 @@ elif os.getenv('DATABASE_STORAGE') == "gcs":
60
60
conn .create_bucket (bucket_name )
61
61
62
62
elif os .getenv ('DATABASE_STORAGE' ) == "azure" :
63
- conn = BlockBlobService (account_name = os .getenv ('WABS_ACCOUNT_NAME' ), account_key = os .getenv ('WABS_ACCESS_KEY' ))
63
+ conn = BlobService (account_name = os .getenv ('WABS_ACCOUNT_NAME' ), account_key = os .getenv ('WABS_ACCESS_KEY' ))
64
64
#It doesn't throw an exception if the container exists by default(https://github.com/Azure/azure-storage-python/blob/master/azure/storage/blob/baseblobservice.py#L504).
65
65
conn .create_container (bucket_name )
66
66
You can’t perform that action at this time.
0 commit comments