Commit 1daf9762 authored by Tulio Ruiz's avatar Tulio Ruiz
Browse files

[FIX] Use the image we receive as parameter and update to psql 9.6 by default

parent ee7a9acd
......@@ -37,7 +37,7 @@ def configure_postgres(base_name, postgres_image):
_cli.pull(postgres_image)
logger.info('Creating container %s', name)
container = _cli.create_container(name=name,
image='postgres:9.6',
image=postgres_image,
environment={'POSTGRES_PASSWORD': 'postgres'})
_cli.start(container=container.get('Id'))
time.sleep(20)
......@@ -115,7 +115,7 @@ def deployv_tests(**kwargs):
if kwargs.get('psql_image'):
postgres_image = kwargs.get('psql_image')
else:
postgres_image = 'postgres:{0}'.format(environ.get('PSQL_VERSION', '9.5'))
postgres_image = 'postgres:{0}'.format(environ.get('PSQL_VERSION', '9.6'))
cleanup(base_name)
configure_postgres(base_name, postgres_image)
res = configure_postgres_user()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment