Skip to content

Commit 35ed09f

Browse files
committed
chore(Dockerfile): bump postgres-9.4 version, update azure storage import
1 parent 4d55b4e commit 35ed09f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM quay.io/deis/base:v0.3.6
22

33
ENV LANG=en_US.utf8 \
44
PG_MAJOR=9.4 \
5-
PG_VERSION=9.4.11-1.pgdg16.04+1 \
5+
PG_VERSION=9.4.12-1.pgdg16.04+1 \
66
PGDATA=/var/lib/postgresql/data
77

88
# Set this separately from those above since it depends on one of them

rootfs/bin/create_bucket

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ from boto.s3.connection import S3Connection, OrdinaryCallingFormat
1111
from oauth2client.service_account import ServiceAccountCredentials
1212
from gcloud.storage.client import Client
1313
from gcloud import exceptions
14-
from azure.storage.blob import BlobService
14+
from azure.storage.blob import BlockBlobService
1515

1616
def bucket_exists(conn, name):
1717
bucket = conn.lookup(name)
@@ -60,7 +60,7 @@ elif os.getenv('DATABASE_STORAGE') == "gcs":
6060
conn.create_bucket(bucket_name)
6161

6262
elif os.getenv('DATABASE_STORAGE') == "azure":
63-
conn = BlobService(account_name=os.getenv('WABS_ACCOUNT_NAME'), account_key=os.getenv('WABS_ACCESS_KEY'))
63+
conn = BlockBlobService(account_name=os.getenv('WABS_ACCOUNT_NAME'), account_key=os.getenv('WABS_ACCESS_KEY'))
6464
#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).
6565
conn.create_container(bucket_name)
6666

0 commit comments

Comments
 (0)